属性表中的“关闭"按钮 [英] Close button in property sheet

查看:122
本文介绍了属性表中的“关闭"按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谁能告诉我如何在属性表MFC应用程序中实现关闭按钮(十字图标)?我也在尝试WM_CLOSE消息处理程序,但我想在关闭按钮中选择是/否".

请帮帮我.

谢谢
Vivek chauhan

Hi,

can anybody tell me how to implement a close button (cross icon) in a property sheet MFC application? I''m also trying WM_CLOSE message handler but I want yes/no option in close button.

Please help me.

Thanks
Vivek chauhan

推荐答案

如果您是要模拟关闭按钮,请单击PostMessage WM_CLOSE到主框架窗口.

If you mean, you want to simulate the close button click, PostMessage WM_CLOSE to your main frame window.

AfxGetMainWnd()->PostMessage(WM_CLOSE);



另一方面,如果您要处理关闭按钮单击,则只需为WM_CLOSE添加消息处理程序.



On the other hand, if you mean you want to handle the Close button click, just add a message handler for WM_CLOSE.


这篇关于属性表中的“关闭"按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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