Text Editor using VC++

Discussion in 'MFC' started by payamrastogi, Jul 29, 2008.

  1. payamrastogi

    payamrastogi New Member

    Joined:
    Jul 29, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Want to develop text editor using VC++.Can somebody help me?...
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,336
    Likes Received:
    377
    Trophy Points:
    83
    You can use the wizard to have a basic Text Editor Setup in VC
     
  3. payamrastogi

    payamrastogi New Member

    Joined:
    Jul 29, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Thanks Shabbir but could you please explain it little bit more
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,336
    Likes Received:
    377
    Trophy Points:
    83
    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 )
     
  5. payamrastogi

    payamrastogi New Member

    Joined:
    Jul 29, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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;
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice