04-24-2009, 12:08 PM
You are right. I think I was trying to change the menu color not the dialog color. Since that is too complicated, I will instead make bmp's for dlg buttons that match the buttons on the parent application.
Using even simple PAINT program, I can match the background color gradient behind each button of the parent application and use similar icons as parent application, similar font, etc.
This works out quite well except for a couple small things:
When I use the code below in WM_INITDIALOG to place the button image, I lose the hover-over effect that normal dialog buttons have.
Is it possible to have a different image be swapped over the button when it is hovered-over? That way, I can match the hover-over behavior/appearance of the buttons in the parent application.
Also, can't quite get the "3D edge" on the button. I want it ideally to be seamless with the background so I can match it better to the host app.
Thanks for helping with such picky points!!!,
Stuart
Using even simple PAINT program, I can match the background color gradient behind each button of the parent application and use similar icons as parent application, similar font, etc.
This works out quite well except for a couple small things:
When I use the code below in WM_INITDIALOG to place the button image, I lose the hover-over effect that normal dialog buttons have.
,,SendMessage(id(3 hDlg) BM_SETIMAGE IMAGE_BITMAP LoadPictureFile(":200 ButtonImage.bmp" 0)) ;;can be bmp, gif of jpg
,,
Is it possible to have a different image be swapped over the button when it is hovered-over? That way, I can match the hover-over behavior/appearance of the buttons in the parent application.
Also, can't quite get the "3D edge" on the button. I want it ideally to be seamless with the background so I can match it better to the host app.
Thanks for helping with such picky points!!!,
Stuart