字体
第(2/7)页
关灯
   存书签 书架管理 返回目录
axHeight=200;

    m_str="欢迎使用本程序!";

    TIMER=0;

    m_brush.CreateSolidBrush(RGB(180,240,210)); //改变对话框背景

    m_brush1.CreateSolidBrush(RGB(255,0,0));

    }

    void CGundongDlg::DoDataExchange(CDataExchange* pDX)

    {

    CDialog::DoDataExchange(pDX);

    //{{AFX_DATA_MAP(CGundongDlg)

    // NOTE: the ClassWizard will add DDX and DDV calls here

    //}}AFX_DATA_MAP

    }

    BEGIN_MESSAGE_MAP(CGundongDlg, CDialog)

    //{{AFX_MSG_MAP(CGundongDlg)

    ON_WM_SYSCOMMAND()

    ON_WM_PAINT()

    ON_WM_QUERYDRAGICON()

    ON_WM_TIMER()

    ON_WM_CTLCOLOR()

    ON_WM_DESTROY()

    //}}AFX_MSG_MAP

    END_MESSAGE_MAP()

    /////////////////////////////////////////////////////////////////////////////

    // CGundongDlgcomssage handlers

    BOOL CGundongDlg::OnInitDialog()

    {

    CDialog::OnInitDialog();

    // Add "About..."comnu item to systemcomnu.

    // IDM_ABOUTBOX must be in the system command range.

    ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);

    ASSERT(IDM_ABOUTBOX < 0xF000);

    CMenu* pSysMenu = GetSystemMenu(FALSE);

    if (pSysMenu != NULL)

    {

    CString strAboutMenu;

    枫叶文学网www.fywxw.com

    第6 章 文本和字体类

    ·155·

    strAboutMenu.LoadString(IDS_ABOUTBOX);

    if (!strAboutMenu.IsEmpty())

    {

    pSysMenu->AppendMenu(MF_SEPARATOR);

    pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);

    }

    }

    // 
上一页 目录 下一页