CMFCToolBar::IsLastCommandFromButton

确定该最近执行的命令是否从指定的工具栏按钮发送了。

static BOOL IsLastCommandFromButton(
   CMFCToolBarButton* pButton 
);

参数

  • [in] pButton
    按的指针。

返回值

TRUE,如果最后一个命令从 pButton 指定的按钮发送的;否则 FALSE。

备注

此方法获取指向 MSG 结构 通过调用 CWnd::GetCurrentMessage。 然后按钮的 HWNDMSG::lParamMSG::hwnd 成员比较确定按钮是否是命令源。

要求

标头: afxtoolbar.h

请参见

参考

CMFCToolBar选件类

层次结构图