自动隐藏应用 [英] Auto Hide Application

查看:111
本文介绍了自动隐藏应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想自动隐藏对话框应用程序,以便当用户单击十字按钮时,它会转到任务栏.

请帮助,如何在MFC/C ++中做到这一点
Gerard

Hello Everyone,

I would like to autohide my dialog application so that when the user clicks the cross button it goes to the taskbar.

Please help, how can I do this in MFC/C++
Gerard

推荐答案

在这种情况下,对话框将收到WM_CLOSE消息,
所以您可以按照自己的方式处理事件...:)
A dialog will receive a WM_CLOSE message in this case,
so you could handle the event in your own manner... :)


我想您的意思是您的应用程序应该转到系统托盘中?如果是,请查看本文 [
I suppose you mean that your application should go to the system tray ? If yes, check this article[^]


C#
this.WindowState = FormWindowState.Minimized;



C ++.Net



C++.Net

this->WindowState=FormWindowState::Minimized;		


这篇关于自动隐藏应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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