Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CEditView

Posted on 1998-08-02
2
Medium Priority
?
410 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

670 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