Subject: RE: Somewhat Off topic Q on Window Handle
From: [email-masked] (Sergey Okhapkin)

22 Feb 1998 00:53:30 -0800
Message-ID: <01BD3F7F.BE81DC60.cygnus.gnu-win32@sos>
To: "[email-masked]'" <[email-masked]>,
        "[email-masked]'"
	 <[email-masked]>

Michael Czapski wrote:
> The code on Win95 runs within a console/command window.  I have a desire to 
> minimise the console window.  How do I get a hWnd (window handle) to the 
> console window my executable is running in ?

MS suggests the following method:

GetConsoleTitle(save_title);
SetConsoleTitle("some unique title");
Sleep(40);
hWnd=FindWindow("unique title")
SetConsoleTitle(save_title);

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".