Thread: read-only 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 09: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, 10: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, 04:23 PM
  3. What Would You Use To Read User Input?
    By djwicks in forum C Programming
    Replies: 11
    Last Post: 04-05-2005, 03: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, 02:09 AM