Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello everyone,
I'm developping an MFC/C++ application. I've some buttons witch everyone contain a bitmap. I want that when I put the mouse cursor on a button, I display the image with a larger dimensions such as a zoom of the image.
Can anyone have an idea how to do ?
Many thanks for your precious help.
Best regards.

Your button has to be able to detect when the mouse is within it's rectangle. I think I remember it being call mouse capture or something like that. It's been more than three years since I did any C++/MFC.

Once the button detects that the mouse has entered its rectangle, you can have the button resize the image.
Share this answer
May be you can StretchBlt() the image to a bigger rectangle.[^]
Share this answer
Thanks for replying,
I've searched for the SetCapture function I've not understand very well the msdn.
Can anyone explain it more easy.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900