Article View: borland.public.cppbuilder.nativeapi
Article #10050How to Restore Window with PROCESS_INFORMATION
From: KL Chin
Date: Mon, 24 May 2004 11:00
Date: Mon, 24 May 2004 11:00
44 lines
2088 bytes
2088 bytes
Hi,
a) How to restore minized window, from the information given
PPROCESS_INFORMATION create by CreateProcess.
I used EnumWindows, by got the wrong window handle when
it minimized.
b) It is always correct, when the application mimized and it will
give the null caption window handle for the very 1st EnumWindows
if compare with the process ID and thread ID.
Regards
KL Chin
////
Below from the past postmessage.
Hi,
Does anyone know how to restore Window's standard Volume Control
& Record Control?
Normal steps like below does not work,
if ( !IsWindowVisible(hWnd) ) ShowWindow( hWnd,SW_SHOWNORMAL );
//
else if ( IsIconic(hWnd) ) ShowWindow( hWnd,SW_RESTORE );
else BringWindowToTop( hWnd );
SetForegroundWindow( hWnd );
From what I tested.
a) The function IsIconic does not show the correct status when it minimize.
b) IsWindowVisible do help when it minimize, but ShowWindow with
SW_SHOWNORMAL
and SW_SHOWNORMAL does not restore correctly, it restore different
window.
c) With WM_SYSCOMMAND SC_RESTORE also not help.
Can any help on this.
Thx in advance.
Regards
KL Chin
Technical Details
Message-ID:
<40b1d584@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d9d12dea77d858c3,start X-Google-Attributes: gid10cc67,public From: "KL Chin" <klchin@1asia.com.my> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to Restore Window with PROCESS_INFORMATION Date: Mon, 24 May 2004 19:00:36 +0800 Lines: 47 Organization: CIE Corporation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 219.93.184.30 Message-ID: <40b1d584@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085396356 219.93.184.30 (24 May 2004 03:59:16 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail