Print Page | Close Window

CXTDateTimeCtrl font on Vista

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10768
Printed Date: 15 November 2025 at 3:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTDateTimeCtrl font on Vista
Posted By: dennisV
Subject: CXTDateTimeCtrl font on Vista
Date Posted: 25 May 2008 at 3:01am
Hello all,

I've got a CXTDateTimeCtrl embedded in a toolbar and on Vista the font in the control looks wrong - it looks ok XP though. By "looks ok" I mean that it matches the general look and feel of other fonts in windows and dialogs. In the attached screenshot you can see the font in the report header - you see the fonts don't match at all.



Does anyone know what is the best way to correct this? If I use the SetMonthCalFont() function, what font should I use?

Thanks,

   Dennis


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Replies:
Posted By: Oleg
Date Posted: 26 May 2008 at 1:07am
Hi,
 
try call
 
Picker.SetFont(XTPPaintManager()->GetRegularFont());


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date Posted: 26 May 2008 at 4:41am
Originally posted by oleg oleg wrote:

Hi,
 
try call
 
Picker.SetFont(XTPPaintManager()->GetRegularFont());


Hi,

That worked beautifully! Thanks!

   Dennis



-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net