I need a function that will determine whether or not any part of a control is in a RECT. For example, whe you drag to select a number of controls in VB at design time, it will select the control even if the RECT doesn't completely surround it.
Attached is the method I'm using at the moment, but it won't select the shape if you try to select anything besides one of the corners. Any help at all would be appreciated.
BTW: I am using this for a game, but I was testing it on a shape so I could implement it later in the game.


Reply With Quote