【VC界面设计】漂亮对话框自绘

本文介绍了如何在VC中进行对话框的自定义绘制,通过详细的步骤和示例,展示了如何实现一个美观的对话框界面。文章附带了图片效果链接,展示了自绘后的对话框界面。
摘要由CSDN通过智能技术生成


图片效果地址: http://links.imgup.cn/201111/3/12/81494_1320295494b4g9.jpeg

// 对话框非客户区自绘Dlg.h : header file
//


#if !defined(AFX_DLG_H__29895C86_9D01_4C17_B374_289E36621F88__INCLUDED_)
#define AFX_DLG_H__29895C86_9D01_4C17_B374_289E36621F88__INCLUDED_


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


/
// CMyDlg dialog


class CMyDlg : public CDialog
{
// Construction
public:
	void GetAreasOfRect();
	CRect NCClientToScreen(CRect* lpRtSrc);
	void DrawNCButtons(CDC *pDC);
	BOOL InitInfo();
	BOOL DrawBitmapInRect(CRect rt, CBitmap *cbmp, CDC *pDC);
	void DrawNC(CDC* pDC);
	LONG GetBitmapWidth(CString strBmpName);
	LONG GetBitmapHeight(CString strBmpName);
	BOOL LoadBitmapFromFile(CString strBmpName, CBitmap* cbmp);
	CMyDlg(CWnd* pParent = NULL);	// standard constructor


// Dialog Data
	//{
 {AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


	// ClassWizard generated virtual function overrides
	//{
 {AFX_VIRTUAL(CMyDlg)
	protected:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值