資源簡介
mfc自帶的tabsheet控件是橫排按鈕在上面的,這個自繪控件實現在左側豎排的Tab選擇,并且可以添加圖標。
代碼片段和文件信息
//?MyPropertySheet.cpp?:?實現文件
//
#include?“stdafx.h“
#include?“MyPropertySheet.h“
#include
extern?bool?OPP[2];
CView*?g_pView?;
//?CMyPropertySheet
static?BOOL?bMoved[4]?=?{FALSEFALSEFALSEFALSE};
IMPLEMENT_DYNAMIC(CMyPropertySheet?CPropertySheet)
CMyPropertySheet::CMyPropertySheet(UINT?nIDCaption?CWnd*?pParentWnd?UINT?iSelectPage)
:CPropertySheet(nIDCaption?pParentWnd?iSelectPage)?m_nSelectedItem(0)?m_clrTextBkSele(RGB(150150150))m_clrSeprator(RGB(0132255))
m_clrCaption(RGB(92132255))
{
m_szCaption?=?new?TCHAR[128];
//默認16*16,32位色圖標
m_imgList.Create(1616ILC_COLOR32?0?20);
m_ftList.CreatePointFont(90_T(“Papyrus“));
}
CMyPropertySheet::CMyPropertySheet(LPCTSTR?pszCaption?CWnd*?pParentWnd?UINT?iSelectPage)
:CPropertyS
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1588??2010-06-08?16:31??MypropertySheet.h
?????文件??????12217??2010-06-08?18:17??MypropertySheet.cpp
-----------?---------??----------?-----??----
????????????????13805????????????????????2
- 上一篇:visual C++ 實現文件共享
- 下一篇:VC++讀寫FAT32操作
評論
共有 條評論