|
From: Vlada D. <dj...@im...> - 2002-10-21 11:12:40
|
Hi, everybody
I have a problem with ChooseColor common dialog. I wrote the code, it =
compiled OK, but what ever color I choose, I get black. I can't figure =
out what's wrong. Here's the code, so if anyone can help me...thanks.
case ID_CHOOSE_COLOR:
{
CHOOSECOLOR chColor;
chColor.lStructSize=3Dsizeof(CHOOSECOLOR);
chColor.hwndOwner=3Dhwnd;
chColor.lpCustColors=3DcrCustColor;
chColor.Flags=3DCC_FULLOPEN;
=20
ChooseColor(&chColor);
crCurColor=3DchColor.rgbResult; /*crCurColor is =
global variable*/
}
break;
|