dialog based mfc app that starts without showing the main window 
Author Message
 dialog based mfc app that starts without showing the main window

hi all,

i would like to know how to make such a dialog based MFC app that
can start with the main dialog that doesn't appear (just after clicket on
the icon in the tray). so how to hide the main window when the
program is started?

thanks,
nermal



Wed, 22 May 2002 03:00:00 GMT  
 dialog based mfc app that starts without showing the main window

Quote:

>i would like to know how to make such a dialog based mfc app that
>can start with the main dialog that doesn't appear (just after clicket on
>the icon in the tray). so how to hide the main window when the
>program is started?

There is sample code for creating an invisible dialog-based app on my
website here :

www.mooremvp.freeserve.co.uk/Win32/w32tip26.htm

(that's tip 26 on the Win32 Code page). Use Shell_NotifyIcon to insert
the icon, and show the window inside the click handler for the icon.

For tips on creating the icon and defining the handler, see

www.mooremvp.freeserve.co.uk/Win32/w32tip1.htm

--
Bob Moore [MVP]
http://www.mooremvp.freeserve.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Wed, 22 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

2. Dialog app without main dialog

3. Dialog-Based App and Main Dialog Problem

4. Showing taskbar visible dialog from dialog based app

5. HOWTO: hide dialog when a dialog-based app starts

6. Help me in showing a dialog immediately when main dialog shows

7. Dialog Based Apps - Menu & Windows :: MFC

8. showing window without deactivating main wnd..

9. Main dialog initially hidden, how? (mfc dialog app)

10. Disabling main menu items in MFC based apps

11. MFC UI Thread doesnt start when COM method called in multi-threaded MFC dialog App

12. MFC app without app window

 

 
Powered by phpBB® Forum Software