Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win 2000 API
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00407137
Message ID:
00407272
Views:
32
>>In Win9.x and NT, the following code will force an open window to the foreground if it isn't minimized. If the window is minimized, the Task Bar icon flashes. In Windows 2000, the only affect is that the Task Bar icon flashes (the Window isn't minimized and cannot be minimized)
>>
>> DECLARE INTEGER FindWindow IN Win32API STRING @lcWindowTitle, STRING otherstring
>> lnAppActive = FindWindow(0,lcWindowName)
>> IF lnAppActive > 0
>> DECLARE INTEGER SetForegroundWindow IN Win32API Integer
>> SetForegroundWindow(lnAppActive)
>> ENDIF
>>
>>The window that is being called is an SDI form that is not maximized. I can't use the ShowWindow API function with the maximize parameter because it fully maxes the interface and skews all of the controls.
>>
>>Any ideas? Any work arounds?
>>
>>TIA
>
>Use ShowWindow() with SW_NORMAL (1).


Thanks, George. How did I know you'd be the one to reply <g>
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform