CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    6

    How does one set a Dialog Check Box

    Hi,

    How does one set a Dialog Check Box?


    Michael B. Williams



  2. #2
    Join Date
    Apr 1999
    Posts
    24

    Re: How does one set a Dialog Check Box

    CButton::SetCheck


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: How does one set a Dialog Check Box

    It's not that simple; if it was I would not have posted. I was hoping for an example


  4. #4
    Join Date
    May 1999
    Posts
    36

    Re: How does one set a Dialog Check Box

    In your dlg .cpp:


    CButton* pCheck = (CButton*)GetDlgItem(IDC_MYCHECKID);
    if(pCheck)
    pCheck->SetCheck(1); // 1 to check, 0 to uncheck, 2 to set to indeterminate state

    Or use class wiz to bind a CButton member to the check box and call its SetCheck method.

    HTH,

    Harvey


    Harvey Hawes

    Software Engineer
    BioScience Analysis Software Ltd.

    Masters Candidate
    Cardiovascular/Respiratory Sciences
    Faculty of Medicine
    University of Calgary
    Calgary, Alberta, Canada

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured