#include "stdafx.h"
#include "WINCPP.h"
extern HWND NewEdit(HWND hWnd,HINSTANCE hInst)
{ HWND hWndEdit;
LoadLibrary(L"riched32.dll");//载如编辑框控件控件
hWndEdit=CreateWindow(L"RichEdit",L"",WS_CHILD|ES_MULTILINE|WS_HSCROLL|WS_VSCROLL|ES_AUTOHSCROLL,0,0,600,600,hWnd,NULL,hInst,NULL);
ShowWindow(hWndEdit,SW_SHOWMAXIMIZED);//创建窗口
UpdateWindow(hWndEdit);
return hWndEdit;
}
//end
==============
呵呵,是不是很简单啊?