I have a listview control in which I wish to restrict the maximum size to which the column can be extended.
if(hdr_struct%code .eq. HDN_ENDTRACK)then
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)
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.