解决方案 »

  1.   

    试试这个BOOL GetComboBoxInfo(
       PCOMBOBOXINFO pcbi
    ) const;
    Syntaxtypedef struct tagCOMBOBOXINFO {
        DWORD cbSize;
        RECT rcItem;
        RECT rcButton;
        DWORD stateButton;
        HWND hwndCombo;
        HWND hwndItem;
        HWND hwndList;
    } COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
    MemberscbSize
    The size, in bytes, of the structure. The calling application must set this to sizeof(COMBOBOXINFO). 
    rcItem
    A RECT structure that specifies the coordinates of the edit box. 
    rcButton
    A RECT structure that specifies the coordinates of the button that contains the drop-down arrow. 
    stateButton
    The combo box button state. This parameter can be one of the following values. 
    0
    The button exists and is not pressed.
    STATE_SYSTEM_INVISIBLE
    There is no button.
    STATE_SYSTEM_PRESSED
    The button is pressed.
    hwndCombo
    A handle to the combo box. 
    hwndItem
    A handle to the edit box. 
    hwndList
    A handle to the drop-down list.