1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,276
    Likes Received:
    364
    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,276
    Likes Received:
    364
    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