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

C / C++ / MFC

 
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 
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 
Hmmm... Well, that doesn't seem to work.

I used ClassView to add a Windows Message Handler for WM_CREATE to my new ComboBox class, but the function never gets called.

M$VC added the following to my header:
protected:
//{{AFX_MSG(CRosPartNumberCB)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG

and the following to the source:
BEGIN_MESSAGE_MAP(CRosPartNumberCB, CComboBox)
//{{AFX_MSG_MAP(CRosPartNumberCB)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRosPartNumberCB message handlers


int CRosPartNumberCB::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CComboBox::OnCreate(lpCreateStruct) == -1)
return -1;

AddString ("This is a test");
SelectString (-1, "This is a test");

return 0;
}

yet, a breakpoint on the above handler function never trips.

What am I missing here to get the connection established?

Jesse
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 
GeneralRe: Help!!..with List container Pin
Christian Graus13-Feb-03 11:15
protectorChristian Graus13-Feb-03 11:15 
GeneralRunning a program at startup ! Pin
Hadi Rezaee13-Feb-03 10:06
Hadi Rezaee13-Feb-03 10:06 

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.