Text Editor using VC++

Newbie Member
29Jul2008,08:04   #1
payamrastogi's Avatar
Want to develop text editor using VC++.Can somebody help me?...
Go4Expert Founder
29Jul2008,10:29   #2
shabbir's Avatar
You can use the wizard to have a basic Text Editor Setup in VC
Newbie Member
30Jul2008,06:36   #3
payamrastogi's Avatar
Thanks Shabbir but could you please explain it little bit more
Go4Expert Founder
30Jul2008,09:14   #4
shabbir's Avatar
What explanation you need. All you need to do is make the Wizard such that the last Step is Derived from CEditView ( or something similar )
Newbie Member
31Jul2008,13:59   #5
payamrastogi's Avatar
Code:
#include<afxwin.h>
#include "resource.h"
class myframe:public CFrameWnd
{
public:
	myframe()
	{
		Create(0,"Text Editor",WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX,rectDefault,
			0,MAKEINTRESOURCE(IDR_MENU1));
	}
};

class myapp:public CWinApp
{
public:
	int InitInstance()
	{
		myframe *p;
		p=new myframe;
		p->ShowWindow(1);
		m_pMainWnd = p;

		return 1;
	}
};
myapp a;