C/Visual C - Combo

 
Vista:

Combo

Publicado por Olga Gualdo (27 intervenciones) el 26/03/2007 16:52:03
Hola!
Me ocurre lo siguiente, tengo un Combo al cual cambio el tamaño externo con la función SEtWindowPos del objeto, hasta ahi bien, elproblema es que al cambiarle el tamaño externo, pierdo el tamaño de la parte que de despliega, hay alguna manera de reconfigurar por codigo este tamaño?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Combo

Publicado por Nelek (816 intervenciones) el 27/03/2007 07:24:27
Hola, te copio de la ayuda del MSDN

CComboBox::SetDroppedWidth
int SetDroppedWidth( UINT nWidth );

Return Value

If successful, the new width of the list box, otherwise CB_ERR.

Parameters

nWidth

The minimum allowable width of the list-box portion of the combo box, in pixels.

Remarks

Call this function to set the minimum allowable width, in pixels, of the list box of a combo box. This function only applies to combo boxes with the CBS_DROPDOWN or CBS_DROPDOWNLIST style.

By default, the minimum allowable width of the drop-down list box is 0. When the list-box portion of the combo box is displayed, its width is the larger of the minimum allowable width or the combo box width.

Creo que es esto lo que necesitas.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar