movewindow

Effect of MoveWindow in EnumChildWindows over listview inside the Dialog Box: Why ListView Header is not correctly scrolling

不问归期 提交于 2019-12-30 12:00:53
问题 I have a listview control (lvc) and it is inside a DialogBox (dbx) and that dbx also has a vertical scroll bar. Whenever the scrollbar is scrolled EnumChildWindows is called to enumerate all the child window of the dbx. The callback function contains a MoveWindow function that would move that lvc. lvc is scrolling fine but not its column headers, they are not moving with the list view. If i comment out the MoveWindow function inside the callback function then nothing changes. ( Off-course lvc

Effect of MoveWindow in EnumChildWindows over listview inside the Dialog Box: Why ListView Header is not correctly scrolling

安稳与你 提交于 2019-12-01 13:36:55
I have a listview control (lvc) and it is inside a DialogBox (dbx) and that dbx also has a vertical scroll bar. Whenever the scrollbar is scrolled EnumChildWindows is called to enumerate all the child window of the dbx. The callback function contains a MoveWindow function that would move that lvc. lvc is scrolling fine but not its column headers, they are not moving with the list view. If i comment out the MoveWindow function inside the callback function then nothing changes. ( Off-course lvc won't move! ) that means EnumChildWindow has got no problem, but MoveWindow inside the callback