![]() |
How to resize tap size in Toolbar |
Post Reply
|
| Author | |
kimsangmin
Newbie
Joined: 27 July 2008 Location: Korea, South Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: How to resize tap size in ToolbarPosted: 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!!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 July 2008 at 2:50am |
|
Hi,
Maybe you need pCommandBars->GetCommandBarsOptions()->bLargeIcons = TRUE;
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kimsangmin
Newbie
Joined: 27 July 2008 Location: Korea, South Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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();
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kimsangmin
Newbie
Joined: 27 July 2008 Location: Korea, South Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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);
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |