Re: How OwnerDraw CTabCtrl?

"yarp" <lac-3QW3q7+2X3hWk0Htik3J/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
There a class at CodeProject which shows how to draw Tabs with custom draw (look at the CDotNetTabCtrl class).
http://www.codeproject.com/KB/tabs/tabbingframework.aspx

However the underlying control is not a Tab control but a custom control which mimics Tabs.

So this won't tell you how to implement CustomDraw with Tab control, just how to draw.
There lots of custom draw examples in WTL library and around (try CodeProject, CodeGuru and Viskoe websites and even the files section here). Look at how they are done.

But it is quite simple (WTL way :).
All you have to do is to derive your class from CCustomDraw, like this:
public CCustomDraw<CMyClass>

And add
REFLECT_NOTIFICATION() 
at the end of the message map in your dialog/view class (CMainFarme for a dialog).

But since you are not showing any code, who can tell what is wrong with your implementation ?

btw I don't know for Custom Draw but there's no theme support with vertical tabs.

--- In [email protected], "shu7734" <shu7734@...> wrote:
>
> I Tried COwnerDraw and CCustomDraw,
> But Failed!COwnerDraw and CCustomDraw is not support Tab Control.
> please help me!
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.