RE: multi line list box

new topic     » goto parent     » topic index » view thread      » older message » newer message

George Walters wrote:
> 
> OK, it seems the listbox with LVS_MULTICOLULMN will work for me, however, I
> do not know, nor can I find how to reset the column width as I need. It
> defaults to 12 characters (or so many pixels) and I need to reset it larger.
> 
> Here's what I'm using
> 
> constant idListControl = create(List,"",Main,4,cy*22,sw-15,cy*8-bh-sbHeight[2]
>                            ,LBS_MULTICOLUMN)
> 
> Does anyone know how to send a message to this control and change the col
> width? Or where do I find the doc that tells me how to do it? BTW I'm using
> win32lib 59.1... perhaps old but it works great for my stuff.

George:

You can send a message to set the width.

LB_SETCOLUMNWIDTH
An application sends an LB_SETCOLUMNWIDTH message to a multiple-column list box
(created with the LBS_MULTICOLUMN style) to set the width, in pixels, of all
columns in the list box.

LB_SETCOLUMNWIDTH 
wParam = (WPARAM) cxColumn; // column width in pixels 
lParam = 0;                 // not used; must be zero 
 
Parameters
cxColumn 
Value of wParam. Specifies the width, in pixels, of all columns. 
Return Values
This message does not return a value. 




Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu