|
-
April 26th, 1999, 01:17 AM
#1
Combobox and edit control
Hi!
How can I get a pointer to the edit control of
a combobox?
Thanks in advance
Holger
-
April 27th, 1999, 04:30 AM
#2
Re: Combobox and edit control
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
#3
Re: Combobox and edit control
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) );
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|