1. Win32Lib; Starting an app without a visible window?
- Posted by ZNorQ <znorq at holha?g.?om> Aug 07, 2007
- 487 views
How do I create an application that starts up, and runs in the background without a visible window? It's Win32Lib based. Kenneth aka ZNorQ
2. Re: Win32Lib; Starting an app without a visible window?
- Posted by CChris <christian.cuvier at ?gri?ulture.gouv.fr> Aug 07, 2007
- 490 views
ZNorQ wrote: > > How do I create an application that starts up, and runs in the background > without > a visible window? It's Win32Lib based. > > Kenneth aka ZNorQ From the doc entry for WinMain(): "If you wish to have an application that has no window under the control of win32lib, but still wish to use its Windows Message loop, then set window as 0." If you want simply the main window to be minimised on startup, then... "The style flag is one of the following: Normal: Original size. Minimized: Minimized into the task bar. <----- Maximized: Fills the client area of the screen" So apparently it can be done in a documented way, unless what you want is neither of the above - more detail would be needed then. Another approach, but it won't work under Win98/ME, is to create a window with the HWND_MESSAGE special constant as a parent. Such windows only have a message loop. Please refer to MSDN for details on this window feature. CChris