[Bug 7280] regedit: renaming a key does not work (sometimes)

Wine Bugs wine-bugs at winehq.org
Tue Jan 30 13:03:34 CST 2007


------- Additional Comments From fpga at pacbell.net  2007-30-01 13:03 -------
And the reason this happens is something like:
SetFocus on the edit window triggers a KILLFOCUS message to the treeview.
KillFocus triggers an update window on the treeview, which calls TREEVIEW_Refresh.
TREEVIEW_Refresh calls UpdateScrollBars, which is the function I modified.
With my mod, if there is a horizontal scrollbar, then TREEVIEW_HScroll is called.
Very near the top of TREEVIEW_HScroll() is:
    if (infoPtr->hwndEdit)
So that removes the focus from the edit window, and returns it to the treeview.
The simple fix is to comment out those two lines. 

I guess if the user moves the scrollbars, maybe the focus should be changed. But
probably only on a click on the scrollbars (I guess some testing on Windows is

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the wine-bugs mailing list