⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mybar.cpp

📁 MFC 空间数据的表达与操作
💻 CPP
字号:
// MyBar.cpp : implementation file
//

#include "stdafx.h"
#include "MyGeoMap.h"
#include "MyBar.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyBar dialog


CMyBar::CMyBar(CWnd* pParent /*=NULL*/)
{
	//{{AFX_DATA_INIT(CMyBar)
	//}}AFX_DATA_INIT
	tab1=new CDialogTab1();
	tab2=new CDialogTab2();
}


void CMyBar::DoDataExchange(CDataExchange* pDX)
{
	CDialogBar::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyBar)
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMyBar, CDialogBar)
	//{{AFX_MSG_MAP(CMyBar)
	ON_WM_SHOWWINDOW()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyBar message handler
void CMyBar::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	CDialogBar::OnShowWindow(bShow, nStatus);
	CRect rect1;
	CRect rect2;
	if (bShow) 
	{
		tab1->Create(IDD_DIALOGTAB1,this);
		tab1->GetClientRect(&rect1);
		tab1->SetWindowPos(NULL,4,15,rect1.right+3,rect1.bottom+3,0);
		tab1->ShowWindow(SW_SHOW);
	
		tab2->Create(IDD_DIALOGTAB2,this);
		tab2->GetClientRect(&rect2);
		tab2->SetWindowPos(NULL,4,rect1.bottom+30+4,rect2.right,rect2.bottom,0);
		tab2->ShowWindow(SW_SHOW);
		SetWindowText("控制栏");
	}	
}

BOOL CMyBar::Init()
{
	UpdateData(false);
	this->GetClientRect(&rect);
	return true;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -