I am having a few issues when hooking WM_NCHITTEST in VB6 then reading
the new values given to Left and Top of a Usercontrol.
My Windows hook returns HTCAPTION for WM_NCHITTEST when the user
clicks on the Usercontrol. This has the affect of moving the
Usercontrol like dragging a form border.
The hook works correctly and the Usercontrol visually moves on the
form, but the values in Left and Top for the Usercontrol on the parent
form never changes. Its as if VB6 is never being informed that the
Usercontrol has moved. The same is true for Usercontrol.Extender.Left/
Top.
Any suggestions?
Thanks
Paul
http://vbnet.mvps.org/index.html?code/subclass/htcaption.htm
Paul
That actually makes sense. Same thing happens if you manually sort a ListView. VB
is keeping all these internal tables, and they're not actually truth-checked more
often than not. May be that you have to live with this.
--
.NET: It's About Trust!
http://vfred.mvps.org
User control hosting and placement does not use the standard window
positioning.
When the control is moved, it changes the windowrect, but not the other
way around.
If I want a UC to move itself, I had to manually handle mousedown/move
and chenge the extender top and left.
--
Dean Earley (dean....@icode.co.uk)
i-Catcher Development Team
iCode Systems
Paul
On 16 May, 10:20, Dean Earley <dean.ear...@icode.co.uk> wrote:
> Dean Earley (dean.ear...@icode.co.uk)