Solved

CEditView

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
substring method in java 1 129
sum67 challenge 35 108
ShiftLeft challenge 21 86
FizzBuzz challenge 9 82
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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