Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridInplaceButton bitmap not showing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridInplaceButton bitmap not showing

 Post Reply Post Reply
Author
Message
vsn9 View Drop Down
Groupie
Groupie


Joined: 21 September 2009
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote vsn9 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridInplaceButton bitmap not showing
    Posted: 22 September 2009 at 4:24am
Hi,
 
I am trying to add an image to a CXTPPropertyGridInplaceButton object. I am trying to get it to work using code from GridSample (PropertyGrid_vc90.sln). The image doesn't show up. The only thing different is that I derived classes from CXTPPropertyGrid and CXTPPropertyGridItem and used them.
 
I have also tried adding a bitmap to the sample((PropertyGrid_vc90.sln) and using it in place of IDB_BITMAP_FILTER, however the new bitmap doesn't show up on the button in the sample either.
 
help!
 
Product: Xtreme Toolkit Pro v12.1
Platform: Windows XP SP2
Language: Visual C++ 2008 SP1
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: 23 September 2009 at 3:53am
Hi,
 
Attach modified sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vsn9 View Drop Down
Groupie
Groupie


Joined: 21 September 2009
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote vsn9 Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 6:20am
Hi Oleg,
 
It was an issue with the bitmap, Looks like the background color of a Bitmap doesnt show up when you add it to a button.  uploads/20090923_061907_GridSample.rar
 
Thanks
Vikram
Product: Xtreme Toolkit Pro v12.1
Platform: Windows XP SP2
Language: Visual C++ 2008 SP1
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: 23 September 2009 at 8:57am
Hi,
 
Yes, if mask color was not set ImageManager assumes topleft pixel is mask. Just set some color as mask before set:
 
m_wndPropertyGrid.GetImageManager()->SetMaskColor(0xFF00FF);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
oren_miron View Drop Down
Newbie
Newbie


Joined: 20 September 2005
Location: Israel
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote oren_miron Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2010 at 10:43am
Hi
i am also trying to draw an image on an in place button of a property grid.
i am not using a grid and i guess u already have a code for doing it in a property grid.
can u explain how to do it?
oren.
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.141 seconds.