newb CEdit in a CFrameWnd prob

OK, I got the following code:
[code]
#include "stdafx.h"
#include

#define ID_EDIT 100

class mfcTest :public CFrameWnd
{
public:
CEdit edit;
mfcTest(){

CRect rect(85, 110, 180, 210);
edit.Create(WS_VISIBLE | WS_TABSTOP |
ES_AUTOHSCROLL | WS_BORDER, rect, this, ID_EDIT);

Create(NULL,"Testing...");

}
};

class MyApp :public CWinApp
{
mfcTest *wnd;
public:
BOOL InitInstance(){
wnd = new mfcTest();
m_pMainWnd = wnd;
m_pMainWnd->ShowWindow(1);
return 1;
}
};

MyApp theApp;
[/code]

It compiles and runs, but the CEdit isn't there.

I'm a complete noob on MFC, I started today.

Thanks for your time
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories