Hi!
There are 2 ways.
One is simple - use bitmaps for image control and change bitmap to 'pressed' bitmap when user presses on control to simulate button functionality. This have disadvantage that any click in the image control will fire clicking event, even when click is outside of triangle.
Another is much more complex, but much more smooth.
You require to make an ActiveX or use existing ActiveX control (Button). Than you require to get windows handle to that button and use Create*Rgn API functions to create reagion you like (Elliptic, triangular etc.), and than SetWindowRgn API function. You will be lucky if it will work, if not - need to write your own painting routine.
>I want to create a particular form of cmdbuttons ( eg triangle ).
>Exist any method for that ?
>Thanks.
>Dorin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.