Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Capture input of the CommandWindow Pin
JoeZhang9-Dec-03 18:00
JoeZhang9-Dec-03 18:00 
GeneralUDP Muticast Pin
suiram409-Dec-03 3:58
suiram409-Dec-03 3:58 
GeneralRe: UDP Muticast Pin
Alexander M.,9-Dec-03 4:50
Alexander M.,9-Dec-03 4:50 
GeneralRenameing Resource.h Pin
Prakash Nadar9-Dec-03 3:28
Prakash Nadar9-Dec-03 3:28 
GeneralRe: Renameing Resource.h Pin
Alexander M.,9-Dec-03 4:54
Alexander M.,9-Dec-03 4:54 
GeneralPlease Help with my Switching View Problem Pin
swerajan9-Dec-03 3:04
swerajan9-Dec-03 3:04 
GeneralRe: Please Help with my Switching View Problem Pin
Joel Lucsy9-Dec-03 3:25
Joel Lucsy9-Dec-03 3:25 
GeneralRe: Please Help with my Switching View Problem Pin
Michael P Butler9-Dec-03 3:27
Michael P Butler9-Dec-03 3:27 
GeneralBasic question on Pointers!! Pin
Ilamparithi9-Dec-03 2:35
Ilamparithi9-Dec-03 2:35 
GeneralRe: Basic question on Pointers!! Pin
Taka Muraoka9-Dec-03 2:46
Taka Muraoka9-Dec-03 2:46 
GeneralRe: Basic question on Pointers!! Pin
jmkhael9-Dec-03 2:46
jmkhael9-Dec-03 2:46 
GeneralCCombobox than Dropdown! Pin
Wholesaler9-Dec-03 1:57
Wholesaler9-Dec-03 1:57 
GeneralRe: CCombobox than Dropdown! Pin
Antti Keskinen9-Dec-03 2:39
Antti Keskinen9-Dec-03 2:39 
GeneralRe: CCombobox than Dropdown! Pin
Wholesaler9-Dec-03 2:49
Wholesaler9-Dec-03 2:49 
GeneralRe: CCombobox than Dropdown! Pin
RChin9-Dec-03 3:09
RChin9-Dec-03 3:09 
OK I think I know what you're on about.

You can override the CBN_SELCHANGE message for your combobox using ClassWizard (VS6). This will create the OnSelChangeXXX() function handler that gets called wheneveer your user selects a new item from your combo control, or types in a new entry.
You can then use this handler to determine if the entry is already in your list, or not (Where you wanted to popup a message box).

Another way would probably be to set the CBS_DROPDOWNLIST style programatically, or via the resource editor. This will force the user to select items that are in the list instead of entering their own items.

Hope this helps.




I Dream of Absolute Zero

GeneralRe: CCombobox than Dropdown! Pin
Wholesaler9-Dec-03 3:17
Wholesaler9-Dec-03 3:17 
GeneralRe: CCombobox than Dropdown! Pin
RChin9-Dec-03 3:21
RChin9-Dec-03 3:21 
GeneralRe: CCombobox than Dropdown! Pin
Antti Keskinen9-Dec-03 3:14
Antti Keskinen9-Dec-03 3:14 
GeneralRe: CCombobox than Dropdown! Pin
Wholesaler9-Dec-03 3:24
Wholesaler9-Dec-03 3:24 
GeneralRe: CCombobox than Dropdown! Pin
Antti Keskinen10-Dec-03 2:48
Antti Keskinen10-Dec-03 2:48 
GeneralDDE and Netscape Pin
Monty29-Dec-03 1:55
Monty29-Dec-03 1:55 
GeneralRe: DDE and Netscape Pin
Antti Keskinen9-Dec-03 2:59
Antti Keskinen9-Dec-03 2:59 
Generalmultiple list control Pin
abdulsoni9-Dec-03 1:24
abdulsoni9-Dec-03 1:24 
Generalimage processing Pin
satadru9-Dec-03 0:59
satadru9-Dec-03 0:59 
GeneralRe: image processing Pin
KaЯl9-Dec-03 2:25
KaЯl9-Dec-03 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.