📄 ce6_vxskinbuttondlg.cpp
字号:
// CE6_VxSkinButtonDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CE6_VxSkinButton.h"
#include "CE6_VxSkinButtonDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CCE6_VxSkinButtonDlg dialog
CCE6_VxSkinButtonDlg::CCE6_VxSkinButtonDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCE6_VxSkinButtonDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CCE6_VxSkinButtonDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EXIT, m_btnSkin);
}
BEGIN_MESSAGE_MAP(CCE6_VxSkinButtonDlg, CDialog)
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
ON_WM_SIZE()
#endif
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// CCE6_VxSkinButtonDlg message handlers
BOOL CCE6_VxSkinButtonDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
m_btnSkin.SetSkin(IDB_EXIT);
return TRUE; // return TRUE unless you set the focus to a control
}
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
void CCE6_VxSkinButtonDlg::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
{
if (AfxIsDRAEnabled())
{
DRA::RelayoutDialog(
AfxGetResourceHandle(),
this->m_hWnd,
DRA::GetDisplayMode() != DRA::Portrait ?
MAKEINTRESOURCE(IDD_CE6_VXSKINBUTTON_DIALOG_WIDE) :
MAKEINTRESOURCE(IDD_CE6_VXSKINBUTTON_DIALOG));
}
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -