Le 20 févr. 07 à 23:20 Soir, Ryan Dary a écrit:

> I have some old code that attempts to save and restore window  
> locations
> on Windows and Mac.  When my program opens, and I create a new  
> document
> window, I attempt to restore the last used position.  Sometimes  
> this is
> creating a problem.
>
> When the window is minimized or maximized upon quitting, I believe the
> values are something like -32000 or +32000 instead of that actual  
> window
> size.
>
> Now when I use these values to restore the window, the window is
> minimized to the task bar and it can't be brought out of the task  
> bar again.
>
> Can anyone tell me, or tell me where to find out, what the right  
> way to
> save and restore window location/size on Windows?

Maybe you should restore them before saving?
Using MyWindow.show should do it, then you save.

In my short experience of Win32 use, I always saw programs restoring  
their document windows before quitting.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to