Print Page | Close Window

want to add border to 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=152
Printed Date: 23 December 2024 at 7:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: want to add border to CXTButton
Posted By: msthomas
Subject: want to add border to CXTButton
Date Posted: 08 September 2003 at 9:38am

Hi,

I want to add a black border to a flat style CXTButton within a dialog box. I would be very grateful for details on how to do this.

I have subclassed the OK button of the dialog within OnInitDialog(). The result is that the OK button is white and flat (which is what I want) but it needs a border :-

m_ok_button.SubclassDlgItem(IDOK, this);
m_ok_button.SetColorFace(RGB(255, 255, 255) ); //white
m_ok_button.SetXButtonStyle(BS_XT_XPFLAT);

And the m_ok_button is declared as :-

CXTButton   m_ok_button

Thanks for any help.

Michael

 



-------------
michael
clownred software



Replies:
Posted By: camow
Date Posted: 08 April 2004 at 5:27pm

I would like to do this also. It would allow me to standardize on CXTButton everywhere instead of CButton and let me do the things that should have been simple in the first place - like setting the face color.

But it seems like CXTButton isn't a superset of CButton in looks.  Because these are the only possible styles(?)

const UINT BS_XT_FLAT        &n bsp;     = 0x0001; // Draws a flat button.
const UINT BS_XT_SEMIFLAT       &nbs p;  = 0x0002; // Draws a semi-flat button.
const UINT BS_XT_TWOROWS         ;   = 0x0004; // Draws images and text are centered.




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