- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a listview control in which I wish to restrict the maximum size to which the column can be extended.
case(WM_NOTIFY)
if(hdr_struct%code .eq. HDN_ENDTRACK)then
plistview=lparam
col_wd = SendMessage (ghwndlist,LVM_GETCOLUMNWIDTH,listview_struct%iitem,0)
col_wd = min(50,col_wd)
dummyi = SendMessage (ghwndlist,LVM_SETCOLUMNWIDTH,listview_struct%iitem,col_wd)
endif
listviewproc=1
return
This sets the value to the desired one but the column_size changes subsequently to the point where the drag ended instead of the minimum value that I've assigned.
I do not have any call to paint anywhere else. The return values from the dialog processing function does not alter the behavior of the program.
Can someone explain why the bevaior is like this.
Thanks
-archana
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page