1. Win32Lib; Starting an app without a visible window?

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

new topic     » topic index » view message » categorize

2. Re: Win32Lib; Starting an app without a visible window?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu