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

    ComboBoxEx: How to set read-only status?

    How do you code the ComboBoxEx Control as read-only?

    I tried the following code, but it doesn't work:
    CEdit* pCombo = (CEdit*)GetDlgItem(IDC_XXX); // XXX is the name of your ComboBoxEx Ctrl
    pCombo->SetReadOnly();


  2. #2
    Guest

    Re: ComboBoxEx: How to set read-only status?

    You dont want the user to change the strings in the ComboBox. If so, then change the style of the ComboBox to "DropList". You can change it in the properties of the ComboBox in the dialog editor


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