Print Page | Close Window

CXTPButton with transparent background

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=22425
Printed Date: 04 May 2024 at 10:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPButton with transparent background
Posted By: yoavo
Subject: CXTPButton with transparent background
Date Posted: 30 September 2014 at 8:43am
Hi,
Is there a way to draw transparently the background color of CXTPButton ?
As I understand the background color is taken from the parent of the control (the dialog box):

in CXTPButton::OnDraw
HBRUSH hBrush = (HBRUSH)GetParent()->SendMessage(WM_CTLCOLORBTN, (WPARAM)memDC.GetSafeHdc(), (LPARAM)GetSafeHwnd());


But in my case the button is positioned on a colored static control which it's color is different from the dialog background color.

Yoav.



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