No Checks i CheckBox

This is a discussion on No Checks i CheckBox within the Windows Programming forums, part of the Platform Specific Boards category; Well, I was trying to add a CheckBox to one of my programs. The following Message Handler was added. Code: ...

  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, 12:16 AM
  4. displaying a checkbox to the List view control
    By saif in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2003, 11:21 PM
  5. Missing checkbox...
    By jdinger in forum Windows Programming
    Replies: 4
    Last Post: 03-18-2002, 09:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21