CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: DCFromPoint -

  1. #1
    Join Date
    May 2007
    Posts
    680

    Exclamation DCFromPoint -

    Sup guys,

    As most of you know there is a function called WindowFromPoint(...) is there a DC equivelent?

    Thanks.
    Just sayin' but I'm 14(I'm telling you this so you know what sort of language to use).
    Advice received by a user.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: DCFromPoint -

    What's wrong with WindowFromPoint and then GetWindowDC?
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    May 2007
    Posts
    680

    Re: DCFromPoint -

    Whoops sorry I forgot about doing that One last question; would this work for a control?
    Just sayin' but I'm 14(I'm telling you this so you know what sort of language to use).
    Advice received by a user.

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: DCFromPoint -

    Yes, a control is a window.
    However, WindowFromPoint will not return disabled windows. If you also need disabled windows, take a look at ChildWindowFromPoint .
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    May 2007
    Posts
    680

    Re: DCFromPoint -

    Thanks!
    Just sayin' but I'm 14(I'm telling you this so you know what sort of language to use).
    Advice received by a user.

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

Featured