F
Fredo
I have a Panel derived class on a ScrollableControl derived class. When the
ScrollableControl scrolls, I don't want the panel to move.
I've tried everything I can think of and I can't make this happen. Seems
like it should be simple enough.
Moving it back to where I want it in OnMove or OnLocationChanged is no good
because of the visible jumping.
I've tried handling WM_MOVE in WndProc. I tried setting Result to 0 and 1
and passing it to DefWndProc and WndProc, but neither cancels the move. I've
tried eating the message and not passing it on, but to no avail.
I've tried the same with WM_WINDOWPOSCHANGING but that didn't work.
I'm just stumped. How do I keep this window from moving?
Thanks
ScrollableControl scrolls, I don't want the panel to move.
I've tried everything I can think of and I can't make this happen. Seems
like it should be simple enough.
Moving it back to where I want it in OnMove or OnLocationChanged is no good
because of the visible jumping.
I've tried handling WM_MOVE in WndProc. I tried setting Result to 0 and 1
and passing it to DefWndProc and WndProc, but neither cancels the move. I've
tried eating the message and not passing it on, but to no avail.
I've tried the same with WM_WINDOWPOSCHANGING but that didn't work.
I'm just stumped. How do I keep this window from moving?
Thanks