Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dlg with 2 Picture controls, cursor on 1st shows image in 2nd

Status
Not open for further replies.

richsb

Technical User
Aug 2, 2001
34
NO
Hi folks,

I have a Dlg with two picture controls in them - Pic1, Pic2 - and what I would like to be able to do is this :-When the mouse cursor is in a particular location of Pic1 (say the top half) an image is shown in Pic2. If the mouse is then moved to the lower half of Pic1, a different picture is then shown in Pic2.

The aim of the dlg is to display a street map(bmp, jpg or metafile) in pic1, and then show another image(bmp, jpg or metafile) displaying in greater detail what is at the location on the map in Pic1, depending on the mouse position. A sort of auto-zoom feature.

Any direction in which I should look to complete this would be appreciated. Consideration has been given to ImageList, Devicecontexts, MousePosition and the BN_CLICKED function of the Pic1 picture control.

Thanks in advance.
 
>> Consideration has been given to....

Sounds like your on the right track. What about SetCapture()?

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top