Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem showing the application in EXE
Message
From
09/04/2004 11:51:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/04/2004 11:48:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893559
Message ID:
00893583
Views:
37
>>
>>#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
>>
>>DECLARE short ShowWindow IN WIN32API ;
>>  integer hWnd, ;
>>  integer nCmdShow
>>declare short SetForegroundWindow in win32API integer nHwnd
>>DECLARE short GetWindowPlacement IN WIN32API ;
>>  integer hWnd, ;
>>  string @ lpwndpl
>>
>>lpwndpl = CHR(4*3+8*2+4*4)+replicate(CHR(0),4*3+8*2+4*4-1)
>>
>>		lnHWND = _screen.Hwnd
>>		SetForegroundWindow( m.lnHWND )
>>		IF ( GetWindowPlacement(m.lnHWND, @lpwndpl) # 0 ) AND ;
>>			INLIST(ASC(SUBSTR(m.lpwndpl, 4+4+1, 1)), ;
>>			SW_SHOWMINIMIZED, SW_MINIMIZE, SW_SHOWMINNOACTIVE, SW_FORCEMINIMIZE)
>>			ShowWindow(lnHWND, SW_RESTORE)
>>		endif
>>
>
>This still provides me the same result. I see the task item in the Windows task bar, it's flashing but I have to click on it twice to see my app.

I suspect there is smething in it creating a wait state.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform