CStatusBar本身也是一个窗口,继承于CWnd,你只要重载它的OnRButtonDown函数就可以了啊!

解决方案 »

  1.   

    以SDI为例:
    在CMainFrame的 m_wndStatusBar 的定义改为:派生自CMyStatusBar
    添加一个新类:CMyStatusBar 基类为:CStatusBar。
    在新类中响应(如)RButtonup之类事件的消息函数。
    在mainframe的头文件中加:#include "MyStatus.h"
    搞定。
      

  2.   

    经过试验:只要在CDialog的OnNotify()函数中进行相应处理即可(我的状态栏是放在CDialog中的),多谢各位!