Fix DLGPROC prototype

This commit is contained in:
Prcuvu
2019-10-01 14:10:56 +08:00
parent b55760811b
commit e5321deed4
6 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ void WindowsDialogBox::Run( int iDialog )
DialogBoxParam( hHandle, MAKEINTRESOURCE(iDialog), nullptr, DlgProc, (LPARAM) this );
}
BOOL APIENTRY WindowsDialogBox::DlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam )
INT_PTR APIENTRY WindowsDialogBox::DlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam )
{
if( msg == WM_INITDIALOG )
SetProp( hDlg, "WindowsDialogBox", (HANDLE) lParam );
+1 -1
View File
@@ -18,7 +18,7 @@ protected:
virtual BOOL HandleMessage( UINT msg, WPARAM wParam, LPARAM lParam ) { return false; }
private:
static BOOL APIENTRY DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR APIENTRY DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
HWND m_hWnd;
};