码迷,mamicode.com
首页 > 移动开发 > 详细

Change ICON of MFC Application and Dialog

时间:2014-07-22 23:10:35      阅读:553      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   color   io   

Change ICON of MFC Application and Dialog
http://www.codeproject.com/Tips/406870/Change-ICON-of-MFC-Application-and-Dialog

mamicode.com,码迷
#include "FirstApp.h"
#include "resource.h"
 
CFirstWnd::CFirstWnd()
{
    Create(
        NULL,
        "My First Application",
        WS_OVERLAPPEDWINDOW
        );
}
 
BOOL CFirstApp::InitInstance()
{
     
    m_pMainWnd=new CFirstWnd();
    HICON hIcon=::LoadIcon(AfxGetInstanceHandle(),MAKEINTRESOURCE(AFX_ID_STD_FRAME));
    m_pMainWnd->SetIcon(hIcon,FALSE);
    m_pMainWnd->ShowWindow(m_nCmdShow);
    m_pMainWnd->UpdateWindow();
    return true;
}
 
CFirstApp firstApp;
mamicode.com,码迷

 

Change ICON of MFC Application and Dialog,码迷,mamicode.com

Change ICON of MFC Application and Dialog

标签:style   blog   http   java   color   io   

原文地址:http://www.cnblogs.com/hongjiumu/p/3700338.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!