初始mfc 需要使用Edit控件 下面是代码 运行的结果只有一个窗体 看不到文本输入框 大家帮忙看看~(CEdit的Create函数中IDC_EDIT是哪来的 我运行时是用1代替的)  我是用vs2005生成的win32application项目
hello.h内容如下
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};class CMainWindow : public CFrameWnd
{
public:
CMainWindow();protected:
DECLARE_MESSAGE_MAP()
};hello.cpp内容如下:
#include<afxwin.h>
#include"hello.h"CMyApp myApp;BOOL CMyApp :: InitInstance()
{
m_pMainWnd = new CMainWindow;
m_pMainWnd -> ShowWindow(m_nCmdShow);
m_pMainWnd -> UpdateWindow();
return TRUE;
}BEGIN_MESSAGE_MAP( CMainWindow, CFrameWnd)END_MESSAGE_MAP()CMainWindow::CMainWindow()
{
Create (NULL, _T("我的标题"));CEdit m_wndEdit;
CRect rect(5, 5, 120, 120);
m_wndEdit.Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
  rect, this, 1);
// m_wndEdit.SetWindowText(_T("ddd"));}
void CMainWindow::OnLButtonDown(UINT nFlag, CPoint point)
{CButton *my_button = new CButton();
my_button -> Create(_T("内容"), WS_CHILD | WS_VISIBLE |
BS_PUSHBUTTON, CRect(10, 10, 20, 20), this, IDC_EDIT);}