📄 sheetui.cpp
字号:
// SheetUI.cpp : implementation file
//
#include "stdafx.h"
#include "gstools.h"
#include "SheetUI.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSheetUI
IMPLEMENT_DYNAMIC(CSheetUI, CPropertySheet)
CSheetUI::CSheetUI(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
AddPage(&m_page_panel);
}
CSheetUI::CSheetUI(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
AddPage(&m_page_panel);
}
CSheetUI::~CSheetUI()
{
}
BEGIN_MESSAGE_MAP(CSheetUI, CPropertySheet)
//{{AFX_MSG_MAP(CSheetUI)
// NOTE - the ClassWizard will add and remove mapping macros here.
ON_COMMAND(ID_APPLY_NOW, OnApplyNow)
ON_COMMAND(IDOK, OnOk)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSheetUI message handlers
BOOL CSheetUI::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
m_page_panel.SetUI(m_ptr_ui);
// TODO: Add your specialized code here
SetActivePage(0);
return bResult;
}
void CSheetUI::OnOk()
{
m_page_panel.Save();
EndDialog(IDOK);
}
void CSheetUI::OnApplyNow()
{
}
BOOL CSheetUI::SetUI(CGsUIPanel *pUI)
{
m_ptr_ui = pUI;
return TRUE;
}
CString CSheetUI::GetUIName()
{
return m_page_panel.m_str_name;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -