G
Guest
I have a listview control that doesn't initialize the size of the edit field properly when an item's label is being edited. For some dumb reason it's often much smaller than the actual label
I have tried to fix this bug myself but that fails too. I handled the LVN_BEGINLABELEDIT notification, read the actual size of the item's label with GetItemRect(..., LVIR_LABEL), grabbed the handle to the edit field and attempted to correct its incorrect size with the SetWindowPos function. The SetWindowPos function did absolutely nothing!
Why doesn't that edit field open at the same dimensions it appears under the listview icon? Why won't Windows at least allow me to resize it once it's been created?
I have tried to fix this bug myself but that fails too. I handled the LVN_BEGINLABELEDIT notification, read the actual size of the item's label with GetItemRect(..., LVIR_LABEL), grabbed the handle to the edit field and attempted to correct its incorrect size with the SetWindowPos function. The SetWindowPos function did absolutely nothing!
Why doesn't that edit field open at the same dimensions it appears under the listview icon? Why won't Windows at least allow me to resize it once it's been created?