本文整理汇总了C++中ShowControlBar函数的典型用法代码示例。如果您正苦于以下问题:C++ ShowControlBar函数的具体用法?C++ ShowControlBar怎么用?C++ ShowControlBar使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ShowControlBar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ShowControlBar
BOOL CMainFrame::DestroyWindow()
{
ShowControlBar(&m_ParentMessageBar,0,1);
if(nCurAppRunMode==CONFIG_MODE)
ShowControlBar(&m_ParentPropertyBar,0,1);
CWinApp * pApp = ::AfxGetApp();
VERIFY(
CExtControlBar::ProfileBarStateSave(
this,
pApp->m_pszRegistryKey,
csProfileName,
"Save"
)
);
g_CmdManager->ProfileWndRemove( GetSafeHwnd() );
/*
//—охран¤ем стиль
CString Str="2K";
if(g_PaintManager->IsKindOf( RUNTIME_CLASS(CExtPaintManagerXP) ) )
Str="XP";
pApp->WriteProfileString(csProfileName, "Style", Str);
*/
bStopRunProgram=1;
return CMDIFrameWnd::DestroyWindow();
//exit(0);
//return 1;
}
示例2: ShowControlBar
void CMyFrameWnd::OnTool(void){
if( toolbar.IsWindowVisible() )
ShowControlBar(&toolbar,false,true);
else
ShowControlBar(&toolbar,true,true);
}
示例3: ShowControlBar
void CPromFrame::TB_displayAll(bool show)
{
ShowControlBar(&em_fileBar,show,FALSE);
ShowControlBar(&dm_fileBar,show,FALSE);
ShowControlBar(&dt_fileBar,show,FALSE);
ShowControlBar(&db_fileBar,show,FALSE);
}
示例4: ShowControlBar
void CMainFrame::OnDoodadsEdit()
{
// use only "m_wndDoodsEditBar" state!
bool visible = !m_wndDoodsEditBar.IsVisible();
ShowControlBar(&m_wndDoodsEditBar, visible, false);
ShowControlBar(&m_wndDoodadsEditToolBar, visible, false);
}
示例5: ShowControlBar
void CGuiFrameWnd::ShowHideBar(CControlBar* pBar)
{
if (pBar->IsWindowVisible())
ShowControlBar(pBar, FALSE, FALSE);
else
ShowControlBar(pBar, TRUE, FALSE);
}
示例6: ShowControlBar
// Display or hide the object window
//
void CMainFrame::OnAffichageFenetreObjet()
{
if( m_wndObjectBar.IsWindowVisible() )
ShowControlBar( &m_wndObjectBar, false, false );
else
ShowControlBar( &m_wndObjectBar, true, false );
RecalcLayout();
}
示例7: ShowControlBar
void CMainFrame::OnViewGisLayerPanel()
{
m_bShowGISLayerToolBar= !m_bShowGISLayerToolBar;
if(m_bShowGISLayerToolBar)
ShowControlBar(&m_GISLayerBar,true,false);
else
ShowControlBar(&m_GISLayerBar,false,false);
}
示例8: GetWindowPlacement
void CMainFrame::ViewFullScreen(COnStationView *pView)
{
if (!m_bFullScreen)
{
GetWindowPlacement(&m_wplNormal);
if (!(m_wplNormal.flags&SW_SHOWMAXIMIZED))
{
ShowWindow(SW_SHOWMAXIMIZED);
}
m_dataView.ShowWindow(SW_HIDE);
int iMaxX=GetSystemMetrics(SM_CXSCREEN);
int iMaxY=GetSystemMetrics(SM_CYSCREEN);
int iTitleBarFudge=GetSystemMetrics(SM_CYMENU)+GetSystemMetrics(SM_CYCAPTION);
int iBorder=GetSystemMetrics(SM_CYFRAME);
MoveWindow(-iBorder,-iTitleBarFudge-5,iMaxX+iBorder*2+3,iMaxY+iTitleBarFudge+60,TRUE);
m_wndToolBar.ShowWindow(SW_HIDE);
m_wndStatusBar.ShowWindow(SW_HIDE);
m_wndRuler.ShowWindow(SW_HIDE);
ShowControlBar(&m_wndToolBarFullScreen,TRUE,TRUE);
RecalcLayout();
if (pView!=NULL)
{
pView->GetParent()->ShowWindow(SW_SHOWMAXIMIZED);
}
}
else
{
CAppSettings *Set=theApp.GetSettings();
m_dataView.ShowWindow(SW_SHOW);
m_wndStatusBar.ShowWindow(Set->m_bStatusBar);
m_wndToolBar.ShowWindow(Set->m_bToolBar);
ShowControlBar(&m_wndToolBarFullScreen,FALSE,TRUE);
m_wndRuler.ShowWindow(Set->m_bRuler?SW_SHOW:SW_HIDE);
//The following code fixes a problem where some stuff
//didn't redraw properly coming out of full screen mode
//if we were maximized. In particular, the status bar
//would show up off the bottom of the screen.
if (m_wplNormal.flags&SW_SHOWMAXIMIZED)
{
ShowWindow(SW_SHOWNORMAL);
RecalcLayout();
SetWindowPlacement(&m_wplNormal);
}
SetWindowPlacement(&m_wplNormal);
RecalcLayout();
}
m_bFullScreen=!m_bFullScreen;
}
示例9: ShowControlBar
void CMainFrame::OnViewMiplightcontrol()
{
BOOL bVisible = ((m_MipAndLightToolBar.GetStyle() & WS_VISIBLE) != 0);
ShowControlBar(&m_MipAndLightToolBar, !bVisible, FALSE);
RecalcLayout();
}
示例10: ShowControlBar
void CMainFrame::OnViewPalette()
{
BOOL bVisible = ((m_wndPaletteBar.IsWindowVisible()) != 0);
ShowControlBar(&m_wndPaletteBar, !bVisible, FALSE);
RecalcLayout();
}
示例11: OnTimer
void CMainWnd::OnTimer(UINT nIDEvent)
{
// Propagate to children
if ( m_bInTimer ) return;
m_bInTimer = TRUE;
for ( POSITION pos = m_pWindows.GetIterator() ; pos ; )
{
CChildWnd* pChild = m_pWindows.GetNext( pos );
pChild->PostMessage( WM_TIMER, 1, 0 );
}
m_bInTimer = FALSE;
// Menu Bar
if ( m_wndMenuBar.IsWindowVisible() == FALSE ) ShowControlBar( &m_wndMenuBar, TRUE, FALSE );
// Update messages
if ( m_bInTimer ) return;
m_bInTimer = TRUE;
UpdateMessages();
m_bInTimer = FALSE;
}
示例12: ShowControlBar
void CMainFrame::OnViewSpectrumBar()
{
BOOL bShow = !m_SpectrumBar.IsWindowVisible();
ShowControlBar(&m_SpectrumBar, bShow, 0);
if (bShow) // if showing bar
m_SpectrumBar.UpdateView(); // update view
}
示例13: ShowControlBar
void CMainFrame::OnViewWorkspace()
{
ShowControlBar (&m_wndWorkSpace,
!(m_wndWorkSpace.GetStyle () & WS_VISIBLE),
FALSE);
RecalcLayout ();
}
示例14: ShowControlBar
void CMainFrame::OnViewPalette()
{
BOOL bVisible = ((m_wndPaletteBar.GetStyle() & WS_VISIBLE) != 0);
ShowControlBar(&m_wndPaletteBar, !bVisible, FALSE);
RecalcLayout();
}
示例15: TRACE0
int CDataFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!dataTools.Create(this) || !dataTools.LoadToolBar(IDR_DATA_LIST)) {
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
dataTools.SetBarStyle(dataTools.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
if (!fileBar.Create(this) || !fileBar.LoadToolBar(IDR_FILE_DATABASE)) {
TRACE0("Failed to create file bar\n");
return false; // fail to create
}
fileBar.SetBarStyle(fileBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
fileBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
fileBar.SetWindowText("Database");
ShowControlBar(&fileBar,FALSE,FALSE);
DockControlBar(&fileBar);
if (!dataStatus.Create(this) ||
!dataStatus.SetIndicators(indicators,sizeof(indicators)/sizeof(UINT))) {
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
return 0;
}