Google Groups Home
Help | Sign in
Message from discussion Hooking WM_NCHITTEST or Usercontrol does not affect Left and Top
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
kerplunkwho...@yahoo.co.uk  
View profile
 More options May 15, 3:59 pm
Newsgroups: microsoft.public.vb.winapi
From: kerplunkwho...@yahoo.co.uk
Date: Thu, 15 May 2008 12:59:30 -0700 (PDT)
Local: Thurs, May 15 2008 3:59 pm
Subject: Hooking WM_NCHITTEST or Usercontrol does not affect Left and Top

Hello

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google