Button Style test |
Post Reply |
Author | |
Cedric_ar
Groupie Joined: 04 September 2012 Status: Offline Points: 19 |
Post Options
Thanks(0)
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. |
|
Cedric_ar
Groupie Joined: 04 September 2012 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |