Adjust to the Large Icons |
Post Reply |
Author | |
FrankC
Groupie Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 15 October 2008 at 12:03pm |
In the MFC application with the Toolkit C++, on the Customize Box, if the Large Icon choice is selected, the icons on the toolbar will be increased to about 72% larger. My questions are:
Thanks, Frank |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
1. Set Size you need with pCommandBars->GetCommandBarsOptions()->szLargeIcon = CSize(...);
2. You can. Add additional bitmap and call
pCommandBars->GetImageManager()->SetIcons(nIDResourceToolBar, nIDResourceBitmap);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
FrankC
Groupie Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
|
Thank you oleg for the info.
Frank
|
|
FrankC
Groupie Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
|
Hi Oleg,
This line will not work.
1. Set Size you need with pCommandBars->GetCommandBarsOptions()->szLargeIcon = CSize(...);
Neither the
pCommandBars->GetCommandBarsOptions()->szIcon = CSize(...);
Would you know when will these two lines work?
Thanks,
Frank |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi Oleg,
I use pCommandBars->GetCommandBarsOptions()->szLargeIcons = CSize(...); and my icons is on control caption. how can I fix it ?!? Thanks in Advance, Best Regards. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi oleg,
I Extract my Icons with UINT nIDs[] = {IDM_HOMEPAGE, IDM_HIDE, IDM_PAGER, IDM_LOCK,IDM_HELP, IDM_ABOUTUS, IDM_OPTIONS, IDM_EXIT}; pCommandBars->GetImageManager()->SetIcons(IDB_MENUITEMS, nIDs, 8, CSize(48, 48), xtpImageNormal); and I call pCommandBars->GetCommandBarsOptions()->szLargeIcons = CSize(48, 48); before assign icons but my controls icons is on my controls captions. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Can you attach screenshot ? or better modify our sample , reproduce it and attach here :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi oleg,
Thanks for your responses as soon as possible,I can't upload via your web image uploader and I uploaded to tinypic http://tinypic.com/view.php?pic=2rnvi1u&s=4 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
It looks like Ribbon - not simple toolbar. You can't use 48*48 for Ribbon :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi oleg,
can I increase ribbon heigth ?, Thanks oleg for your answers. |
|
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 |