Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/propsheet.c:
DestroyWindow(hdlg);
}
+int query_initial_focus = 0; +LRESULT CALLBACK TestDlgProc(HWND hdlg, UINT uMessage, WPARAM wParam, LPARAM lParam) +{
- LPNMHDR lpnmhdr;
+switch (uMessage)
- {
- case WM_NOTIFY:
lpnmhdr = (NMHDR *)lParam;
switch (lpnmhdr->code)
{
case PSN_QUERYINITIALFOCUS:
{
query_initial_focus = 1;
So handling PSN_QUERYINITIALFOCUS only sets query_initial_focus to 1. What about the message result? Please test that PSN_QUERYINITIALFOCUS works besides getting sent.