SECToolBarManager::IsToolBarCommand
Determine if the toolbar is currently sending WM_COMMAND and set rect to the button rect.
Defined in: tbarmgr.cpp
Syntax
IsToolBarCommand(CRect& rect)
Return Value
BOOL
Parameters
rect
Reference to a CRect to hold button location for popup placement.
Example
CMainFrame* pFrameWnd = (CMainFrame*) AfxGetMainWnd();
if(pFrameWnd->IsKindOf(RUNTIME_CLASS(CMainFrame)))
{
SECToolBarManager* pMgr = pFrameWnd->GetManager();
CRect r;
if(pMgr->IsToolBarCommand(r))
{
m_well.Reset();
VERIFY(m_well.Create(WS_VISIBLE, r, pFrameWnd, FALSE));
m_well.SetColor(m_col);
m_well.SetMouseTracking(FALSE);
m_well.SetNotifyWindow(this);
}
}