From: jacob Date: Sun, 20 Mar 2005 22:28:13 +0000 (+0000) Subject: Add comments about default processing in DialogProc/WindowProc, since I X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/5c4dea05803c14c4fff67ef2a72aea9e16abc14e Add comments about default processing in DialogProc/WindowProc, since I often forget the rules. git-svn-id: svn://svn.tartarus.org/sgt/putty@5532 cda61777-01e9-0310-a592-d414129be87e --- 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); }