1

我正在使用 CHOOSECOLOR 对话框,但在我的应用程序(C++/WinAPI)中它看起来很奇怪。对话框有很大的亮度滑块,我不知道为什么。我还没有找到使滑块变小的方法。

一只忙碌的猫 http://toxicbumble.com/color_dialog.png

对话框由此代码创建(它是来自MSDN的示例代码):

CHOOSECOLOR cc;                 // common dialog box structure 
static COLORREF acrCustClr[16]; // array of custom colors 
HWND hwnd;                      // owner window
HBRUSH hbrush;                  // brush handle
static DWORD rgbCurrent;        // initial color selection

// Initialize CHOOSECOLOR 
ZeroMemory(&cc, sizeof(cc));
cc.lStructSize = sizeof(cc);
cc.hwndOwner = hwnd;
cc.lpCustColors = (LPDWORD) acrCustClr;
cc.rgbResult = rgbCurrent;
cc.Flags = CC_FULLOPEN | CC_RGBINIT;

ChooseColor(&cc);
4

0 回答 0