Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPButton with transparent background
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPButton with transparent background

 Post Reply Post Reply
Author
Message
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPButton with transparent background
    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.
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.156 seconds.