CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    11

    Combobox and edit control

    Hi!

    How can I get a pointer to the edit control of
    a combobox?

    Thanks in advance
    Holger


  2. #2
    Join Date
    Apr 1999
    Posts
    6

    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


  3. #3
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured