Re: Win32Lib; Timed events
- Posted by Bernie Ryan <xotron at blu?frog?com> May 16, 2008
- 661 views
ZNorQ wrote: > > CChris wrote: > > > > I said "any control will do". 0 is not an actual control id, not even a > > valid > > handle for Windows. It is a special value which is treated, somewhat > > consistently, > > as if refeerring to the desktop window. But it actually doesn't. > > > > CChris > > Ah, ok. But how would i go about then when I'm creating a program that doesn't > pop-up a window. I know I can use WinMain(0, Normal), but how do I use the > timer > in this case? > > Purpose of the code; Run in the background and run various code in intervals. > > Kenneth/ZNorQ You can use HWND GetDesktopWindow(VOID) to get a handle to desktop window which is in most cases always available and use that with your timer. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan