I triple checked but yes, CHOOSECOLOR.hInstance is an HWND...
This commit is contained in:
parent
c583b68565
commit
980eeecf99
|
@ -123,7 +123,7 @@ typedef UINT CALLBACK (*LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD lStructSize;
|
DWORD lStructSize;
|
||||||
HWND hwndOwner;
|
HWND hwndOwner;
|
||||||
HWND hInstance;
|
HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
|
||||||
DWORD rgbResult;
|
DWORD rgbResult;
|
||||||
LPDWORD lpCustColors;
|
LPDWORD lpCustColors;
|
||||||
DWORD Flags;
|
DWORD Flags;
|
||||||
|
@ -136,7 +136,7 @@ typedef CHOOSECOLORA *LPCHOOSECOLORA;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD lStructSize;
|
DWORD lStructSize;
|
||||||
HWND hwndOwner;
|
HWND hwndOwner;
|
||||||
HWND hInstance;
|
HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
|
||||||
DWORD rgbResult;
|
DWORD rgbResult;
|
||||||
LPDWORD lpCustColors;
|
LPDWORD lpCustColors;
|
||||||
DWORD Flags;
|
DWORD Flags;
|
||||||
|
|
|
@ -152,7 +152,7 @@ void mwi_Color(HWND hWnd)
|
||||||
|
|
||||||
cc.lStructSize = sizeof(CHOOSECOLOR);
|
cc.lStructSize = sizeof(CHOOSECOLOR);
|
||||||
cc.hwndOwner = hWnd;
|
cc.hwndOwner = hWnd;
|
||||||
cc.hInstance = g_hInstance;
|
cc.hInstance = (HWND)g_hInstance; /* Should be an HINSTANCE but MS made a typo */
|
||||||
cc.rgbResult = RGB(0,0,0);
|
cc.rgbResult = RGB(0,0,0);
|
||||||
cc.lpCustColors = cc_cr;
|
cc.lpCustColors = cc_cr;
|
||||||
cc.Flags = 0;
|
cc.Flags = 0;
|
||||||
|
|
Loading…
Reference in New Issue