Thread: No Checks i CheckBox

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    No Checks i CheckBox

    Well, I was trying to add a CheckBox to one of my programs. The following Message Handler was added.
    Code:
    void CCheck2Dlg::OnBnClickedCheck1()
    {
    	// TODO: Add your control notification handler code here
    	m_text += "Check Box 1 Clicked";
      if (m_Check2 == true)
    	  m_text = m_text + "Check Box 2 Clicked";
      if (m_Check3 == true)
    	  m_text = m_text + "Check Box 3 Clicked";
    
    	UpdateData (false);
    }
    Now, although Clicking on the CheckBoxes does what it is supposed to do, I donot see the CHECKS !!!
    Why is this happening, and what do I do to restore normalcy.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Interesting. Call UpdateData(true) at the beginning of the function.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. resource.rc CheckBox and Editfield
    By Plasm4 in forum Windows Programming
    Replies: 3
    Last Post: 08-09-2008, 08:24 PM
  2. setting checks on checkbox , setcheck not working
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2007, 09:38 PM
  3. CheckBox trouble
    By cgod in forum Windows Programming
    Replies: 6
    Last Post: 11-30-2004, 01:16 AM
  4. displaying a checkbox to the List view control
    By saif in forum Windows Programming
    Replies: 1
    Last Post: 02-07-2003, 12:21 AM
  5. Missing checkbox...
    By jdinger in forum Windows Programming
    Replies: 4
    Last Post: 03-18-2002, 10:47 PM