Add comments about default processing in DialogProc/WindowProc, since I
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 20 Mar 2005 22:28:13 +0000 (22:28 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 20 Mar 2005 22:28:13 +0000 (22:28 +0000)
often forget the rules.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5532 cda61777-01e9-0310-a592-d414129be87e

windows/windlg.c
windows/window.c

index 0fd1acb..59c0112 100644 (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)
index 05f0c61..6046cf7 100644 (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);
 }