Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restore an app that is minimized
Message
 
To
01/07/2002 12:42:38
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00673635
Message ID:
00674245
Views:
25
>Changing the value of SW_RESTORE to 5, the routine works fine!
>Tks!
>
>Emerson Santon Reed
>emerson.reed@folhamatic.com

Hi Emerson,

I don't know why SW_RESTORE = 9 didn't work for you, but I'm glad you found another code that did the trick. The value 5 is defined as SW_SHOW. Here is the complete list I dug up from Winuser.h, which is one of the header files included in VC++:
#define SW_HIDE             0
#define SW_SHOWNORMAL       1
#define SW_NORMAL           1
#define SW_SHOWMINIMIZED    2
#define SW_SHOWMAXIMIZED    3
#define SW_MAXIMIZE         3
#define SW_SHOWNOACTIVATE   4
#define SW_SHOW             5
#define SW_MINIMIZE         6
#define SW_SHOWMINNOACTIVE  7
#define SW_SHOWNA           8
#define SW_RESTORE          9
#define SW_SHOWDEFAULT      10
#define SW_FORCEMINIMIZE    11
#define SW_MAX              11
Even if you don't use VC++, you may find it worth your while to install this component of Visual Studio, just to get these header files. It's not always so easy to find this level of information on MSDN.

Mike
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform