Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set a window active?
Message
From
10/03/2000 05:32:42
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00344057
Message ID:
00344081
Views:
29
You could try something like this (you must obtain the long HWND for the window you want to activate):-

#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_MAX 10

declare integer ShowWindow in win32api LONG HWND, INTEGER CmdShow

.
.
.

ShowWindow(lnHWND, SW_RESTORE)
Previous
Reply
Map
View

Click here to load this message in the networking platform