J
Jonathan
I have a form that has controls on it that can be dragged to other
locations within the form. The form size is larger than the viewable
area so the scroll bars are visible (and autoscroll is enabled). When
I drag a control to the edge of the visible border, I am sending the
WM_HSCROLL/WM_VSCROLL message to the parent form to initiate a scroll.
This works good, the parent form scrolls and keeps scrolling until the
control is dropped or moved away from the edge of the visible form, but
my problem is that the control that is being dragged needs to appear as
though it is in the same place after the scroll. Moving the control
before or after sending the scroll message gives the appearance of the
dragging control "tearing" or flickering. It needs to appear as though
it isnt moving at all.
If I lockwindowsupdate during the scroll, the dragging control appears
to stay in one place, but the other controls on the form flicker when a
scroll is initiated.
Is there a way to lock a portion of a window? I have done some
research, but havent come up with anything. Does anyone have any
ideas?
TIA.
locations within the form. The form size is larger than the viewable
area so the scroll bars are visible (and autoscroll is enabled). When
I drag a control to the edge of the visible border, I am sending the
WM_HSCROLL/WM_VSCROLL message to the parent form to initiate a scroll.
This works good, the parent form scrolls and keeps scrolling until the
control is dropped or moved away from the edge of the visible form, but
my problem is that the control that is being dragged needs to appear as
though it is in the same place after the scroll. Moving the control
before or after sending the scroll message gives the appearance of the
dragging control "tearing" or flickering. It needs to appear as though
it isnt moving at all.
If I lockwindowsupdate during the scroll, the dragging control appears
to stay in one place, but the other controls on the form flicker when a
scroll is initiated.
Is there a way to lock a portion of a window? I have done some
research, but havent come up with anything. Does anyone have any
ideas?
TIA.