From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: Somewhat Off topic Q on Window Handle 22 Feb 1998 00:53:30 -0800 Message-ID: <01BD3F7F.BE81DC60.cygnus.gnu-win32@sos> To: "'gnu-win32 AT cygnus DOT com'" , "'MCzapski AT stc DOT com'" 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 AT cygnus DOT com" with one line of text: "help".