Print Page | Close Window

How to resize tap size in Toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11606
Printed Date: 07 November 2025 at 1:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to resize tap size in Toolbar
Posted By: kimsangmin
Subject: How to resize tap size in Toolbar
Date Posted: 27 July 2008 at 8:52pm

Hello,

I want to enlarge tab of the toolbar, Because our program will expect to apply touch screen. But, now tap of left image is very small. So, I want to have tap of Large Image.

able and disbable ? if this option apply codejock Software, tell me function(); method.

Thank!!

 




Replies:
Posted By: Oleg
Date Posted: 28 July 2008 at 2:50am
Hi,
 
Maybe you need pCommandBars->GetCommandBarsOptions()->bLargeIcons = TRUE;


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


Posted By: kimsangmin
Date Posted: 28 July 2008 at 7:59am
Thank you
your answer, but I want to enlarge tab size in Toolbar.
 
And Than,
I want to know using SetFontIndirect();

 


Posted By: Oleg
Date Posted: 29 July 2008 at 1:52am
Hi,
 
Try this:
 
 CXTPPaintManager::CNonClientMetrics ncm;
 ncm.lfMenuFont.lfHeight = 22;
 pToolBar->GetPaintManager()->SetFontIndirect(&ncm.lfMenuFont);
 pToolBar->GetPaintManager()->RefreshMetrics();


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


Posted By: kimsangmin
Date Posted: 30 July 2008 at 8:02pm

Thank you.

I solved this problem.

I solved other solution. this method can change Font sytle.

 LOGFONT lf = {24, 10, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
      DEFAULT_CHARSET, OUT_CHARACTER_PRECIS,
      CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY,
      DEFAULT_PITCH|FF_DONTCARE, _T("Microsoft Sans Serif")};
 
 m_pToolBar->GetPaintManager()->SetFontIndirect(&lf, FALSE);



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