Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - png not appearing properly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

png not appearing properly

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: png not appearing properly
    Posted: 15 July 2008 at 1:06am
Hello,
I have put the png files on my buttons.
But it is not appearing the way as it appears in your sample applications.
The images are appearing smaller compared to there original size.i put the png images on buttons as follows -

CXTPCommandBars* pCommandBars = GetCommandBars();UINT uiGroupClipboard[] = {ID_BTN_EDITAUTOLEVEL,ID_BTN_EDITAUTOCONTRAST,ID_BTN_EDITAUTOCOLOR,ID_BTN_EDITLEVEL,ID_BTN_EDITCURVECORRECTION,ID_BTN_EDITCOLORBALANCE};

pCommandBars->GetImageManager()->SetIcons(IDR_PNG_TOOLS, uiGroupClipboard, _countof(uiGroupClipboard), CSize(32,32));

and the images are appearing as follows-
please guide me why they are appearing smaller?
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: 15 July 2008 at 9:22am
Hi,
Problem in code where you add these buttons.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.