Re-designing tabcontrol

  • Thread starter Thread starter Fatih BOY
  • Start date Start date
F

Fatih BOY

Hi,
Does anyone knows how to handle painting of Tabcontrol??!
I've override OnPaint and WndProc ( with m.Msg==WM_NCPAINT) functions, but
doesn't work!

Thanks,
Fatih BOY
 
Faith BOY,

I don't believe that the Tabcontrol will ever get a WM_NCPAINT
notification, since that message is used primarily for forms. You will want
to handle the WM_PAINT message. Also, you might just want to override the
OnPaint method as well.

Hope this helps.
 
OnPaint does not help :\
What is id for WM_PAINT?!


Nicholas Paldino said:
Faith BOY,

I don't believe that the Tabcontrol will ever get a WM_NCPAINT
notification, since that message is used primarily for forms. You will want
to handle the WM_PAINT message. Also, you might just want to override the
OnPaint method as well.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Fatih BOY said:
Hi,
Does anyone knows how to handle painting of Tabcontrol??!
I've override OnPaint and WndProc ( with m.Msg==WM_NCPAINT) functions, but
doesn't work!

Thanks,
Fatih BOY
 
Faith BOY,

0x000F


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Fatih BOY said:
OnPaint does not help :\
What is id for WM_PAINT?!


message news:%[email protected]...
Faith BOY,

I don't believe that the Tabcontrol will ever get a WM_NCPAINT
notification, since that message is used primarily for forms. You will want
to handle the WM_PAINT message. Also, you might just want to override the
OnPaint method as well.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Fatih BOY said:
Hi,
Does anyone knows how to handle painting of Tabcontrol??!
I've override OnPaint and WndProc ( with m.Msg==WM_NCPAINT) functions, but
doesn't work!

Thanks,
Fatih BOY
 
Back
Top