HOWTO: CXTPControlCustom background in ribbon? |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 22 March 2011 at 5:52am |
Hi;
I created a custom control derived from CWnd that contains a CEdit (masked) and a CXTPButton. This control ist used in dialogs and views and now I want to use this control as a CXTPControlCustom in my apps ribbon bar. So far so good, but I can't find out how to handle the background drawing when contained in riboon (see screenshot). For skinned dialogs the background drawing is ok, but in ribbons not! Here's my OnPaint() function of the CWnd derived custom control:
And here's the result in ribbon (left) and dialog (right): Any help is very welcome! |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |