|
-
January 17th, 2004, 01:04 PM
#1
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
-
January 17th, 2004, 04:52 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|