0

I have successfully created an owner drawn button.

But how do I now draw/color the darn thing, to make it look like a Button using the Windows API? Currently, it just looks like a colored label?

Any C examples?

4

2 に答える 2

2

DrawFrameControlを探しているようです。Vista/7 に似たクールなコントロールについては、 を参照してuxtheme.dllください。

于 2011-04-18T23:39:11.447 に答える
1

モダンな外観のボタンの場合は、これをコピーしてソースに貼り付けるだけです。

#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

さて、あなたがそれを暗記したいのでなければ...

于 2012-12-14T17:14:55.247 に答える