|
-
Oct 8th, 2001, 11:13 AM
#1
Need a command button in API!
Hi there:
1) How to make a command(push) button in API, so that when you move the mouse over it, a 3D box is drawn automatically. how to send it a picture as a label ?
2) Also, have you ever looked at Windows Calculator buttons? How to make such a one?
------
If the code is too big, it would be better if you send me a mdoule.
-
Oct 8th, 2001, 11:23 AM
#2
Use CreateWindowEx to create the button. Then subclass your form and catch the WM_MOUSEMOVE event. The LoWord and HiWord arguments tell the x and y position. Check if the position is in the rectangle of the button. If it is, then use VB's Line method, or the MoveToEx and LineTo API's to draw your 3D shape. Use VB's Cls method to clear the drawings when the mouse moves out of the rectangle.
2) What feature are you referring to?
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
|