Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Text Editor using VC++ (http://www.go4expert.com/forums/text-editor-using-vcpp-t12539/)

payamrastogi 29Jul2008 08:04

Text Editor using VC++
 
Want to develop text editor using VC++.Can somebody help me?...

shabbir 29Jul2008 10:29

Re: Text Editor using VC++
 
You can use the wizard to have a basic Text Editor Setup in VC

payamrastogi 30Jul2008 06:36

Re: Text Editor using VC++
 
Thanks Shabbir but could you please explain it little bit more

shabbir 30Jul2008 09:14

Re: Text Editor using VC++
 
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 )

payamrastogi 31Jul2008 13:59

Re: Text Editor using VC++
 
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;



All times are GMT +5.5. The time now is 21:37.