我想做一个后台运行程序,故想启动后将其他的对话框最新化,系统最小化后不要在任务栏显示,而是在系统栏显示,请我要怎么做,谢谢!

解决方案 »

  1.   

    WINSHELLAPI BOOL WINAPI Shell_NotifyIcon(
        DWORD dwMessage, 
        PNOTIFYICONDATA pnid
    ); Sends a message to the system to add, modify, or delete an icon from the taskbar status area. Returns nonzero if successful, or zero otherwise. 
    dwMessage 
    Message value to send. This parameter can be one of these values: NIM_ADD  Adds an icon to the status area. 
    NIM_DELETE  Deletes an icon from the status area. 
    NIM_MODIFY  Modifies an icon in the status area.  pnid 
    Address of a NOTIFYICONDATA structure. The content of the structure depends on the value of dwMessage. 
      

  2.   

    Shell_NotifyIcon 去www.vcbase.com 找系统托盘编程,有很好的例子!