how to remove the extra border of a button after enabling xp visual style
-
a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.
Some Day I Will Prove MySelf :: GOLD
-
a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.
Some Day I Will Prove MySelf :: GOLD
The most direct way to accomplish what you want is to write an ownerdraw button control. There are articles about doing this here on CodeProject. All you have to do is select one that doesn't apply XP theming. BTW, have you tried your app on Vista or Windows 7? They might display the button in a different way.
Best wishes, Hans
-
The most direct way to accomplish what you want is to write an ownerdraw button control. There are articles about doing this here on CodeProject. All you have to do is select one that doesn't apply XP theming. BTW, have you tried your app on Vista or Windows 7? They might display the button in a different way.
Best wishes, Hans
thanx, how to make a portion of BMP image transparent in WIN32 way.
Some Day I Will Prove MySelf :: GOLD