🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10049

Re: Restore Window

#10049
From: KL Chin
Date: Mon, 24 May 2004 09:47
39 lines
1808 bytes
Hi,

Problem solve.

Regards
KL Chin

"KL Chin" <klchin@1asiarnd.com.my> wrote in message
news:40b1b7ff@newsgroups.borland.com...
> 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: <40b1c46b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40b1b7ff@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,70be4e267306881
X-Google-Attributes: gid10cc67,public
From: "KL Chin" <klchin@1asiarnd.com.my>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40b1b7ff@newsgroups.borland.com>
Subject: Re: Restore Window
Date: Mon, 24 May 2004 17:47:39 +0800
Lines: 41
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: <40b1c46b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085391979 219.93.184.30 (24 May 2004 02:46:19 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail