![]() |
CDC::DrawFrameControl |
Post Reply
|
| Author | |
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Topic: CDC::DrawFrameControlPosted: 25 December 2007 at 11:37am |
|
Hi Oleg,
I am sure I have seen this mentioned before - how do I draw a Codejock checkbox using the current theme / skin etc.
At the moment I am using CDC::DrawFrameControl but would much prefer the Codejock style. I am overwriting an existing image with a checkbox (see below).
![]() If possible I would also like to know the correct (ideal) size of the checkbox.
Thanks and have a nice holiday soon,
Simon in snowy Switzerland
|
|
|
Simon HB9DRV
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 December 2007 at 4:19pm |
|
Hi,
Here some hints:
CXTPWinThemeWrapper m_themeButton;
m_themeButton.OpenTheme(0, L"BUTTON"); int nState = !bEnabled? RBS_UNCHECKEDDISABLED: bPressed? RBS_UNCHECKEDPRESSED: bHot? RBS_UNCHECKEDHOT: RBS_UNCHECKEDNORMAL;
if (bChecked) nState += 4; if ((bChecked == BST_INDETERMINATE) && (bStyle == BS_AUTO3STATE || bStyle == BS_3STATE)) nState += 4; m_themeButton.DrawThemeBackground(pDC->GetSafeHdc(), BP_CHECKBOX, nState, rcRadio, NULL);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 December 2007 at 4:59pm |
|
Thanks Oleg, I'll give it a go now...
|
|
|
Simon HB9DRV
|
|
![]() |
|
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 |