mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5039 from martell/win64
closed #3700: Added x64 support for Windows - CCExtensions
This commit is contained in:
commit
b9dfad3df3
|
@ -280,14 +280,14 @@ void CWin32InputBox::InitDialog()
|
|||
// Message handler for about box.
|
||||
LRESULT CALLBACK CWin32InputBox::DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLong(hDlg, GWL_USERDATA);
|
||||
CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||
WIN32INPUTBOX_PARAM *param = _this ? _this->GetParam() : 0;
|
||||
|
||||
switch (message)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
::SetWindowLong(hDlg, GWL_USERDATA, (LONG) lParam);
|
||||
SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR) lParam);
|
||||
|
||||
_this = (CWin32InputBox *) lParam;
|
||||
_this->_param->hDlg = hDlg;
|
||||
|
|
Loading…
Reference in New Issue