Use CXTButton as push-like checkbox |
Post Reply |
Author | ||
_dvr
Newbie Joined: 13 May 2004 Location: Belarus Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 16 September 2004 at 3:48am |
|
Hello! Is it possible, to use CXTButton as push-like checkbox?
If set a state of button CHECKED, using
m_btn.SetStateX(TRUE); The button is drawn correctly (pressed). But if the user clicks on the pressed button, it is drawn not pressed, but not changing the state (i.e. GetCheck() == TRUE). To solving this problem, I define ON_BN_CLICKED handler: { m_btn.SetStateX(m_btn.GetChecked()); // for manual checkbox // or m_btn.SetStateX(!m_btn.GetChecked()); // for auto checkbox } Then the button is works correctly. There is other way? |
||
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 |