I develop a win32 app and create a color chooser using this example. I update if statement like this to change the background of my app when user click to "Ok" in color dialog box, but nothing change. Where is my mistake?
if (ChooseColor(&cc) == TRUE) {
HBRUSH hbrush = CreateSolidBrush(cc.rgbResult);
rgbCurrent = cc.rgbResult;
SetClassLongPtr(hWnd, GCLP_HBRBACKGROUND, (LONG)hbrush);
}