c++ - win32 List View Abbreviating Text -


i'm using win32 create list view downloaded icons, however, text abbreviated @ approximately 19 characters (as size 12 font, segoe ui). have included createwindow , item creation code i'm using it.

any advice appreciated.

hwnd airlinelist = createwindow(wc_listview,l"",ws_child | lvs_list | ws_tabstop | ws_border,18,104,323,74,hwnd,(hmenu)3,hinst,null);                      lvitem newi;                     zeromemory(&newi,sizeof(lvitem));                                            const wchar_t* n = l"client website name, website.com"                       newi.psztext = newc;                                                 newi.mask = lvif_text | lvif_image;                     newi.iimage = 0;                                                 listview_insertitem(airlinelist,&newi);  

the above create list view icon , effect of "client website nam..." despite taking half of list view's width.

i'll assume you're using lvs_list mode because style shown in code sample. can use lvm_setcolumnwidth message adjust column size once you've added items list control. can use listview_setcolumnwidth macro. e.g.:

sendmessage(airlinelist, lvm_setcolumnwidth, 0, 300); 

this set columns 300 pixels wide. if you're using lvs_report mode need set width each column individually.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -