|
hi all,
i want t draw banner and button for the dialog box according to current system theme.
please help me how can i do this.
thanks in advance.
|
|
|
|
|
For button, you can use CBitmapButton[^], and for the banner, you can use CStatic[^], where you can put there a bitmap, like banner ... of course, you can find here a derived CButton controls ...
|
|
|
|
|
i dont want to use image for this.
i want to get current system theme and its color than according to this draw the graphics.
what can i do for this?
thanks.
|
|
|
|
|
Well, then you only must setup a style for your application (setup manifest file) and you'll have a current system style on your button and CStatic. If I well understand ...
|
|
|
|
|
yes
how can use setup style?
|
|
|
|
|
Very simple: add manifest file in your project resource folder, and then open Resource.h:
#if _MSC_VER <= 1200
#ifndef IDR_MANIFEST
#define IDR_MANIFEST 1
#endif
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#endif // _MSC_VER <= 1200
if you don't have a manifest file, I could send you through email ...
Check here[^] too.
modified 16-Jan-13 4:24am.
|
|
|
|
|
Take a look at this section on MSDN[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|