⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test20071022dlg.cpp

📁 evc 实现透明的按钮
💻 CPP
字号:
// test20071022Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "test20071022.h"
#include "test20071022Dlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTest20071022Dlg dialog

CTest20071022Dlg::CTest20071022Dlg(CWnd* pParent /*=NULL*/)
	: CDialog(CTest20071022Dlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTest20071022Dlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CTest20071022Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CTest20071022Dlg)
	DDX_Control(pDX, IDC_BUTTON4, m_btn4);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CTest20071022Dlg, CDialog)
	//{{AFX_MSG_MAP(CTest20071022Dlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTest20071022Dlg message handlers

BOOL CTest20071022Dlg::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
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	HICON m_hIcon1 = AfxGetApp()->LoadIcon(IDI_ICON1);
	HICON m_hIcon2 = AfxGetApp()->LoadIcon(IDI_ICON2);

	m_btn4.SetIcon(m_hIcon2,m_hIcon1);
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -