(1) 参数
typedef struct {
DWORD lStructSize;
HWND hwndOwner;
HWND hInstance;
COLORREF rgbResult;
COLORREF * lpCustColors;
DWORD Flags;
LPARAM lCustData;
LPCCHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
} CHOOSECOLOR, *LPCHOOSECOLOR;
(2) API函数
BOOL ChooseColor(
LPCHOOSECOLOR lpcc // initialization data
);
(3) 回调函数,用于处理消息
UINT_PTR CALLBACK CCHookProc(
...[ 查看全文 ]