Print Page | Close Window

useofficefont function

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=313
Printed Date: 23 December 2024 at 7:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: useofficefont function
Posted By: tallycom
Subject: useofficefont function
Date Posted: 28 December 2003 at 2:02am

 

it occor access violation !!!

how can solve this problem..?

thx  

BOOL CMonitoringApp::InitInstance()
{
 CWinApp::InitInstance();

 XTPPaintManager()->UseOfficeFont(TRUE);  // access violation

 XTPPaintManager()->RefreshMetrics();

 xtAfxData.SetGlobalFont("Tahoma");

 




Replies:
Posted By: Oleg
Date Posted: 03 January 2004 at 2:18am

You must move this code after InitCommandBars() call in the CMainFrame::OnCreate.



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



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