This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Somewhat Off topic Q on Window Handle
- To: "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>, "'MCzapski at stc dot com'" <MCzapski at stc dot com>
- Subject: RE: Somewhat Off topic Q on Window Handle
- From: Sergey Okhapkin <sos at buggy dot prospect dot com dot ru>
- Date: Sun, 22 Feb 1998 10:50:51 +0300
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
"gnu-win32-request@cygnus.com" with one line of text: "help".