wordpad: Properly save window rect on closing Min/Maximized windows

Dylan Smith dylan.ah.smith at gmail.com
Wed Jun 18 18:51:39 CDT 2008


Previously the window size and position was obtained in such that when
the window is closed while minimized, it would be hidden when the
program is started again.  Closing a maximized window would save the
size of the maximized window and use it as the normal/restored size when
the program is started again.

This patch gets the normal position RECT using GetWindowPlacement, and
also saves the maximized state in the registry.  The window is now
shown, on application startup, in the same way that native Wordpad does.
---
 programs/wordpad/registry.c |   26 +++++++++++++++++++++++---
 programs/wordpad/wordpad.c  |    8 ++++++--
 programs/wordpad/wordpad.h  |    1 +
 3 files changed, 30 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0045-wordpad-Properly-save-window-rect-on-closing-Min-Ma.diff
Type: text/x-diff
Size: 4043 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080618/50dbc6b2/attachment.diff 


More information about the wine-patches mailing list