Misplaced Property Sheet buttons
Peter Åstrand
astrand at cendio.se
Fri Oct 26 09:52:37 CDT 2007
I'm debugging a problem where the standard buttons on a property sheet are
misplaced. The application is Magna Cura. The screenshot
http://www.cendio.com/~astrand/wine/62-tab-size/unpatched.png demonstrates
the problem: The buttons are only partially visible. It turns out that the
parent window for the Buttons changes size several times. The height is:
228
95
466
436
450
The PROPSHEET_AdjustButtons function, however, is only called in
WM_INITDIALOG, so the buttons are positioned based on the height 466, and
never repositioned. What's the proper fix for this? I've tried this patch:
--- propsheet.c (revision 13243)
+++ propsheet.c (arbetskopia)
@@ -3828,6 +3828,13 @@
return TRUE;
}
+ case WM_WINDOWPOSCHANGED:
+ {
+ PropSheetInfo* psInfo = (PropSheetInfo*) lParam;
+ PROPSHEET_AdjustButtons(hwnd, psInfo);
+ return FALSE;
+ }
+
default:
return FALSE;
}
This solves the position problem, but instead the Help button disappears.
See screenshot
http://www.cendio.com/~astrand/wine/62-tab-size/patched.png. Any ideas?
Best regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.se
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
ThinLinc User Group 2007 Höstkonferens --- 15-16 november, Linköping.
Program och anmälan: http://www.thinlincusergroup.se/aktiviteter
More information about the wine-devel
mailing list