CDialogBar的消息怎么处理???????????

AttaBoy 2001-10-26 01:27:30
1.当点击其上的那个小X时,触发的是什么消息,在那儿处理。

2.当我在CMyDialogBar类中重载OnPaint时,为什么DialogBar最顶上的那根线不见了。怎么处理????

3.那儿可以获得有关CDialogBar更多的信息。

谢谢
...全文
171 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
AttaBoy 2001-11-24
  • 打赏
  • 举报
回复
OK,搞定了,谢谢大家
AttaBoy 2001-10-26
  • 打赏
  • 举报
回复
没人会吗????我不信
AttaBoy 2001-10-26
  • 打赏
  • 举报
回复
就是当是浮动时,那个关闭按钮
sssyyyooo 2001-10-26
  • 打赏
  • 举报
回复
什么小x?
AttaBoy 2001-10-26
  • 打赏
  • 举报
回复
没其它人会吗
AttaBoy 2001-10-26
  • 打赏
  • 举报
回复
能在详细点吧?

那个小X呢????
sssyyyooo 2001-10-26
  • 打赏
  • 举报
回复
别忘了给分
文章:(msdn)CDialogBar Button Enabled When Command Handler Present

从该文章可知:
A button in a CDialogBar object is disabled automatically if the command routing does not contain a command handler function for the button.

To enable a button in a CDialogBar object, the command routing must include a command handler for the button. A button command handler can be an ON_BN_CLICKED(), ON_COMMAND(), or ON_COMMAND_UI() message handler and it must appear in the message map of an object in the command routing. If the parent of the CDialogBar object is a CFrameWnd object, then the command is handled by the active child window or view, by the document attached to the view, by the frame window, and by the application (CWinApp object).

Note that because the CDialogBar object is not included in the routing scheme, the ON_BN_CLICKED() or ON_COMMAND() handler must be placed in one of the objects mentioned above that is in the routing scheme and not in the CDialogBar class.

所以,在主框架类里添加接收按钮click消息,但是处理该事件在CDialogBar类里
sssyyyooo 2001-10-26
  • 打赏
  • 举报
回复
一定要给分哟
文章:(msdn)CDialogBar Button Enabled When Command Handler Present

从该文章可知:
A button in a CDialogBar object is disabled automatically if the command routing does not contain a command handler function for the button.

To enable a button in a CDialogBar object, the command routing must include a command handler for the button. A button command handler can be an ON_BN_CLICKED(), ON_COMMAND(), or ON_COMMAND_UI() message handler and it must appear in the message map of an object in the command routing. If the parent of the CDialogBar object is a CFrameWnd object, then the command is handled by the active child window or view, by the document attached to the view, by the frame window, and by the application (CWinApp object).

Note that because the CDialogBar object is not included in the routing scheme, the ON_BN_CLICKED() or ON_COMMAND() handler must be placed in one of the objects mentioned above that is in the routing scheme and not in the CDialogBar class.

所以,在主框架类里添加接收按钮click消息,但是处理该事件在CDialogBar类里
  • 打赏
  • 举报
回复
1.用SPY++看看发什么消息了。
turbine 2001-10-26
  • 打赏
  • 举报
回复
gz

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧