谢谢

解决方案 »

  1.   

    可以将他禁用呀!
    m_comBox.EnableWindow(0);
    m_comBox是它的contrl变量,满意吗?
      

  2.   

    DWORD   theStyle;
    HWND   theChild; 

    theChild   =  ::GetWindow( GetDlgItem(IDC_COMBO1)->m_hWnd  ,   GW_CHILD   );   
    theStyle = GetWindowLong(GetDlgItem(IDC_COMBO1)->m_hWnd, GWL_STYLE   );   
    theStyle   &=   ~CBS_DROPDOWN;   
    theStyle   |=   CBS_DROPDOWNLIST;  ::DestroyWindow(   theChild   );   
    SetWindowLong(GetDlgItem(IDC_COMBO1)->m_hWnd, GWL_STYLE   ,   theStyle   );