Solved

CEditView

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 35
fizzArray2 challenge 1 109
haveThree challenge 22 126
Not needed 13 133
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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