This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Somewhat Off topic Q on Window Handle


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]