Solved

CEditView

Posted on 1998-08-02
2
392 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

21 Experts available now in Live!

Get 1:1 Help Now