Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I open a file without typing in the full path? Pin
Paolo Messina22-Sep-00 7:21
professionalPaolo Messina22-Sep-00 7:21 
QuestionHow can I convert 12345679 to 123,456,789.00? Pin
danielle22-Sep-00 5:01
danielle22-Sep-00 5:01 
AnswerRe: How can I convert 12345679 to 123,456,789.00? Pin
Michael Dunn22-Sep-00 8:26
sitebuilderMichael Dunn22-Sep-00 8:26 
QuestionDevice Handling in C++? Pin
Rizwan Majeed22-Sep-00 1:23
professionalRizwan Majeed22-Sep-00 1:23 
AnswerRe: Device Handling in C++? Pin
Sam Hobbs24-Sep-00 14:46
Sam Hobbs24-Sep-00 14:46 
GeneralRe: Device Handling in C++? Pin
Rizwan Majeed24-Sep-00 20:31
professionalRizwan Majeed24-Sep-00 20:31 
GeneralRe: Device Handling in C++? Pin
Sam Hobbs25-Sep-00 8:40
Sam Hobbs25-Sep-00 8:40 
GeneralCComboBox/UpdateData prb Pin
Peter Andersson22-Sep-00 0:55
Peter Andersson22-Sep-00 0:55 
hello,

I have a seemingly simple task. I have a dropdown combobox which I use to present a list of 'things' that currently exists. The user is also free to type something in the edit box.

I want to handle the following events:

1) The user selects something from the dropdown listbox - I then present the details about that 'thing'

2) The user types something and hits RETURN, and if it exist in the dropdown listbox I present the details about it, as above.

3) The user types something and hits RETURN, and if it doesn't exist in the dropdown listbox I create the 'thing' and clear the form so he can type in the details if he wants.

4) Bonus: If the listbox is in dropped-down mode, I want incremental search in the listbox while/if the user types something.

This is what I have done: I have a handler for CBN_SELENDOK. There, I have to check GetCurSel() and GetLBText() here. UpdateData() doesn't work. Why? But OK, I can handle the situation where the user selects an existing item.

How shall I best trap the RETURN key? Subclassing, i suppose. I have tried that but currently I get stuck in a weird situation where I click on the down-arrow but the combobox doesn't drop down!?! Strange huh!?

BTW, Which is the best way of notifying the CComboBox about the keypress in the subclassed CEdit?

Any ideas about why these suposedly simple things are so complicated to perform?

Thanks
Peter
QuestionBitmaps - I have the data as BYTE*, but how do I get it into a HBITMAP?? Pin
peter200322-Sep-00 0:44
peter200322-Sep-00 0:44 
AnswerRe: Bitmaps - I have the data as BYTE*, but how do I get it into a HBITMAP?? Pin
Serge Velikevitch22-Sep-00 5:58
sussSerge Velikevitch22-Sep-00 5:58 
GeneralChange Titletext of an SDI App at the very beginning Pin
Member 135621-Sep-00 23:15
Member 135621-Sep-00 23:15 
GeneralRe: Change Titletext of an SDI App at the very beginning Pin
Rizwan Majeed22-Sep-00 0:49
professionalRizwan Majeed22-Sep-00 0:49 
GeneralRe: Change Titletext of an SDI App at the very beginning Pin
Member 135622-Sep-00 4:24
Member 135622-Sep-00 4:24 
GeneralRe: Change Titletext of an SDI App at the very beginning Pin
Erik Funkenbusch25-Sep-00 13:22
Erik Funkenbusch25-Sep-00 13:22 
GeneralRe: Change Titletext of an SDI App at the very beginning Pin
Jeff Naber22-Sep-00 7:55
Jeff Naber22-Sep-00 7:55 
GeneralRe: Change Titletext of an SDI App at the very beginning Pin
Sam Hobbs24-Sep-00 14:58
Sam Hobbs24-Sep-00 14:58 
GeneralEvents & Methods in IE Explorer Bars Pin
Robert Thompson21-Sep-00 16:11
Robert Thompson21-Sep-00 16:11 
GeneralRe: Events & Methods in IE Explorer Bars Pin
Michael Dunn21-Sep-00 19:47
sitebuilderMichael Dunn21-Sep-00 19:47 
GeneralRe: Events & Methods in IE Explorer Bars Pin
Robert Thompson22-Sep-00 1:40
Robert Thompson22-Sep-00 1:40 
GeneralRe: Events & Methods in IE Explorer Bars Pin
Erik Thompson22-Sep-00 6:51
sitebuilderErik Thompson22-Sep-00 6:51 
GeneralStart a process on a server Pin
Jagadish Kumar21-Sep-00 14:49
Jagadish Kumar21-Sep-00 14:49 
GeneralRe: Start a process on a server Pin
s21-Sep-00 17:18
s21-Sep-00 17:18 
GeneralSound recording at 8 KHz Pin
Mustafa Demirhan21-Sep-00 12:31
Mustafa Demirhan21-Sep-00 12:31 
Questionhow can I get the struct send from vc program? Pin
jamewe21-Sep-00 3:15
sussjamewe21-Sep-00 3:15 
AnswerRe: how can I get the struct send from vc program? Pin
Paolo Messina21-Sep-00 7:23
professionalPaolo Messina21-Sep-00 7:23 

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.