1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

Add comments about default processing in DialogProc/WindowProc, since I

often forget the rules.

[originally from svn r5532]
This commit is contained in:
Jacob Nevins 2005-03-20 22:28:13 +00:00
parent 616f220472
commit bcd70d0661
2 changed files with 6 additions and 0 deletions

View File

@ -362,6 +362,8 @@ static void create_controls(HWND hwnd, char *path)
/*
* This function is the configuration box.
* (Being a dialog procedure, in general it returns 0 if the default
* dialog processing should be performed, and 1 if it should not.)
*/
static int CALLBACK GenericMainDlgProc(HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam)

View File

@ -2934,6 +2934,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
}
}
/*
* Any messages we don't process completely above are passed through to
* DefWindowProc() for default processing.
*/
return DefWindowProc(hwnd, message, wParam, lParam);
}