From: Jacob Nevins Date: Sun, 20 Mar 2005 22:28:13 +0000 (+0000) Subject: Add comments about default processing in DialogProc/WindowProc, since I X-Git-Tag: 0.58~31 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=bcd70d0661a657ee2affe0cda187c967f4dda257;p=PuTTY.git Add comments about default processing in DialogProc/WindowProc, since I often forget the rules. [originally from svn r5532] --- diff --git a/windows/windlg.c b/windows/windlg.c index 0fd1acb8..59c0112a 100644 --- a/windows/windlg.c +++ b/windows/windlg.c @@ -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) diff --git a/windows/window.c b/windows/window.c index 05f0c618..6046cf7a 100644 --- a/windows/window.c +++ b/windows/window.c @@ -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); }