Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to display a PNG image as a static control?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to display a PNG image as a static control?

 Post Reply Post Reply
Author
Message
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Topic: How to display a PNG image as a static control?
    Posted: 05 February 2008 at 10:41pm
How can I display a transparent PNG image like a static control ? or in a derived static control? (in a static control would be better because I can position the image in dialog editor)
 
Is this possible with XtremeToolkitPro ?  
 
Thanks !
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2008 at 12:25am
I want to display the PNG images as background layers, so there will be controls on top of them or other PNG images.
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2008 at 4:17am
Hi,

Use CXTPGraphicBitmapPng to Load png.
Than you have a HBITMAP, that you can draw.

   Jimmy

Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2008 at 10:24am
Thanks,
I currently have a custom static control which draws the PNG files with GDI+, but it's too slow when there are more images, I hope CXT will be faster.
 
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2008 at 11:11am
It's so fast as draw bitmap, because after loading it will be convert to a bitmap.

  Jimmy

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.047 seconds.