Re: CClientDC and TabCtrl ?
- From: "Vipin" <Vipin@xxxxxxxxxx>
- Date: Sun, 30 Jul 2006 08:55:06 +0530
I think it is better to have a CWnd derived control (custom control) and
have the control handle the drawing. The tab control should then use the
Custom control.
--
Vipin Aravind
http://www.explorewindows.com
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:rr7oc25cfu3lm0nnpvucc4ck913va9p9kf@xxxxxxxxxx
No. What you do is create a class which has this responsibility, and make
all your other
pages subclasses of this class (see my essay on subclassing dialogs and
property pages on
my MVP TIps site). What I would do is simply provide the bitmap ID as a
property of the
superclass, but each subclass sets it uniquely, then the OnPaint handler
would only
retrieve this using a virtual method and draw whatever bitmap the virtual
method returned.
Or I'd use the ability to use the image list instead.
joe
On Sat, 29 Jul 2006 21:01:23 GMT, "cdg" <anyone@xxxxxxxxxxxx> wrote:
Joseph M. Newcomer [MVP]
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message >
The painting must be done in the WM_PAINT message handler OnPaint.
So, it's necessary to create a WM_PAINT message handler for each Tab
Page
Form that requires any painting. But how is it called. I tried
UpdateWindow() and it didn't work.
The way that I've written this program, there is a function call (with
arguments) to a member function of this Tab Page Form Class. And then
after
some processsing in this function, I just used the code that I previouly
posted to paint the bitmaps on the Tab Form.
Could you explain how I should correctly write this.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: CClientDC and TabCtrl ?
- From: Joseph M . Newcomer
- Re: CClientDC and TabCtrl ?
- References:
- CClientDC and TabCtrl ?
- From: cdg
- Re: CClientDC and TabCtrl ?
- From: Scott McPhillips [MVP]
- Re: CClientDC and TabCtrl ?
- From: cdg
- Re: CClientDC and TabCtrl ?
- From: Joseph M . Newcomer
- CClientDC and TabCtrl ?
- Prev by Date: Re: ANSI string from UNICODE app.
- Next by Date: Re: filling a shape with a CBitmap (rotated)
- Previous by thread: Re: CClientDC and TabCtrl ?
- Next by thread: Re: CClientDC and TabCtrl ?
- Index(es):
Relevant Pages
|