Change guiWndProc() and AnnDlgProc() declarations to match the corresponding function signatures in WinAPI documentation
This commit is contained in:
parent
3f18c75cb5
commit
45f5cb0c28
1 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ namespace pvpgn
|
|||
static void guiClearLogWindow();
|
||||
static void guiKillTrayIcon();
|
||||
|
||||
long PASCAL guiWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
LRESULT CALLBACK guiWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
static void guiOnCommand(HWND, int, HWND, UINT);
|
||||
static void guiOnMenuSelect(HWND, HMENU, int, HMENU, UINT);
|
||||
static int guiOnShellNotify(int, int);
|
||||
|
@ -98,7 +98,7 @@ namespace pvpgn
|
|||
static void guiOnUserStatusChange(HWND);
|
||||
|
||||
BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
|
||||
BOOL CALLBACK AnnDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
|
||||
INT_PTR AnnDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
|
||||
BOOL CALLBACK KickDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
#define MODE_HDIVIDE 1
|
||||
|
@ -205,7 +205,7 @@ namespace pvpgn
|
|||
FreeLibrary(hRichEd);
|
||||
}
|
||||
|
||||
long PASCAL guiWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
LRESULT CALLBACK guiWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
gui.wParam = wParam;
|
||||
gui.lParam = lParam;
|
||||
|
@ -556,7 +556,7 @@ namespace pvpgn
|
|||
|
||||
static void guiOnAnnounce(HWND hwnd)
|
||||
{
|
||||
DialogBoxW(GetModuleHandleW(nullptr), MAKEINTRESOURCEW(IDD_ANN), hwnd, static_cast<DLGPROC>(AnnDlgProc));
|
||||
DialogBoxW(GetModuleHandleW(nullptr), MAKEINTRESOURCEW(IDD_ANN), hwnd, reinterpret_cast<DLGPROC>(AnnDlgProc));
|
||||
}
|
||||
|
||||
static void guiOnUserStatusChange(HWND hwnd)
|
||||
|
@ -696,7 +696,7 @@ namespace pvpgn
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL CALLBACK AnnDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
||||
INT_PTR AnnDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
||||
switch (Message)
|
||||
|
|
Loading…
Add table
Reference in a new issue