#include "stdafx.h" #include #include "DlgToolBar.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgToolBar BEGIN_MESSAGE_MAP(CDlgToolBar, CToolBar) //{{AFX_MSG_MAP(CDlgToolBar) ON_MESSAGE(WM_IDLEUPDATECMDUI, OnIdleUpdateCmdUI) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDlgToolBar Construction/Destruction CDlgToolBar::CDlgToolBar() { } CDlgToolBar::~CDlgToolBar() { } LRESULT CDlgToolBar::OnIdleUpdateCmdUI(WPARAM wParam, LPARAM) { if (IsWindowVisible()) { CFrameWnd *pParent = (CFrameWnd *)GetParent(); if (pParent) OnUpdateCmdUI(pParent, (BOOL)wParam); } return 0L; }