Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Patrick Tang

@Patrick Tang
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to check memory how many?
    P Patrick Tang

    because i need to distribution memory to write something, if memory is not enough, tip to user

    C / C++ / MFC performance tutorial question

  • How to check memory how many?
    P Patrick Tang

    please post your code

    C / C++ / MFC performance tutorial question

  • How can insert menu to dialog by ce application?
    P Patrick Tang

    i already find the reason, beacause

    "
    m_menu.LoadMenuW(IDR_MENU);

    dlg.SetMenu(&m_menu);
    "

    should be put in Dialog InitDialog method;

    C / C++ / MFC help question

  • How can insert menu to dialog by ce application?
    P Patrick Tang

    How can insert menu to dialog by ce application?

    CMenu m_menu;

    m_menu.LoadMenuW(IDR_MENU_MAIN);

    CMyCEApplicationDlg dlg;
    m_pMainWnd = &dlg;

    dlg.SetMenu(&m_menu);

    RunTime the code "dlg.SetMenu(&m_menu);" is error.

    C / C++ / MFC help question

  • How to create a form or dailog in MFC-MDI ?
    P Patrick Tang

    I find error because I Create AboutDailog and i show this dailog; but AboutDailog code same of system create CAboutDlg : ----------AboutDailog.h--------------------- class AboutDailog : public CDialog { DECLARE_DYNAMIC(AboutDailog) public: AboutDailog(); virtual ~AboutDailog(); protected: DECLARE_MESSAGE_MAP() public: afx_msg void OnFileAbout(); }; ----------AboutDailog.cpp--------------------- // AboutDailog.cpp : 实现文件 // #include "stdafx.h" #include "MyControlTest.h" #include "AboutDailog.h" // AboutDailog IMPLEMENT_DYNAMIC(AboutDailog, CWnd) AboutDailog::AboutDailog() { } AboutDailog::~AboutDailog() { } BEGIN_MESSAGE_MAP(AboutDailog, CWnd) ON_COMMAND(ID_FILE_ABOUT, &AboutDailog::OnFileAbout) END_MESSAGE_MAP() // AboutDailog 消息处理程序 void AboutDailog::OnFileAbout() { // TODO: 在此添加命令处理程序代码 AboutDailog aboutDlg; aboutDlg.DoModal(); } ----------CAboutDlg.h--------------------- class CAboutDlg : public CDialog { public: CAboutDlg(); // 对话框数据 enum { IDD = IDD_ABOUTBOX }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: DECLARE_MESSAGE_MAP() }; ----------CAboutDlg.cpp--------------------- CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) END_MESSAGE_MAP() // 用于运行对话框的应用程序命令 void CMyControlTestApp::OnAppAbout() { CAboutDlg aboutDlg; aboutDlg.DoModal(); /*AboutDailog aboutDlg; aboutDlg.DoModal();*/ }

    C / C++ / MFC help c++ tutorial question

  • How to create a form or dailog in MFC-MDI ?
    P Patrick Tang

    In MFC-MDI, I create Dailog in MFC-MDI Maiframe, but tell me is error. In MFC-Dailog, create Dailog is No problem ; Help Help Help ;

    C / C++ / MFC help c++ tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups