注册 登录
编程论坛 VC++/MFC

窗体无法显示

jianghong_02 发布于 2010-11-15 12:27, 509 次点击
// App.cpp: implementation of the App class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "resource.h"
#include "App.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
App hong;
App::App()
{

}

App::~App()
{

}
App::jiang()
{CFrameWnd  *fr=new CFrameWnd();
   fr->Create(NULL,"jiangong");
   m_pMainWnd=fr;
   m_pMainWnd->ShowWindow(SW_SHOW);
   return true;
}
程序没有问题,但窗口为什么 不能显示呢
1 回复
#2
shafeilong2010-11-16 18:48
应该在框架类那边构造窗口吧?
1