2 ===================================================================
3 --- propsheet.c (revision 38890)
4 +++ propsheet.c (working copy)
10 +EnumChildProc(HWND hwnd, LPARAM lParam)
13 + RealGetWindowClassW(hwnd, szType, 20);
15 + if (strcmpW(szType, WC_EDITW) == 0)
17 + if (IsWindowEnabled(hwnd) && IsWindowVisible(hwnd))
25 + EnumChildWindows(hwnd, EnumChildProc, 0);
32 /******************************************************************************
33 * PROPSHEET_SetWizButtons
35 @@ -2438,17 +2461,6 @@
36 EnableWindow(hwndNext, FALSE);
37 EnableWindow(hwndFinish, FALSE);
39 - /* set the default pushbutton to an enabled button */
40 - if (((dwFlags & PSWIZB_FINISH) || psInfo->hasFinish) && !(dwFlags & PSWIZB_DISABLEDFINISH))
41 - SendMessageW(hwndDlg, DM_SETDEFID, IDC_FINISH_BUTTON, 0);
42 - else if (dwFlags & PSWIZB_NEXT)
43 - SendMessageW(hwndDlg, DM_SETDEFID, IDC_NEXT_BUTTON, 0);
44 - else if (dwFlags & PSWIZB_BACK)
45 - SendMessageW(hwndDlg, DM_SETDEFID, IDC_BACK_BUTTON, 0);
47 - SendMessageW(hwndDlg, DM_SETDEFID, IDCANCEL, 0);
50 if (dwFlags & PSWIZB_BACK)
51 EnableWindow(hwndBack, TRUE);
53 @@ -2478,6 +2490,31 @@
55 else if (!(dwFlags & PSWIZB_DISABLEDFINISH))
56 EnableWindow(hwndFinish, TRUE);
58 + /* set the default pushbutton to an enabled button and give it focus */
59 + if (((dwFlags & PSWIZB_FINISH) || psInfo->hasFinish) && !(dwFlags & PSWIZB_DISABLEDFINISH))
61 + SendMessageW(hwndDlg, DM_SETDEFID, IDC_FINISH_BUTTON, 0);
62 + SetFocus(hwndFinish);
64 + else if (dwFlags & PSWIZB_NEXT)
66 + SendMessageW(hwndDlg, DM_SETDEFID, IDC_NEXT_BUTTON, 0);
69 + else if (dwFlags & PSWIZB_BACK)
71 + SendMessageW(hwndDlg, DM_SETDEFID, IDC_BACK_BUTTON, 0);
76 + SendMessageW(hwndDlg, DM_SETDEFID, IDCANCEL, 0);
77 + SetFocus(GetDlgItem(hwndDlg, IDCANCEL));
80 + /* Now try to find an edit control that deserves focus */
81 + EnumChildWindows(PropSheet_GetCurrentPageHwnd(hwndDlg), EnumChildProc, 0);
84 /******************************************************************************
86 ===================================================================
87 --- tooltips.c (revision 38890)
88 +++ tooltips.c (working copy)
89 @@ -2488,8 +2488,33 @@
91 TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)
93 - FIXME ("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
94 + TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd);
95 + TTTOOL_INFO *toolPtr = infoPtr->tools;
98 + TRACE("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
100 + if (lParam == NF_QUERY) {
101 + if (toolPtr->bNotifyUnicode) {
102 + return NFR_UNICODE;
107 + else if (lParam == NF_REQUERY) {
108 + nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
109 + (WPARAM)hwnd, (LPARAM)NF_QUERY);
110 + if (nResult == NFR_ANSI) {
111 + toolPtr->bNotifyUnicode = FALSE;
112 + TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");
113 + } else if (nResult == NFR_UNICODE) {
114 + toolPtr->bNotifyUnicode = TRUE;
115 + TRACE(" -- WM_NOTIFYFORMAT returns: NFR_UNICODE\n");
117 + TRACE (" -- WM_NOTIFYFORMAT returns: error!\n");
125 ===================================================================
126 --- treeview.c (revision 38890)
127 +++ treeview.c (working copy)
128 @@ -2830,7 +2830,12 @@
132 - TREEVIEW_UpdateScrollBars(infoPtr);
134 + // This is correct, but is causes and infinite loop of WM_PAINT messages, resulting
135 + // in continuous painting of the scroll bar in reactos. Comment out until the real
138 + //TREEVIEW_UpdateScrollBars(infoPtr);
140 if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT)