Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFast keyword Search through CSortedArray?? anyone? Pin
Greg Ellis27-Sep-06 9:50
Greg Ellis27-Sep-06 9:50 
AnswerRe: Fast keyword Search through CSortedArray?? anyone? Pin
David Leyva27-Sep-06 10:06
David Leyva27-Sep-06 10:06 
GeneralRe: Fast keyword Search through CSortedArray?? anyone? Pin
Greg Ellis27-Sep-06 10:15
Greg Ellis27-Sep-06 10:15 
GeneralRe: Fast keyword Search through CSortedArray?? anyone? Pin
Steve S27-Sep-06 21:49
Steve S27-Sep-06 21:49 
AnswerRe: Fast keyword Search through CSortedArray?? anyone? Pin
Zac Howland27-Sep-06 10:20
Zac Howland27-Sep-06 10:20 
AnswerRe: Fast keyword Search through CSortedArray?? anyone? Pin
Waldermort27-Sep-06 15:18
Waldermort27-Sep-06 15:18 
AnswerRe: Fast keyword Search through CSortedArray?? anyone? Pin
Stephen Hewitt27-Sep-06 20:40
Stephen Hewitt27-Sep-06 20:40 
QuestionClearing the edit box in ccombobox Pin
lctrncs27-Sep-06 9:30
lctrncs27-Sep-06 9:30 
I am a beginner trying to clear the edit box of a combobox in drop list mode after making a selection from the list.

after selecting a list box entry, the control places a copy of it in the edit box by default, apparently using the SelectString member and the message WM_SETTEXT as part of the controls windows procedure.

when the dropdown type is used, ->SetEditSel and ->Clear etc will empty the edit box, (though not very elegantly). but the dropdown type still allows users enter text in the edit box (which is confusing and non-functional)

the drop list type prevents user edits of the edit box, but ->SetEditSel and ->Clear etc no longer appears to clear the edit box to pretty things up after selection.

I have tired many things already, and am considering trying to trap WM_SETTEXT or paint over the edit box somehow

I wonder if I am not missing some ridiculously minor thing (as I was before I realized the drop list type prevented user edits to the edit box)

Any suggestions about what I can do with/to my combobox control to prevent, clear or overwrite unwanted edit box text matching my selection in the list box?

Thanks to all...



"For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." Richard Feynman, Minority Report to the Official Report on the Space Shuttle Challenger Crash

QuestionRe: Clearing the edit box in ccombobox Pin
David Crow27-Sep-06 10:48
David Crow27-Sep-06 10:48 
AnswerRe: Clearing the edit box in ccombobox Pin
lctrncs27-Sep-06 11:38
lctrncs27-Sep-06 11:38 
QuestionRe: Clearing the edit box in ccombobox Pin
David Crow28-Sep-06 2:44
David Crow28-Sep-06 2:44 
AnswerRe: Clearing the edit box in ccombobox Pin
lctrncs27-Sep-06 11:42
lctrncs27-Sep-06 11:42 
GeneralRe: Clearing the edit box in ccombobox Pin
David Crow28-Sep-06 2:46
David Crow28-Sep-06 2:46 
GeneralRe: Clearing the edit box in ccombobox Pin
lctrncs28-Sep-06 3:54
lctrncs28-Sep-06 3:54 
GeneralRe: Clearing the edit box in ccombobox Pin
David Crow28-Sep-06 4:07
David Crow28-Sep-06 4:07 
GeneralRe: Clearing the edit box in ccombobox Pin
lctrncs28-Sep-06 7:10
lctrncs28-Sep-06 7:10 
QuestionRe: Clearing the edit box in ccombobox Pin
David Crow28-Sep-06 7:44
David Crow28-Sep-06 7:44 
AnswerRe: Clearing the edit box in ccombobox Pin
lctrncs28-Sep-06 10:15
lctrncs28-Sep-06 10:15 
GeneralRe: Clearing the edit box in ccombobox Pin
David Crow28-Sep-06 10:34
David Crow28-Sep-06 10:34 
GeneralRe: Clearing the edit box in ccombobox Pin
lctrncs28-Sep-06 12:46
lctrncs28-Sep-06 12:46 
QuestionRe: Clearing the edit box in ccombobox Pin
David Crow29-Sep-06 2:40
David Crow29-Sep-06 2:40 
AnswerRe: Clearing the edit box in ccombobox Pin
lctrncs29-Sep-06 5:11
lctrncs29-Sep-06 5:11 
QuestionRe: Clearing the edit box in ccombobox Pin
David Crow29-Sep-06 5:18
David Crow29-Sep-06 5:18 
AnswerRe: Clearing the edit box in ccombobox Pin
lctrncs29-Sep-06 5:44
lctrncs29-Sep-06 5:44 
GeneralRe: Clearing the edit box in ccombobox Pin
Zac Howland29-Sep-06 3:40
Zac Howland29-Sep-06 3:40 

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.