如何将MFC应用程序保留在任务栏中 [英] How to keep the MFC application in the taskbar

查看:62
本文介绍了如何将MFC应用程序保留在任务栏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在MFC中开发了一个基于对话框的应用程序,我对应用程序的怀疑很少,因此请帮助我解决这些问题

1)运行该应用程序后,我希望我的对话框被隐藏并保留在任务栏中.仅在从任务栏单击后才能打开该对话框.
2)即使在将对话框保留在任务栏中之后,我也希望它能够以隐藏模式(如Windows Taskmanager)连续运行.


请帮助我解决以上两点,如果解决了这个问题,将不胜感激

Hello ,

i developing a dialog based application in MFC,i got few doubts in my application so kindly help me to solve those

1) After running the app i want my dialog to be hidden and keep in taskbar.The dialog should be opened only after clicking from the taskbar.
2)Even after keeping my dialog in the taskbar ,i want that to be runned continously in hidden mode like Windows Taskmanager .


Kindly help me to solve the above two points,will be thankfull if this thing is solved

推荐答案

1)运行该应用程序后,我希望我的对话框被隐藏并保留在任务栏中.只有在从任务栏中单击后,才应打开对话框.

回答:调用ShowWindow(SW_HIDE)隐藏您的窗口,它不会终止您的进程.

正在创建系统任务栏图标
http://codingmisadventures.wordpress .com/2009/02/20/creating-a-system-tray-icon-using-visual-c-and-win32/ [ http://www.daniweb.com/software-development/cpp/threads/319152/creating-a-program-that-runs-as-a-system-tray-icon [
1) After running the app i want my dialog to be hidden and keep in taskbar.The dialog should be opened only after clicking from the taskbar.

Ans: Call ShowWindow( SW_HIDE ) to hide your window, and it will not terminate your process.

creating system tray icon
http://codingmisadventures.wordpress.com/2009/02/20/creating-a-system-tray-icon-using-visual-c-and-win32/[^]

Application to run in minimized mode.
http://www.daniweb.com/software-development/cpp/threads/319152/creating-a-program-that-runs-as-a-system-tray-icon[^]


这篇关于如何将MFC应用程序保留在任务栏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆