Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - displaying resizable image on a dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

displaying resizable image on a dialog

 Post Reply Post Reply
Author
Message
psih128 View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote psih128 Quote  Post ReplyReply Direct Link To This Post Topic: displaying resizable image on a dialog
    Posted: 12 March 2009 at 9:26am
Hi

What is a proper way to display a PNG image on a dialog?

I'm working with a CXTResizeFormView view and I have a number of images and controls on the form. Currently I use CXTPGraphicBitmapPng to load PNG images and draw them in OnPaint method.

Is it possible to display each image using a separate control, so I could use SetResize with  these controls.

Thanks
Anton
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: 13 March 2009 at 1:54am
Hi,
 
Create class derived from CStatic - move this OnPaint code to this class and add Statics in your dialog template.
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.094 seconds.