read-only combobox

This is a discussion on read-only combobox within the Windows Programming forums, part of the Platform Specific Boards category; how can i prevent the edit of a selected item in combobox?...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    98

    read-only combobox

    how can i prevent the edit of a selected item in combobox?

  2. #2
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    1st get a handle to the edit control part of the combobox (use getwindow with GL_CHILD), then send it a ES_READONLY style change. (untested)

    EDIT: I just found this, if you use the extended style CBS_DROPDOWNLIST, it will be readonly also.
    Last edited by Darryl; 06-08-2005 at 10:45 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read() problems
    By yay4rei in forum C Programming
    Replies: 2
    Last Post: 07-21-2005, 11:47 AM
  2. How can I know the actual bytes read in a file read
    By pliang in forum C++ Programming
    Replies: 1
    Last Post: 06-08-2005, 05:23 PM
  3. What Would You Use To Read User Input?
    By djwicks in forum C Programming
    Replies: 11
    Last Post: 04-05-2005, 04:32 PM
  4. Read Array pro!!Plz help!!
    By Supra in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 03:49 PM
  5. Help! Can't read decimal number
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 09-07-2001, 03:09 AM

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