Which way ?
-
hi folks, i want to make a MFC application which only should have a tray icon and a popup menu (accessible via the tray icon). but i don't know what kind of application i should choose. should i make a dialog based or a sdi one ? i mean i only need the message map. thanks in advance. greets
-
hi folks, i want to make a MFC application which only should have a tray icon and a popup menu (accessible via the tray icon). but i don't know what kind of application i should choose. should i make a dialog based or a sdi one ? i mean i only need the message map. thanks in advance. greets
are you designing a service ? anyway, didlog based is good enough... simply remove the dialog class form the project...
TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VCalc 3.0 soon...] -
hi folks, i want to make a MFC application which only should have a tray icon and a popup menu (accessible via the tray icon). but i don't know what kind of application i should choose. should i make a dialog based or a sdi one ? i mean i only need the message map. thanks in advance. greets
Hello, If you only need a message map, I suggest that you don't use MFC at all. Just using plain old WIN32 APIs frees you from loading DLLs and eases the deployment. If this is no problem, you should use the SDI application. Simply removing the dialog class is not enough as you need a window to have a message map. You can also use some handy classes here on CP for tray icons. Hope this helps :-D Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
-
Hello, If you only need a message map, I suggest that you don't use MFC at all. Just using plain old WIN32 APIs frees you from loading DLLs and eases the deployment. If this is no problem, you should use the SDI application. Simply removing the dialog class is not enough as you need a window to have a message map. You can also use some handy classes here on CP for tray icons. Hope this helps :-D Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
hi, yes, i have to use MFC because there are some classes in my app which need it. creating the tray icon and the popup is no problem. i only have to bother with getting rid of unnecessary dialogs and/or windows. the result should be a MFC based application with only a tray icon and a popup menu as its GUI - neither a dialog nor a window can be visible. aren't there any sample codes out there? i can't believe that i'm the first one who's trying this. greeting
-
hi, yes, i have to use MFC because there are some classes in my app which need it. creating the tray icon and the popup is no problem. i only have to bother with getting rid of unnecessary dialogs and/or windows. the result should be a MFC based application with only a tray icon and a popup menu as its GUI - neither a dialog nor a window can be visible. aren't there any sample codes out there? i can't believe that i'm the first one who's trying this. greeting
-
yes thanks. now i got what i want. here's what i have done: i've used a simple MFC dialog based application. i used to start it in InitInstance with RunModalLoop() and set the visible mode of the dialog in the resource editor to false. In the CDialog derived class i've overloaded the function OnCreate and added the following Window Style: ModifyStyleEx(0, WS_EX_TOOLWINDOW ); and, well, it works: NO WINDOW. NO DIALOG. NO TASKBAR ENTRY. AND I STILL GOT MY MESSAGE MAP :cool: thanks everone. greetings