当前位置: 首页>>代码示例>>C++>>正文


C++ ShowControlBar函数代码示例

本文整理汇总了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;
}
开发者ID:open2cerp,项目名称:Open2C-ERP,代码行数:31,代码来源:MainFrm.cpp

示例2: ShowControlBar

void CMyFrameWnd::OnTool(void){
	if( toolbar.IsWindowVisible() )
		ShowControlBar(&toolbar,false,true);
	else
		ShowControlBar(&toolbar,true,true);
	
}
开发者ID:SamsonWang,项目名称:Study,代码行数:7,代码来源:MFCToolBar.cpp

示例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);
}
开发者ID:MarkPThomas,项目名称:winprom,代码行数:7,代码来源:PromFrame.cpp

示例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);
}
开发者ID:Amrf000,项目名称:War3-Jass,代码行数:7,代码来源:MainFrm.cpp

示例5: ShowControlBar

void CGuiFrameWnd::ShowHideBar(CControlBar* pBar)
{
	if (pBar->IsWindowVisible())
		ShowControlBar(pBar, FALSE, FALSE);
	else
		ShowControlBar(pBar, TRUE, FALSE);
}
开发者ID:darwinbeing,项目名称:trade,代码行数:7,代码来源:GuiFrameWnd.cpp

示例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();
}
开发者ID:dkniffin,项目名称:virtualscape,代码行数:10,代码来源:MainFrm.cpp

示例7: ShowControlBar

void CMainFrame::OnViewGisLayerPanel()
{
	m_bShowGISLayerToolBar= !m_bShowGISLayerToolBar;
	if(m_bShowGISLayerToolBar)
		ShowControlBar(&m_GISLayerBar,true,false);
	else
		ShowControlBar(&m_GISLayerBar,false,false);
}
开发者ID:lidapeng,项目名称:dtalite_beta_test,代码行数:8,代码来源:MainFrm.cpp

示例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;
}
开发者ID:felixcollins,项目名称:onstation,代码行数:48,代码来源:MainFrm.cpp

示例9: ShowControlBar

void CMainFrame::OnViewMiplightcontrol() 
{
  BOOL bVisible = ((m_MipAndLightToolBar.GetStyle() & WS_VISIBLE) != 0);

	ShowControlBar(&m_MipAndLightToolBar, !bVisible, FALSE);
	RecalcLayout();
}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:7,代码来源:MainFrm.cpp

示例10: ShowControlBar

void CMainFrame::OnViewPalette()
{
	BOOL bVisible = ((m_wndPaletteBar.IsWindowVisible()) != 0);

	ShowControlBar(&m_wndPaletteBar, !bVisible, FALSE);
	RecalcLayout();
}
开发者ID:jetlive,项目名称:skiaming,代码行数:7,代码来源:mainfrm.cpp

示例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;
}
开发者ID:pics860,项目名称:callcenter,代码行数:28,代码来源:WndMain.cpp

示例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
}
开发者ID:victimofleisure,项目名称:WaveShop,代码行数:7,代码来源:MainFrm.cpp

示例13: ShowControlBar

void CMainFrame::OnViewWorkspace() 
{
	ShowControlBar (&m_wndWorkSpace,
					!(m_wndWorkSpace.GetStyle () & WS_VISIBLE),
					FALSE);
	RecalcLayout ();
}
开发者ID:segafan,项目名称:wme1_jankavan_tlc_edition-repo,代码行数:7,代码来源:MainFrm.cpp

示例14: ShowControlBar

void CMainFrame::OnViewPalette()
{
	BOOL bVisible = ((m_wndPaletteBar.GetStyle() & WS_VISIBLE) != 0);

	ShowControlBar(&m_wndPaletteBar, !bVisible, FALSE);
	RecalcLayout();
}
开发者ID:amitahire,项目名称:development,代码行数:7,代码来源:mainfrm.cpp

示例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;
}
开发者ID:MarkPThomas,项目名称:winprom,代码行数:32,代码来源:DataFrame.cpp


注:本文中的ShowControlBar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。