ListView, tile mode & multiple lines - how???
-
Hello all, I'd like to know how to make a Win32 list view control show multiple lines of text beside the icon just like Explorer does: |||| file_name.txt |||| Text document |||| October 10th 2007 I want to be able to control the text on each line and I am having no success, it just wraps a single line of text if it does not fit on one line. No matter what I do - adding columns, putting newlines to the text, setting number of lines with LVM_SETTILEVIEWINFO... nothing helps. So far I have found only .net examples please, which are useless to me. Thanks for any pointers.
-
Hello all, I'd like to know how to make a Win32 list view control show multiple lines of text beside the icon just like Explorer does: |||| file_name.txt |||| Text document |||| October 10th 2007 I want to be able to control the text on each line and I am having no success, it just wraps a single line of text if it does not fit on one line. No matter what I do - adding columns, putting newlines to the text, setting number of lines with LVM_SETTILEVIEWINFO... nothing helps. So far I have found only .net examples please, which are useless to me. Thanks for any pointers.
Just for a bit of masochistic fun I decided to try and do this using MFC 6, the class CListCtrl of which doesnt include any explicit support for TileView. 1. ensure _WIN32_IE and _WIN32_WINNT are both defined to 0x0501 for the entire project 2. in OnCreate of CMyListView use supported InsertColumn to add 4 columns, then SendMessage(LVM_SETVIEW,,) and SendMessage(LVM_SETTILEVIEWINFO,,) specifying 2 columns 3. for each item added SendMessage(LVM_SETTILEINFO,,) listing the columns I want to see 4. make an application manifest for the exe, I used the myapp.exe.manifest XML file method rather than the resource method Hey presto multiline TileView using MFC 6, if any one of those steps is omitted then I dont get multiline TileView.
-
Just for a bit of masochistic fun I decided to try and do this using MFC 6, the class CListCtrl of which doesnt include any explicit support for TileView. 1. ensure _WIN32_IE and _WIN32_WINNT are both defined to 0x0501 for the entire project 2. in OnCreate of CMyListView use supported InsertColumn to add 4 columns, then SendMessage(LVM_SETVIEW,,) and SendMessage(LVM_SETTILEVIEWINFO,,) specifying 2 columns 3. for each item added SendMessage(LVM_SETTILEINFO,,) listing the columns I want to see 4. make an application manifest for the exe, I used the myapp.exe.manifest XML file method rather than the resource method Hey presto multiline TileView using MFC 6, if any one of those steps is omitted then I dont get multiline TileView.