Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ever see this? Pin
João Paulo Figueira13-Feb-03 12:51
professionalJoão Paulo Figueira13-Feb-03 12:51 
GeneralRe: ever see this? Pin
Chris Losinger13-Feb-03 12:53
professionalChris Losinger13-Feb-03 12:53 
GeneralRe: ever see this? Pin
João Paulo Figueira13-Feb-03 13:00
professionalJoão Paulo Figueira13-Feb-03 13:00 
AnswerRe: ever see this? Pin
Gary Kirkham14-Feb-03 5:08
Gary Kirkham14-Feb-03 5:08 
Generalequations Pin
Roman Nurik13-Feb-03 12:09
Roman Nurik13-Feb-03 12:09 
GeneralRe: equations Pin
Mike Nordell13-Feb-03 13:09
Mike Nordell13-Feb-03 13:09 
GeneralRe: equations Pin
Scott H. Settlemier17-Feb-03 18:31
Scott H. Settlemier17-Feb-03 18:31 
Questionwhere, in its construction sequence, is the best place to init a combobox list? Pin
Jesse Evans13-Feb-03 11:47
Jesse Evans13-Feb-03 11:47 
Hi, folks!

I want a combobox that will always display the same items regardless of where I use it, so I thought about having it be its own class, inheriting from CComboBox. Rather than remember to add the items to it in the InitDialog function for each dialog box I use it in, I want the list to fill itself when it gets created. That way, I can drop a combobox onto a dialog, then change its type from CComboBox to CMyComboBox in the class header and I'm good to go.

So, at what point in the combobox's creation sequence is the best place to put my loading function? (I'm hoping the answer will be something analogous to the InitDialog override for a dialog box class.)

(To clarify things a bit, I'm loading the list from a file, so I can't create the list items in the Resource editor.)

Thanks!

Jesse
AnswerRe: where, in its construction sequence, is the best place to init a combobox list? Pin
João Paulo Figueira13-Feb-03 12:02
professionalJoão Paulo Figueira13-Feb-03 12:02 
GeneralRe: where, in its construction sequence, is the best place to init a combobox list? Pin
Jesse Evans13-Feb-03 13:13
Jesse Evans13-Feb-03 13:13 
GeneralRe: where, in its construction sequence, is the best place to init a combobox list? Pin
PJ Arends13-Feb-03 17:35
professionalPJ Arends13-Feb-03 17:35 
GeneralRe: where, in its construction sequence, is the best place to init a combobox list? Pin
João Paulo Figueira13-Feb-03 23:09
professionalJoão Paulo Figueira13-Feb-03 23:09 
GeneralRe: where, in its construction sequence, is the best place to init a combobox list? Pin
Jesse Evans17-Feb-03 6:37
Jesse Evans17-Feb-03 6:37 
QuestionVC7 deployment files? Pin
Jason Henderson13-Feb-03 11:15
Jason Henderson13-Feb-03 11:15 
AnswerRe: VC7 deployment files? Pin
Joaquín M López Muñoz13-Feb-03 11:30
Joaquín M López Muñoz13-Feb-03 11:30 
GeneralRe: VC7 deployment files? Pin
Jason Henderson13-Feb-03 17:08
Jason Henderson13-Feb-03 17:08 
GeneralHelp saving large formatted text to database Pin
ElizabethC13-Feb-03 11:09
ElizabethC13-Feb-03 11:09 
GeneralRe: Help saving large formatted text to database Pin
David Salter13-Feb-03 11:54
David Salter13-Feb-03 11:54 
GeneralRe: Help saving large formatted text to database Pin
Anonymous13-Feb-03 12:21
Anonymous13-Feb-03 12:21 
GeneralHELP! C++ Assignement Operator Problem Pin
Anton A. Loukine13-Feb-03 11:05
Anton A. Loukine13-Feb-03 11:05 
GeneralRe: HELP! C++ Assignement Operator Problem Pin
Joaquín M López Muñoz13-Feb-03 11:22
Joaquín M López Muñoz13-Feb-03 11:22 
GeneralRe: HELP! C++ Assignement Operator Problem Pin
Anton A. Loukine13-Feb-03 11:33
Anton A. Loukine13-Feb-03 11:33 
GeneralRe: HELP! C++ Assignement Operator Problem Pin
Roger Allen13-Feb-03 22:50
Roger Allen13-Feb-03 22:50 
GeneralRe: HELP! C++ Assignement Operator Problem Pin
João Paulo Figueira13-Feb-03 11:57
professionalJoão Paulo Figueira13-Feb-03 11:57 
GeneralHelp!!..with List container Pin
Sal R.13-Feb-03 10:55
Sal R.13-Feb-03 10:55 

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.