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

📄 exdialog.cpp

📁 wince 文件打开对话框自定义 文件对话框
💻 CPP
字号:
// ExDialog.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "ExDialog.h"

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


//---------------------------------------------------------------------------
//
//	CExDialog dialog
//
//---------------------------------------------------------------------------


CExDialog::CExDialog()
{
}


CExDialog::CExDialog(UINT nIDTemplate, CWnd* pParent /*=NULL*/)
	: CDialog(nIDTemplate, pParent)
{
	//{{AFX_DATA_INIT(CExDialog)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CExDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CExDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CExDialog, CDialog)
	//{{AFX_MSG_MAP(CExDialog)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()



// CExDialog::EnableControl
//
//		Enable or disable a control given its ID
//
BOOL CExDialog::EnableControl(UINT nID, BOOL bEnable)
{
	CWnd*	pWnd;

	pWnd = GetDlgItem(nID);
	if(pWnd)
		pWnd->EnableWindow(bEnable);

	return pWnd != NULL;
}


//---------------------------------------------------------------------------
//
//	CExDialog message handlers
//
//---------------------------------------------------------------------------


// CExDialog::OnPaint
//
//		Paints the dialog
//
void CExDialog::OnPaint() 
{
	CPaintDC dc(this); // device context for painting

	//
	// Paints the header if available
	//
	if(!m_strTitle.IsEmpty())
		PaintHeader(dc);

	DoPaint(dc);
}


// CExDialog::DoPaint
//
//		Workhorse painting method
//
void CExDialog::DoPaint(CPaintDC &dc)
{
}

⌨️ 快捷键说明

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