BS_3STATE vs. BS_CHECKBOX in CXTCheckListBox |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 666 |
Post Options
Thanks(0)
Posted: 14 December 2010 at 5:19am |
You write the following in the doc for the CXTCheckListBox control:
// Remarks:
// Styles to be added or removed can be combined by using the bitwise // OR (|) operator. It can be one or more of the following: // * <b>BS_3STATE</b> Same as a check box, exce.............. Actually it cannot be one or more, since your code does this check:
ASSERT(
nStyle == 0 || nStyle == BS_CHECKBOX || nStyle == BS_AUTOCHECKBOX || nStyle == BS_AUTO3STATE || nStyle == BS_3STATE); I wanted to be able programmably to set an item to 3STATE, while the user should only be able to select and deselected items. Can this be done ?
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Thanks, description fixed. You can set style to BS_AUTO3STATE and in CLBN_CHKCHANGE handler change manuall check state to "0" if its "2".
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |