background image in Skinned tab control |
Post Reply |
Author | |
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Posted: 17 July 2007 at 3:25am |
hi
how can one get the background image to show through for a tab control?
We have our own tab control class that we can add panes to using a dialog resource. Since it uses code based on CDialog to build the pane, it shows the background colour of the pane as being the button face color.
however, due to background images, this means we get a weird border round the pane, and it doesn't show the correct colour. I've tried overriding OnCtlColor, but since the background is an image, I'm picking I can't get an HBRUSH to return.
I also tried making the dialog resource transparent, but that didn't do anything (possibly MFC ignores it?).
Also, in some schemas (like the iTunes one), the metrics are different (i.e iTunes adds a 5px top line to the background image). Is there an API we can use to get these offsets so we can offset the pane?
Or am I wasting my time with our own tab control class, and I should just use a CodeJock one? We've got a lot of legacy code to port if I can't use our old one...
Anyone done this before?
Adrien |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, to understand what do you do send to support@codejock.com sample project with screenshot what do you want to see.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Hi
I changed over one of our dialogs from our own tab control dialog class to a CPropertySheet and CPropertyPage implementation.
now it shows the proper background image (i.e. brushed metal in iTunes skin) rather than the button face color of a normal dialog background.
|
|
Deadly_B
Newbie Joined: 12 May 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
I wish it were that simple in C#. We had to write some extra code for our app to show the background.
|
|
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 |