Print Page | Close Window

displaying resizable image on a dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13662
Printed Date: 23 June 2025 at 12:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: displaying resizable image on a dialog
Posted By: psih128
Subject: displaying resizable image on a dialog
Date 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



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net