能浮动的工具条会出现一个标题栏,在其上右击,会出现“移动
                                                   隐藏”,这个系统菜单。
我想把它修改。现在在工具条上右击是会加载我自己的菜单的,我想问如何使得右击标题栏时也加载菜单。

解决方案 »

  1.   

    WM_NC开头的消息,拦截一下,再弹个菜单出来就行了
      

  2.   

    CWnd::OnNcRButtonDown  
    afx_msg void OnNcRButtonDown( UINT nHitTest, CPoint point );ParametersnHitTestSpecifies the hit-test code. A hit test is a test that determines the location of the cursor.指定了击中测试代码。击中测试用于确定光标的位置。 pointSpecifies a CPoint object that contains the x and y screen coordinates of the cursor position. These coordinates are always relative to the upper-left corner of the screen.指定了一个CPoint对象,其中包含了光标位置的x轴和y轴屏幕坐标。这些坐标总是相对于屏幕的左上角的。 ResThe framework calls this member function when the user presses the right mouse button while the cursor is within a nonclient area.当用户在CWnd的非客户区内按下鼠标右键时,框架调用这个成员函数。拦截这个消息看看
      

  3.   

    楼主可是一位MM哦,大家使力的帮吧!!!我在QQ上帮她解答了!!