I have been trying to get a Colour Dialog to appear in the settings part of one of my apps, and for that I use
Unfortunately, I keep on getting an "Unresolved Reference" to ChooseColor(), but I have included coredll.lib in my Project Settings, as the documentation says.
Am I missing something? This is the only bit missing before I release the app as a mini-freeware Today module, so it is quite frustrating!
Cheers!
AL
- Code:
static void SetItemColour( COLORREF & aColour, HWND hWnd )
{
CHOOSECOLOR cc;
cc.lStructSize = sizeof( CHOOSECOLOR );
cc.hwndOwner = hWnd;
cc.hInstance = 0;
cc.rgbResult = aColour;
cc.lpCustColors = 0;
cc.Flags = CC_ANYCOLOR | C_FULLOPEN | CC_RGBINIT;
cc.lCustData = 0;
cc.lpfnHook = 0;
cc.lpTemplateName = 0;
if ( ChooseColor( &cc; ) )
{
aColour = cc.rgbResult;
}
}
Unfortunately, I keep on getting an "Unresolved Reference" to ChooseColor(), but I have included coredll.lib in my Project Settings, as the documentation says.
Am I missing something? This is the only bit missing before I release the app as a mini-freeware Today module, so it is quite frustrating!
Cheers!
AL