🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ShowWindow question

#13280
From: Martin C
Date: Sat, 18 Oct 2003 02:27
25 lines
1621 bytes
Hi,

I am trying to use ShowWindow function with SW_HIDE, SW_SHOW in order to
hide/show applications from its handle. my problem comes after hiding the
application as I can't restore it again.

I use the following code to hide the application:

HWND AppHandle= SearchProgramHandle("notepad.exe");
//(SearchProgramHandle) is a function that take a snapshot of the current
windows process and search for the application handle based on its exe name

if(AppHandle != 0)
{ ShowWindow(AppHandle, SW_HIDE);
}

When I try to use this code to show the application again...the application
never show up again !

ShowWindow(AppHandle, SW_SHOW);

can someone help me please and tell me what I am doing wrong here...or what
I am missing exactly....

Thanks
Technical Details
Message-ID: <3f90a515@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,644d4ac8e2f18824,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-17 19:38:59 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: ShowWindow question
Date: Fri, 17 Oct 2003 18:27:34 -0800
Lines: 27
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <3f90a515@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066444053 81.10.4.238 (17 Oct 2003 19:27:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail