Solved

CEditView

Posted on 1998-08-02
2
390 Views
Last Modified: 2013-11-19
I am working on a MDI application. The view is derived from CEditView. I use AppWizard to create the whole frame work.
Question#1: Not like the case which the view is derived from CView, why OnDraw never get called in the view derived from CEditView? Which function is handling the screen update?
Question#2: What kind of functions in CEditView available I can call to change the font's style, attributes and window's (View) Foreground and BackGround color? Like SetDefaultCharFormat in CRichEdit.
0
Comment
Question by:garylin
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1320143
1. In this case, the view really doesn't have anything to draw because the entire client area is covered by an edit control. In this case, you will need to override the EvPaint for the edit control in order to know when to draw.

2. The edit control does not support multiple fonts and attributes, you should create another application from the wizard using the CRichEditView instead. Then you can use SetDefaultCharFormat() and such on the view.

0
 

Expert Comment

by:kalai26_2000
ID: 2502306
Hi,

What you mean by EvPaint? Could you please expalin how to draw
using OnDraw or equivalent to draw on a CRichEditView.

Thanks...
Kalai
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
method notes when mouse over in eclipse 5 68
lucky13 challenge 11 112
sumHeights  challenge 17 61
mapAB Challlenge 35 85
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now