News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

OWNERDRAW TabControl

Started by Grincheux, April 18, 2005, 07:25:06 PM

Previous topic - Next topic

Grincheux

How is it possible to have an ownerdraw Tab Control.

I need to redraw the entire tab control. If I try to paint into the control, it paints a rectangular area, not the tabs.

How is it possible to do.

There is an extended style called TCS_OWNERDRAWFIXED, but I don't know how to use it.
The messages WM_MEASUREITEM and WM_DRAWITEM are sent...

Can someone give me an example ?

Thanks.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Grincheux

In fact, I have found.
The style TCS_OWNERDRAWFIXED must be set in the rc file because Visual Studio does not give the way to set it.
After the WM_DRAWITEM is sent. The it is possible to draw into the tabs.
The MSDN says that the WM_MEASUREITEM is sent to the application, I don't receive it.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

pbrennick

IDCat,
I am attaching a program with source that is used to generate the code to create tabs.  This program is from Ewayne Wagner's website.  If you like it send him a thank you.

[attachment deleted by admin]