Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp6 showwindow ?
Message
 
 
To
28/10/1998 14:15:24
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00151825
Message ID:
00151834
Views:
19
Ken,

here's the constants

#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

and part of the help from VS6:

SW_HIDE Hides this window and passes activation to another window.


SW_MINIMIZE Minimizes the window and activates the top-level window in the system’s list.


SW_RESTORE Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.


SW_SHOW Activates the window and displays it in its current size and position.


SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.


SW_SHOWMINIMIZED Activates the window and displays it as an icon.


SW_SHOWMINNOACTIVE Displays the window as an icon. The window that is currently active remains active.


SW_SHOWNA Displays the window in its current state. The window that is currently active remains active.


SW_SHOWNOACTIVATE Displays the window in its most recent size and position. The window that is currently active remains active.


SW_SHOWNORMAL Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.


>I want to find and show a window(the code below does that)
>but its not the active window. I have to click on it.
>Is there some to make it the active window?
>Thanks
>Ken Paulson
>
>DECLARE INTEGER FindWindow IN Win32API;
> STRING @lpClassName, STRING @lpWindowName
>lctitle="Alarm"
>w_handle = FindWindow(0, @lctitle)
>if w_handle>0
>DECLARE LONG ShowWindow IN USER32 LONG NHWND, LONG NSHOWHOW
>=ShowWindow(w_handle,1)
>endif
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform