Click to See Complete Forum and Search --> : continually running app
dave2k
November 21st, 2005, 06:56 AM
lots of programs are continually running in windows, and was wondering how this achieved. I have thought of 2 ways:
using a hidden window / window procedure (isn't this abit of a hack)?
not using winmain, instead opting for some kind of thread system?
can anyone shed some light on this?
cheers
Marc G
November 21st, 2005, 07:54 AM
Yes, using a hidden window is the way to go.
If you want to display an icon in the Windows system tray, you'll need a window with a message pump because otherwise you can't process the messages from your notification icon.
golanshahar
November 21st, 2005, 08:19 AM
for putting app in the tray you can read here:
Task Tray Applet Framework (http://www.codeguru.com/Cpp/W-P/win32/article.php/c1425/)
Cheers
dave2k
November 21st, 2005, 09:35 AM
ok thanks
dave2k
November 21st, 2005, 10:25 AM
so if i want to create some class instances etc, would i put this code after a WM_CREATE case in the switch statement, or before my windows procedrue starts?
cheers
Marc G
November 22nd, 2005, 07:29 AM
Without more information it's hard for us to know what you want, but generally you can create your class instances where you want, in WM_CREATE or before or after or in WM_INITDIALOG is it's a dialog.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.