When must I hide my window???
-
I have a MFC dialog application that has an option to go to the system tray after clicking a button... I also call ShowWindow(false); to hide my application window when I add the icon to the systray. Unfortunately, I want to hide my app immediately after starting it... I try in InitDialog, OnCreate, and it does not happen - the window does not seem to respond to ShowWindow(false). Some help will be highly appreciated, for I am stuck with this problem. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
I have a MFC dialog application that has an option to go to the system tray after clicking a button... I also call ShowWindow(false); to hide my application window when I add the icon to the systray. Unfortunately, I want to hide my app immediately after starting it... I try in InitDialog, OnCreate, and it does not happen - the window does not seem to respond to ShowWindow(false). Some help will be highly appreciated, for I am stuck with this problem. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
ShowWindow (SW_HIDE); /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
ShowWindow (SW_HIDE); /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
Where do I call this? Because at the end of InitDialog it does NOT work... the icon is put in the systray, but ShowWindow (SW_HIDE) does not hide my dialog... Looking forward to suggestions. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
Where do I call this? Because at the end of InitDialog it does NOT work... the icon is put in the systray, but ShowWindow (SW_HIDE) does not hide my dialog... Looking forward to suggestions. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
seen this problem many times, but never found a satisfactory solution. a working solution however, is to create a timer in initdialog, and then hide your app in the timer function, remembering to kill the timer as well. Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
I have a MFC dialog application that has an option to go to the system tray after clicking a button... I also call ShowWindow(false); to hide my application window when I add the icon to the systray. Unfortunately, I want to hide my app immediately after starting it... I try in InitDialog, OnCreate, and it does not happen - the window does not seem to respond to ShowWindow(false). Some help will be highly appreciated, for I am stuck with this problem. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
I have a MFC dialog application that has an option to go to the system tray after clicking a button... I also call ShowWindow(false); to hide my application window when I add the icon to the systray. Unfortunately, I want to hide my app immediately after starting it... I try in InitDialog, OnCreate, and it does not happen - the window does not seem to respond to ShowWindow(false). Some help will be highly appreciated, for I am stuck with this problem. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
I wrote a post some weeks ago explaining how to make a dialog to start up hidden. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
I wrote a post some weeks ago explaining how to make a dialog to start up hidden. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
That's a brilliant solution Joaquín! Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
That's a brilliant solution Joaquín! Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
Well, not to take away from the "brilliant"ness of Joaquin's solution, but I thought mine's was better. :-) Regards, Alvaro
-
Well, not to take away from the "brilliant"ness of Joaquin's solution, but I thought mine's was better. :-) Regards, Alvaro
:-) Joaquin's solution was for modal dialogs! You solution lies in making the dialog modeless and then entering the CWinApp message loop which is a nice trick too I must say. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut