📄 viewpropertysheet.cpp
字号:
// ViewPropertySheet.cpp : implementation file
//
#include "stdafx.h"
#include "LinkPLC.h"
#include "ViewPropertySheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CViewPropertySheet
IMPLEMENT_DYNAMIC(CViewPropertySheet, CPropertySheet)
CViewPropertySheet::CViewPropertySheet(CWnd* pParentWnd)
:CPropertySheet(AFX_IDS_APP_TITLE, pParentWnd)
{
for(int i=0 ; i<1 ; i++)
AddPage(&m_pageMy[i]);
}
CViewPropertySheet::~CViewPropertySheet()
{
}
BEGIN_MESSAGE_MAP(CViewPropertySheet, CPropertySheet)
//{{AFX_MSG_MAP(CViewPropertySheet)
ON_WM_SHOWWINDOW()
ON_WM_DRAWITEM()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CViewPropertySheet message handlers
void CViewPropertySheet::OnShowWindow(BOOL bShow, UINT nStatus)
{
CPropertySheet::OnShowWindow(bShow, nStatus);
char st[10];
char s[10];
TCITEM tcItem;
CTabCtrl *tc=GetTabControl();
tcItem.mask=TCIF_TEXT;
for(int i=0 ; i<16 ; i++)
{
strcpy(st,"Station ");
tcItem.pszText=strcat(st,itoa(i,s,10));
tc->SetItem(i,&tcItem);
}
}
void CViewPropertySheet::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
{
CPropertySheet::OnDrawItem(nIDCtl, lpDrawItemStruct);
}
void CViewPropertySheet::DoDataExchange(CDataExchange* pDX)
{
CPropertySheet::DoDataExchange(pDX);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -