|
|
Skinned Button control
It took me a while to discover this control and its fine ability to not only create nicely drawn buttons - but also to have a wealth of different skins to choose from. Just look at the skinz.org web-site to try out some different themes. The button lacks my offscreen memory device, so it flickers a bit. But instead I fixed a few problems and added limited support for checkbox behaviour.
The button also include support for 256 coloured displays
How to use itPlace a button on a dialog.Then add a member variable to your dialog implementation file...
In the OnInitDialog() event handler, add the following lines:
There are some additional arguments to SetBitmap which allow
you to configure how many state images the bitmap contains and how the button
image should be stretched to accomodate different button sizes.
Add the following reflection macro to your main message map:
Finally add a bitmap with the identifier IDB_AQUA to the project.
There are some sample bitmaps included with the code to play with.
Source Code DependenciesMicrosoft Visual C++ 6.0Microsoft WTL 7.0 Library See AlsoAnother sample with DIB controlsDownload Files
Written by Bjarke Viksoe. Article submitted 7/30/2002. To the top
|
|||