mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 03:28:07 -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:
parent
616f220472
commit
bcd70d0661
@ -362,6 +362,8 @@ static void create_controls(HWND hwnd, char *path)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This function is the configuration box.
|
* 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,
|
static int CALLBACK GenericMainDlgProc(HWND hwnd, UINT msg,
|
||||||
WPARAM wParam, LPARAM lParam)
|
WPARAM wParam, LPARAM lParam)
|
||||||
|
@ -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);
|
return DefWindowProc(hwnd, message, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user