Solved

CEdit cut,paste etc. abilities

Posted on 2001-06-19
4
376 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
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Title # Comments Views Activity
bobThere java chalenge 45 94
WinWaitActive parameters 12 31
My project did see openJDK that I installed. What could be the problem 7 152
Capture logon name 13 87
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

829 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