Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size and a passed pointer Pin
Bret Faller9-Aug-01 8:21
Bret Faller9-Aug-01 8:21 
GeneralForcing a range validation of an edit box before a scrollbar command is activated Pin
brewer_d9-Aug-01 6:09
brewer_d9-Aug-01 6:09 
GeneralCComboBox Messages Pin
Michael Martin9-Aug-01 5:49
professionalMichael Martin9-Aug-01 5:49 
GeneralRe: CComboBox Messages Pin
Carlos Antollini9-Aug-01 6:06
Carlos Antollini9-Aug-01 6:06 
GeneralRe: CComboBox Messages Pin
Michael Martin9-Aug-01 6:16
professionalMichael Martin9-Aug-01 6:16 
GeneralRe: CComboBox Messages Pin
Carlos Antollini9-Aug-01 6:30
Carlos Antollini9-Aug-01 6:30 
GeneralRe: CComboBox Messages Pin
Michael Martin9-Aug-01 6:34
professionalMichael Martin9-Aug-01 6:34 
GeneralRe: CComboBox Messages Pin
Tomasz Sowinski9-Aug-01 6:28
Tomasz Sowinski9-Aug-01 6:28 
Use DDX to associate CComboBox variables with dialog controls, but give up on calling UpdateData just for reloading combo.

Assuming that the combobox is dropdown list (users can only select values from the list, no freestyle typing possible), you should handle CBN_SELENDOK. In the handler, use GetCurSel to get the index of the selected item. This index should be all you need to refill another combo. You should call m_otherCombo.ResetContent() and add new items depending on the selection in m_firstCombo.

I'm not sure about combobox with the possiblity of direct text typing. You should probably wait until combo looses the focus - after all, you don't know if typed letter ends the word or is somewhere in the middle.

PS. Tomasz how do you always have the relevant Knowledge Base article ready to quote. Have you commited them to memory or do you just have a search before posting your responses?

ROTFL Wink | ;) Sure, I've loaded them all using (very) lossy compression scheme.

Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: CComboBox Messages Pin
Michael Martin9-Aug-01 6:47
professionalMichael Martin9-Aug-01 6:47 
Generalin vc6.0 and mfc4.2 's link.exe 's error Pin
9-Aug-01 5:29
suss9-Aug-01 5:29 
GeneralRe: in vc6.0 and mfc4.2 's link.exe 's error Pin
Ben Burnett9-Aug-01 9:24
Ben Burnett9-Aug-01 9:24 
GeneralRecording keystrock international issue Pin
9-Aug-01 5:21
suss9-Aug-01 5:21 
QuestionDrawing ActiveX ctrls into memory? Pin
9-Aug-01 5:14
suss9-Aug-01 5:14 
GeneralHelp! Checkboxes in CListCtrl's Pin
Sprudling9-Aug-01 4:33
Sprudling9-Aug-01 4:33 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Tomasz Sowinski9-Aug-01 4:43
Tomasz Sowinski9-Aug-01 4:43 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Sprudling9-Aug-01 5:32
Sprudling9-Aug-01 5:32 
GeneralRe: Help! Checkboxes in CListCtrl's Pin
Tomasz Sowinski9-Aug-01 5:37
Tomasz Sowinski9-Aug-01 5:37 
GeneralDC-conversion from 32 to 8 bit Pin
9-Aug-01 2:17
suss9-Aug-01 2:17 
GeneralRe: DC-conversion from 32 to 8 bit Pin
Reno Tiko9-Aug-01 3:20
Reno Tiko9-Aug-01 3:20 
GeneralRe: DC-conversion from 32 to 8 bit Pin
9-Aug-01 5:02
suss9-Aug-01 5:02 
GeneralSublassing CEdit from CTreeCtrl with edit labels style Pin
9-Aug-01 1:49
suss9-Aug-01 1:49 
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
Tomasz Sowinski9-Aug-01 2:45
Tomasz Sowinski9-Aug-01 2:45 
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
9-Aug-01 3:04
suss9-Aug-01 3:04 
GeneralRe: Sublassing CEdit from CTreeCtrl with edit labels style Pin
Michael Dunn9-Aug-01 2:53
sitebuilderMichael Dunn9-Aug-01 2:53 
GeneralWeird, weird, weird request! Pin
9-Aug-01 1:32
suss9-Aug-01 1:32 

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.