Print Page | Close Window

setting a bitmap handle to a CXTButton

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=2499
Printed Date: 09 November 2025 at 10:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: setting a bitmap handle to a CXTButton
Posted By: winxp
Subject: setting a bitmap handle to a CXTButton
Date Posted: 03 July 2005 at 8:33am

hi,

is there a way to set the CXTButton bitmap from a handle ( HBITMAP ) ?

thanks




Replies:
Posted By: Oleg
Date Posted: 03 July 2005 at 11:07pm

try this:

HICON hIcon = CXTPTransparentBitmap(bmpIcon).ConvertToIcon();

BOOL bResult = CXTButton::SetIcon(size, hIcon, NULL, bRedraw);

DestroyIcon(hIcon);



-------------
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