MFC Aero wizard Aero 向导对话框 透明玻璃效果(很容易实现的)
mfc吧
全部回复
仅看楼主
level 1
zhongwei228 楼主
#pragma once
// CMySheet1
class CMySheet1 : public CPropertySheet
{
DECLARE_DYNAMIC(CMySheet1)
public:
CMySheet1(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CMySheet1();
CPropertyPage* m_propPage1;
CPropertyPage* m_propPage2;
protected:
DECLARE_MESSAGE_MAP()
};
CPP
#include "stdafx.h"
#include "T123.h"
#include "MySheet1.h"
#include "Page1.h"
#include "Page2.h"
// CMySheet1
IMPLEMENT_DYNAMIC(CMySheet1, CPropertySheet)
CMySheet1::CMySheet1(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
m_psh.dwFlags |= PSH_AEROWIZARD | PSH_USEICONID;
m_psh.pszIcon = MAKEINTRESOURCE(IDR_MAINFRAME);
m_propPage1 = (CPage1*) new CPage1();
m_propPage2 = (CPage2*) new CPage2();
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::~CMySheet1()
{
}
BEGIN_MESSAGE_MAP(CMySheet1, CPropertySheet)
END_MESSAGE_MAP()
// CMySheet1 message handlers
调用
void CT123Dlg::OnBnClickedButton12()
{
// TODO: Add your control notification handler code here
CMySheet1 dlg(IDS_STRING102);
dlg.DoModal();
}
2010年05月15日 04点05分 1
level 1
zhongwei228 楼主
2010年05月15日 04点05分 2
level 1
zhongwei228 楼主
2010年05月15日 04点05分 3
level 1
zhongwei228 楼主
m_psh.dwFlags |= PSH_AEROWIZARD | PSH_USEICONID;
2010年05月15日 04点05分 4
level 1
zhongwei228 楼主
环境 :Windows7 + Visual Studio 2010
2010年05月15日 04点05分 5
level 1
zhongwei228 楼主
注意:XP系统不支持Aero用户界面
2010年05月15日 04点05分 6
level 1
没看明白m_psh是哪来的,是什么变量...
2014年10月07日 00点10分 8
CPropertySheet::m_psh , 我们常用的CDialog是没有这个成员参数的,楼主说的也就只有CPropertySheet才能用。
2014年10月08日 08点10分
1