Results 1 to 2 of 2

Thread: WindowFromPoint problem?

  1. #1

    Thread Starter
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    WindowFromPoint problem?

    Under the Index tab of the VB6 help there is an 'Edit' control where you type in your keywords to find.

    Anyway, using Spy++ window finder tool I can find this 'Edit' window no probs. However, I wrote my own simple version using WindowFromPoint (standard job, just getting the point in the MouseUp event) but it doesn't find this Edit window - just the SysTabControl32 (which isn't even the parent of the edit box).

    Having assumed the mistake was mine, I download JA's version but received the same results...

    Is this a fault with WindowFromPoint? Is there a more reliable way of getting a the correct window? Is it just me...?

  2. #2
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591

    Re: WindowFromPoint problem?

    Getting the window from the point returns the SysTabControl32 (a sibling of the Edit control) because the SysTabControl32 is on top of the Edit control in the Z-order.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width