本文整理汇总了C++中CControlBar::GetStyle方法的典型用法代码示例。如果您正苦于以下问题:C++ CControlBar::GetStyle方法的具体用法?C++ CControlBar::GetStyle怎么用?C++ CControlBar::GetStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CControlBar
的用法示例。
在下文中一共展示了CControlBar::GetStyle方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnBarCheckEx
BOOL CMainFrame::OnBarCheckEx(UINT nID)
{
int count = m_wndSplitter.GetRowCount ();
for ( int i = 0 ; i < count ; i++ ) {
(m_wndSplitter.GetPane(i, 0))->InvalidateRect(NULL);
}
//vls-begin// multiple output
CControlBar* pBar = GetControlBar(nID);
if (pBar != NULL) {
BOOL bVisible = (pBar->GetStyle() & WS_VISIBLE);
for (int i = 0; i < MAX_OUTPUT; i++) {
if (nID == outputwindows[i]) {
m_coolBar[i].m_bFlag = !bVisible;
break;
}
}
}
//vls-end//
return OnBarCheck(nID);
}
示例2: OnUpdateTabbar
void CMainFrame::OnUpdateTabbar(CCmdUI* pCmdUI)
{
CControlBar* pBar = (CControlBar*)&m_wndTabBar ;
if (pBar != NULL)
{
pCmdUI->SetCheck((pBar->GetStyle() & WS_VISIBLE) != 0);
}
}
示例3: OnTabbar
void CMainFrame::OnTabbar()
{
CControlBar* pBar = (CControlBar*)&m_wndTabBar ;
if( pBar )
{
ShowControlBar( pBar, (pBar->GetStyle() & WS_VISIBLE) == 0, FALSE ) ;
}
}
示例4: OnViewEditingtoolbar
void CMainFrame::OnViewEditingtoolbar()
{
CControlBar *pBar = DYNAMIC_DOWNCAST(CControlBar,&m_wndEditBar);
if(pBar)
{
ShowControlBar(pBar, (pBar->GetStyle() & WS_VISIBLE) == 0, FALSE);
}
}
示例5: OnUpdateFcToolBarMenu
void CMainFrame::OnUpdateFcToolBarMenu(CCmdUI* pCmdUI)
{
CControlBar* pBar = GetControlBar(IDR_FORMAT);
if (pBar != NULL)
{
pCmdUI->SetCheck((pBar->GetStyle() & WS_VISIBLE) != 0);
return;
}
pCmdUI->ContinueRouting();
}
示例6: OnToggleFcToolBar
BOOL CMainFrame::OnToggleFcToolBar(UINT nID)
{
CControlBar* pBar = GetControlBar(IDR_FORMAT);
if (pBar != NULL)
{
ShowControlBar(pBar, (pBar->GetStyle() & WS_VISIBLE) == 0, FALSE);
return TRUE;
}
return FALSE;
}
示例7: OnUpdateViewEditingtoolbar
void CMainFrame::OnUpdateViewEditingtoolbar(CCmdUI* pCmdUI)
{
CControlBar *pBar = DYNAMIC_DOWNCAST(CControlBar,&m_wndEditBar);
if (pBar != NULL)
{
pCmdUI->SetCheck((pBar->GetStyle() & WS_VISIBLE) != 0);
return;
}
}
示例8: OnShowOutput
//vls-begin// multiple output
LONG CMainFrame::OnShowOutput(UINT wParam, LONG lParam)
{
int wnd = (int)wParam;
int opt = (int)lParam;
UINT nId = outputwindows[wnd];
CControlBar* pBar = GetControlBar(nId);
if (pBar != NULL && opt > 0) {
BOOL bVisible = (pBar->GetStyle() & WS_VISIBLE);
if ( (opt>1 && bVisible) || (opt==1 && !bVisible) )
return 0;
}
return SendMessage(WM_COMMAND, nId, 0);
}
示例9: OnBarCheck
BOOL CMainFrame::OnBarCheck(UINT nID)
{
ASSERT(ID_VIEW_STATUS_BAR == AFX_IDW_STATUS_BAR);
ASSERT(ID_VIEW_TOOLBAR == AFX_IDW_TOOLBAR);
ASSERT(ID_VIEW_REBAR == AFX_IDW_REBAR);
CControlBar* pBar = GetControlBar(nID);
if (pBar != NULL)
{
ShowControlBar(pBar, (pBar->GetStyle() & WS_VISIBLE) == 0, FALSE);
return TRUE;
}
return FALSE;
}
示例10: OnUpdateControlBarMenu
void CMainFrame::OnUpdateControlBarMenu(CCmdUI* pCmdUI)
{
ASSERT(ID_VIEW_STATUS_BAR == AFX_IDW_STATUS_BAR);
ASSERT(ID_VIEW_TOOLBAR == AFX_IDW_TOOLBAR);
ASSERT(ID_VIEW_REBAR == AFX_IDW_REBAR);
CControlBar* pBar = GetControlBar(pCmdUI->m_nID);
if (pBar != NULL)
{
pCmdUI->SetCheck((pBar->GetStyle() & WS_VISIBLE) != 0);
return;
}
pCmdUI->ContinueRouting();
}
示例11: OnBarCheck
BOOL CMainFrame::OnBarCheck(UINT nID)
{
BOOL bCheck = CFrameWnd::OnBarCheck (nID);
CControlBar* pBar = GetControlBar (nID);
m_bShowCtrlBar = pBar && ((pBar->GetStyle () & WS_VISIBLE) != 0);
#if EDITBAR
m_editBar.ShowWindow ((m_bShowCtrlBar && m_bEditorTB) ? SW_SHOW : SW_HIDE);
#endif
if (m_bShowCtrlBar) {
if (m_bRecalcBarLayout)
RecalcLayout (1);
if (!CreateToolBars ())
FixToolBars ();
}
else {
CRect rc;
m_splitter2.GetPane (1,0)->GetWindowRect (rc);
m_bRecalcBarLayout = (theApp.ToolSize ().cy == rc.Height () + 10);
}
return bCheck;
}