CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    ComboBoxEx: Anybody know how to make this read-only?

    CEdit* pCombo = (CEdit*)GetDlgItem(IDC_XXXX); // XXXX is the name of you comboboxex
    pCombo->SetReadOnly();

    The above code doesn't work, why not and what is the correct code?


  2. #2
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    Re: ComboBoxEx: Anybody know how to make this read-only?

    To my experience (and this could be wrong) but the SetReadOnly() function only works on edit boxes. I don't think it works on combo boxes, and if it does work on them, I would guess that it only works when the ComboBox has the DROPDOWN style (combo + edit), rather than the just combo style of DROPLIST.

    - Troy

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