http://bugs.winehq.org/show_bug.cgi?id=10233
Summary: TCM_GETCURFOCUS returns negative value Product: Wine Version: 0.9.48. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: luizluca@gmail.com
Hello,
Before patch
Author: Hagop Hagopian shaitani@gmail.com Date: 17-03-2007 19:16:08 Parent: comctl32: tab: Added message sequence tests for the tab c... Child: winex11.drv: In the case requested glyphs do not present... Branch: master (d3drm: Implement D3DRMCreateColorRGB.) Follows: wine-0.9.33 (Release 0.9.33.) Precedes: wine-0.9.34 (Release 0.9.34.) comctl32: tab: Minor bug fixes in the curSel and curFocus getters and setters.
The TCM_GETCURFOCUS messages refused to return negative values. This seems to be the correctly M$ Windows behavior. With the patch, if the tab is not already rendered, TCM_GETCURFOCUS returns -1.
0009:Ret window proc 0x4eb6b7 (hwnd=0x10056,msg=TCM_GETCURFOCUS,wp=00000000,lp=00000000) retval=ffffffff