CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Location
    United Kingdom
    Posts
    60

    BitBlt Question!!

    Hi,

    I have a main pic on my form called MainPic. I also have a number of images that I have BitBlt onto the picture box.

    There is a label also.

    What I want is when the mouse is moved over one of the pics that have been BitBlt I want the something to appear in label...

    E.g

    If a BitBlt a pic of a car onto a grass background, when i move mouse over car I want "Car" to appear in Label. If I moved it over a house i want "House" in label, etc..

    Any info on this! Thanks a Lot!

    Mark

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332
    A few things come to mind, however, unless all your objects are rectangular, you would have to build regions for each one. For rectangles only, I might use an array of rect structures, and itterate through them, testing each with PtInRect. For regions, I'm not quite sure of all the stuff I would end up doing, but I guess I would start by taking a look at path functions, like BeginPath, EndPath, Path2Region, and also PtInRegion.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

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