المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Change the color of dialog in win32



C++ Programming
12-16-2009, 03:00 AM
Hello Friends
I m trying to change the color of dialog in win32 based application.So for that I m using

switch(msg)
{
case WM_INITDIALOG:
{
HBRUSH bgcolor = CreateSolidBrush(RGB(255,0,0));
return TRUE;
}
case WM_CTLCOLORDLG:
{
return (LONG)bgcolor;
}
}


Any other IDeas??

Thanks & Regards
Yogesh