图片效果地址: 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: