Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - BS_3STATE vs. BS_CHECKBOX in CXTCheckListBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BS_3STATE vs. BS_CHECKBOX in CXTCheckListBox

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: BS_3STATE vs. BS_CHECKBOX in CXTCheckListBox
    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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2010 at 1:37am
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
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.154 seconds.