Text Editor using VC++

payamrastogi's Avatar, Join Date: Jul 2008
Newbie Member
Want to develop text editor using VC++.Can somebody help me?...
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You can use the wizard to have a basic Text Editor Setup in VC
0
payamrastogi's Avatar, Join Date: Jul 2008
Newbie Member
Thanks Shabbir but could you please explain it little bit more
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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 )
0
payamrastogi's Avatar, Join Date: Jul 2008
Newbie Member
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;