Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Button Style test
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Button Style test

 Post Reply Post Reply
Author
Message
Cedric_ar View Drop Down
Groupie
Groupie


Joined: 04 September 2012
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric_ar Quote  Post ReplyReply Direct Link To This Post Topic: Button Style test
    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.
Back to Top
Cedric_ar View Drop Down
Groupie
Groupie


Joined: 04 September 2012
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric_ar Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.