Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CDC::DrawFrameControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDC::DrawFrameControl

 Post Reply Post Reply
Author
Message Reverse Sort Order
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: CDC::DrawFrameControl
    Posted: 25 December 2007 at 4:59pm
Thanks Oleg, I'll give it a go now...
Simon HB9DRV
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.061 seconds.