Drawing button
-
Is it possible to let a user draw his own button at runtime? I mean to say,that the button size be varied with its position also at runtime. Actually,my project work needs to make a toolbar analogous to "Micrsoft Paint"'s toolbar in which there will be button tool which a user can use to make a button in his workplace.It will be more suitable if the button is circular rather than rectangular as seen normally in VC++ .
-
Is it possible to let a user draw his own button at runtime? I mean to say,that the button size be varied with its position also at runtime. Actually,my project work needs to make a toolbar analogous to "Micrsoft Paint"'s toolbar in which there will be button tool which a user can use to make a button in his workplace.It will be more suitable if the button is circular rather than rectangular as seen normally in VC++ .
Yes, it is possible. If you want to draw your own type of button that's circular that's possible too. Don't expect code here though, that's pretty much beyond the scope of a forum thread, just read up on owner draw buttons for the circular button question. For resizing the button, you will need to just code some way for the user to resize it, put it in some custom view or something and handle the mouse events, you can call MoveWindow() to resize the button. -- Rocky Dean Pulley