Solved

CEdit cut,paste etc. abilities

Posted on 2001-06-19
4
378 Views
Last Modified: 2013-11-20
Hi,
I created a CEdit Ctrl which its parent is the view:

void CIrisGUITestsView::OnCreateedit()
{
     CEdit* mEdit = new CEdit();
     CRect aEditRect(CPoint(10,10),CPoint(150,35));
     mEdit->Create (WS_BORDER | WS_CHILD |ES_AUTOHSCROLL|WS_EX_LTRREADING  ,aEditRect,this,0);
     mEdit->ShowWindow (SW_SHOW);          
}
when I tried to use copy & paste abilities of the CEdit Ctrl it does not working.
I found out that the same code is working when the parent is a dialog box...

Can someone please help me with this matter ??
thanks,
Iris.
0
Comment
Question by:irisz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 9

Expert Comment

by:Pacman
ID: 6206006
What about using CFormView ?
0
 

Author Comment

by:irisz
ID: 6206025
I am not using a CFormView.
Besides, in my real app the parent of the CEdit is a CWnd and not a CView. I think that the problem occurs because that the parent of the Edit is not a dialog.
0
 
LVL 9

Accepted Solution

by:
Pacman earned 25 total points
ID: 6206049
The Window Procedure of the CDialog class handles the controls. If you add controls to a CWnd then you'll have no "control support". If you want this support in your CWnd then you've to create a CFormView in it and add the controls to the CFormView object.
0
 
LVL 9

Expert Comment

by:Pacman
ID: 6213927
do you have any questions?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

736 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question