Print Page | Close Window

Button Style test

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23744
Printed Date: 25 April 2024 at 11:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Button Style test
Posted By: Cedric_ar
Subject: Button Style test
Date Posted: 25 October 2018 at 10:56am
I upgrade some legacy control to xtp control ( ie checkbox in my case ). In my code i test BS_BITMAP style, with the your test, you only test value under BS_TYPEMAP. I replace for default test

this 
BYTE CXTPButton::GetButtonStyle() const
{
BYTE bStyle = BYTE(GetStyle() & 0xF);
by

BYTE CXTPButton::GetButtonStyle() const
{
BYTE bStyle = BYTE(GetStyle() & 0xFFFF);


i don't know if it's a bug.



Replies:
Posted By: Cedric_ar
Date Posted: 26 October 2018 at 10:19am
i reply to myself my modification is wrong. If you want to test all possibility of button style call base function ie GetStyle. I revert my modification.



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