2007-02-10 22:02:45 +00:00
|
|
|
Index: propsheet.c
|
|
|
|
===================================================================
|
2009-01-18 15:07:11 +00:00
|
|
|
--- propsheet.c (revision 38890)
|
2007-02-10 22:02:45 +00:00
|
|
|
+++ propsheet.c (working copy)
|
2009-01-18 15:07:11 +00:00
|
|
|
@@ -2417,6 +2417,29 @@
|
2007-02-10 22:02:45 +00:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
+BOOL CALLBACK
|
|
|
|
+EnumChildProc(HWND hwnd, LPARAM lParam)
|
|
|
|
+{
|
|
|
|
+ WCHAR szType[20];
|
|
|
|
+ RealGetWindowClassW(hwnd, szType, 20);
|
|
|
|
+
|
|
|
|
+ if (strcmpW(szType, WC_EDITW) == 0)
|
|
|
|
+ {
|
|
|
|
+ if (IsWindowEnabled(hwnd) && IsWindowVisible(hwnd))
|
|
|
|
+ {
|
|
|
|
+ SetFocus(hwnd);
|
|
|
|
+ return FALSE;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ EnumChildWindows(hwnd, EnumChildProc, 0);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return TRUE;
|
|
|
|
+}
|
2009-01-18 15:07:11 +00:00
|
|
|
+
|
2007-02-10 22:02:45 +00:00
|
|
|
+
|
|
|
|
/******************************************************************************
|
|
|
|
* PROPSHEET_SetWizButtons
|
|
|
|
*
|
2009-01-18 15:07:11 +00:00
|
|
|
@@ -2438,17 +2461,6 @@
|
2007-02-10 22:02:45 +00:00
|
|
|
EnableWindow(hwndNext, FALSE);
|
|
|
|
EnableWindow(hwndFinish, FALSE);
|
|
|
|
|
|
|
|
- /* set the default pushbutton to an enabled button */
|
|
|
|
- if (((dwFlags & PSWIZB_FINISH) || psInfo->hasFinish) && !(dwFlags & PSWIZB_DISABLEDFINISH))
|
|
|
|
- SendMessageW(hwndDlg, DM_SETDEFID, IDC_FINISH_BUTTON, 0);
|
|
|
|
- else if (dwFlags & PSWIZB_NEXT)
|
|
|
|
- SendMessageW(hwndDlg, DM_SETDEFID, IDC_NEXT_BUTTON, 0);
|
|
|
|
- else if (dwFlags & PSWIZB_BACK)
|
|
|
|
- SendMessageW(hwndDlg, DM_SETDEFID, IDC_BACK_BUTTON, 0);
|
|
|
|
- else
|
|
|
|
- SendMessageW(hwndDlg, DM_SETDEFID, IDCANCEL, 0);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
if (dwFlags & PSWIZB_BACK)
|
|
|
|
EnableWindow(hwndBack, TRUE);
|
|
|
|
|
2009-01-18 15:07:11 +00:00
|
|
|
@@ -2478,6 +2490,31 @@
|
2007-02-10 22:02:45 +00:00
|
|
|
}
|
|
|
|
else if (!(dwFlags & PSWIZB_DISABLEDFINISH))
|
|
|
|
EnableWindow(hwndFinish, TRUE);
|
|
|
|
+
|
|
|
|
+ /* set the default pushbutton to an enabled button and give it focus */
|
|
|
|
+ if (((dwFlags & PSWIZB_FINISH) || psInfo->hasFinish) && !(dwFlags & PSWIZB_DISABLEDFINISH))
|
|
|
|
+ {
|
|
|
|
+ SendMessageW(hwndDlg, DM_SETDEFID, IDC_FINISH_BUTTON, 0);
|
|
|
|
+ SetFocus(hwndFinish);
|
|
|
|
+ }
|
|
|
|
+ else if (dwFlags & PSWIZB_NEXT)
|
|
|
|
+ {
|
|
|
|
+ SendMessageW(hwndDlg, DM_SETDEFID, IDC_NEXT_BUTTON, 0);
|
|
|
|
+ SetFocus(hwndNext);
|
|
|
|
+ }
|
|
|
|
+ else if (dwFlags & PSWIZB_BACK)
|
|
|
|
+ {
|
|
|
|
+ SendMessageW(hwndDlg, DM_SETDEFID, IDC_BACK_BUTTON, 0);
|
|
|
|
+ SetFocus(hwndBack);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ SendMessageW(hwndDlg, DM_SETDEFID, IDCANCEL, 0);
|
|
|
|
+ SetFocus(GetDlgItem(hwndDlg, IDCANCEL));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* Now try to find an edit control that deserves focus */
|
|
|
|
+ EnumChildWindows(PropSheet_GetCurrentPageHwnd(hwndDlg), EnumChildProc, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2007-02-12 18:37:05 +00:00
|
|
|
Index: tooltips.c
|
|
|
|
===================================================================
|
2009-01-18 15:07:11 +00:00
|
|
|
--- tooltips.c (revision 38890)
|
2007-02-12 18:37:05 +00:00
|
|
|
+++ tooltips.c (working copy)
|
2009-01-18 15:07:11 +00:00
|
|
|
@@ -2488,8 +2488,33 @@
|
|
|
|
static LRESULT
|
2007-02-12 18:37:05 +00:00
|
|
|
TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
2009-01-18 15:07:11 +00:00
|
|
|
- FIXME ("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
|
2007-02-12 18:37:05 +00:00
|
|
|
+ TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd);
|
|
|
|
+ TTTOOL_INFO *toolPtr = infoPtr->tools;
|
|
|
|
+ INT nResult;
|
|
|
|
|
2009-01-18 15:07:11 +00:00
|
|
|
+ TRACE("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
|
|
|
|
+
|
|
|
|
+ if (lParam == NF_QUERY) {
|
|
|
|
+ if (toolPtr->bNotifyUnicode) {
|
2007-02-12 18:37:05 +00:00
|
|
|
+ return NFR_UNICODE;
|
|
|
|
+ } else {
|
|
|
|
+ return NFR_ANSI;
|
|
|
|
+ }
|
|
|
|
+ }
|
2009-01-18 15:07:11 +00:00
|
|
|
+ else if (lParam == NF_REQUERY) {
|
2007-02-12 18:37:05 +00:00
|
|
|
+ nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
|
|
|
|
+ (WPARAM)hwnd, (LPARAM)NF_QUERY);
|
|
|
|
+ if (nResult == NFR_ANSI) {
|
|
|
|
+ toolPtr->bNotifyUnicode = FALSE;
|
2009-01-18 15:07:11 +00:00
|
|
|
+ TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");
|
2007-02-12 18:37:05 +00:00
|
|
|
+ } else if (nResult == NFR_UNICODE) {
|
|
|
|
+ toolPtr->bNotifyUnicode = TRUE;
|
2009-01-18 15:07:11 +00:00
|
|
|
+ TRACE(" -- WM_NOTIFYFORMAT returns: NFR_UNICODE\n");
|
2007-02-12 18:37:05 +00:00
|
|
|
+ } else {
|
|
|
|
+ TRACE (" -- WM_NOTIFYFORMAT returns: error!\n");
|
|
|
|
+ }
|
|
|
|
+ return nResult;
|
|
|
|
+ }
|
|
|
|
return 0;
|
|
|
|
}
|
2010-06-09 13:31:02 +00:00
|
|
|
|
|
|
|
Index: treeview.c
|
|
|
|
===================================================================
|
|
|
|
--- treeview.c (revision 38890)
|
|
|
|
+++ treeview.c (working copy)
|
|
|
|
@@ -2830,7 +2830,12 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- TREEVIEW_UpdateScrollBars(infoPtr);
|
|
|
|
+ //
|
|
|
|
+ // This is correct, but is causes and infinite loop of WM_PAINT messages, resulting
|
|
|
|
+ // in continuous painting of the scroll bar in reactos. Comment out until the real
|
|
|
|
+ // bug is found
|
|
|
|
+ //
|
|
|
|
+ //TREEVIEW_UpdateScrollBars(infoPtr);
|
|
|
|
|
|
|
|
if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT)
|
|
|
|
infoPtr->cdmode =
|