Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to resize tap size in Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to resize tap size in Toolbar

 Post Reply Post Reply
Author
Message
kimsangmin View Drop Down
Newbie
Newbie


Joined: 27 July 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimsangmin Quote  Post ReplyReply Direct Link To This Post Topic: How to resize tap size in Toolbar
    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!!

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 28 July 2008 at 2:50am
Hi,
 
Maybe you need pCommandBars->GetCommandBarsOptions()->bLargeIcons = TRUE;
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
kimsangmin View Drop Down
Newbie
Newbie


Joined: 27 July 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimsangmin Quote  Post ReplyReply Direct Link To This Post 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();

 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
Back to Top
kimsangmin View Drop Down
Newbie
Newbie


Joined: 27 July 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimsangmin Quote  Post ReplyReply Direct Link To This Post 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);
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.063 seconds.