How to hide program on execution
-
I need the main window of my program (created by DialogBox() function) to become hidden already on the startup. If I call ::ShowWindow(hWnd,SW_HIDE) when I receive WM_CREATE or WM_INITDIALOG messages, it doesn`t work because these messages are regeived before dialog is shown. So how can I do it? I can not write consele app because I will need to show the window eventually.
-
I need the main window of my program (created by DialogBox() function) to become hidden already on the startup. If I call ::ShowWindow(hWnd,SW_HIDE) when I receive WM_CREATE or WM_INITDIALOG messages, it doesn`t work because these messages are regeived before dialog is shown. So how can I do it? I can not write consele app because I will need to show the window eventually.
Hide your main window...??? Interesting...you could try using a similar approach to system tray windows. Make a parent window using
WS_EX_TOOLWINDOW
and have your main window a child of this window. How do I print my voice mail? -
I need the main window of my program (created by DialogBox() function) to become hidden already on the startup. If I call ::ShowWindow(hWnd,SW_HIDE) when I receive WM_CREATE or WM_INITDIALOG messages, it doesn`t work because these messages are regeived before dialog is shown. So how can I do it? I can not write consele app because I will need to show the window eventually.
I am not sure whether this is what u want http://www.codeproject.com/system/xyntservice.asp