Article View: borland.public.cppbuilder.nativeapi
Article #10047Restore Window
From: KL Chin
Date: Mon, 24 May 2004 08:54
Date: Mon, 24 May 2004 08:54
26 lines
1583 bytes
1583 bytes
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:
<40b1b7ff@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.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,70be4e267306881,start X-Google-Attributes: gid10cc67,public From: "KL Chin" <klchin@1asiarnd.com.my> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Restore Window Date: Mon, 24 May 2004 16:54:39 +0800 Lines: 28 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: <40b1b7ff@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085388799 219.93.184.30 (24 May 2004 01:53:19 -0700) Path: arc1-ca.pugleaf.net!controlnews3.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