Holger Persch
April 26th, 1999, 01:17 AM
Hi!
How can I get a pointer to the edit control of
a combobox?
Thanks in advance
Holger
How can I get a pointer to the edit control of
a combobox?
Thanks in advance
Holger
|
Click to See Complete Forum and Search --> : Combobox and edit control Holger Persch April 26th, 1999, 01:17 AM Hi! How can I get a pointer to the edit control of a combobox? Thanks in advance Holger Sjoerd April 27th, 1999, 04:30 AM Did you try to to GetDlgItem with a value of 1001, it is an undocumented feature that has seen widespread use April 27th, 1999, 09:21 AM CEdit* pComboEdit = (CEdit*)GetDlgItem(IDC_XXXXX); // XXXXX is the name of your combobox Depending upon what you need it for (Dialog based, SDI, MDI, etc.), you may have to add this: CEdit* pComboEdit = (CEdit*)(GetDlgItem(IDC_XXXXX)->GetWindow(GW_CHILD) ); codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |