CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863

    What's up with COMBOBOXINFO

    I would like to get the handle to the edit control of a combo box with the style CBS_DROPDOWN. Let me say that I am using VC 6.0 and this combo box is a CComboBox added to a dialog with the dialog editor.
    My attempt was to use
    pCB is a pointer to the combo box
    COMBOBOXINFO CBInfo;
    ::GetComboBoxInfo(pCB->m_Hwnd, &CBInfo);
    CBInfo.hwndItem is the handle to the edit box.

    Problem is that I get errors saying
    COMBOBOXINFO indeclared identifier
    GetComboBoxInfo is not a member of the global namespace

    As far as I can tell the include needed is Windows.h so I do not know what is wrong here?
    Last edited by souldog; May 2nd, 2003 at 02:12 PM.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  2. #2
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Just out of curiosity...which operating system do you use?

    The structure as well as the function are only available on Windows 98 or higher / Windows NT 4.0 SP6 or higher...

  3. #3
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    Hi, thanks for the reply. I am using both W2K with SP 3 and visual studio SP6 and WinXP SP1 which has a learning addition of VC and I have not installed any service packs.

    I also tried removing VC_EXTRALEAN to no avail.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  4. #4
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    It seems I have an outdated version of the SDK
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

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