2 * COMMDLG - Color Dialog
4 * Copyright 1994 Martin Ayotte
5 * Copyright 1996 Albrecht Kleine
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 /* BUGS : still seems to not refresh correctly
23 sometimes, especially when 2 instances of the
24 dialog are loaded at the same time */
26 #ifndef _WINE_COLORDLG_H
27 #define _WINE_COLORDLG_H
37 #include "wine/winbase16.h"
38 #include "wine/winuser16.h"
42 #include "wine/debug.h"
47 typedef struct CCPRIVATE
49 LPCHOOSECOLORW lpcc
; /* points to public known data structure */
50 LPCHOOSECOLOR16 lpcc16
; /* save the 16 bits pointer */
51 int nextuserdef
; /* next free place in user defined color array */
52 HDC hdcMem
; /* color graph used for BitBlt() */
53 HBITMAP hbmMem
; /* color graph bitmap */
54 RECT fullsize
; /* original dialog window size */
55 UINT msetrgb
; /* # of SETRGBSTRING message (today not used) */
56 RECT old3angle
; /* last position of l-marker */
57 RECT oldcross
; /* last position of color/satuation marker */
58 BOOL updating
; /* to prevent recursive WM_COMMAND/EN_UPDATE processing */
61 int l
; /* for temporary storing of hue,sat,lum */
62 int capturedGraph
; /* control mouse captured */
63 RECT focusRect
; /* rectangle last focused item */
64 HWND hwndFocus
; /* handle last focused item */
69 * Do NOT Export to other programs and dlls
72 BOOL
CC_HookCallChk( LPCHOOSECOLORW lpcc
);
73 int CC_MouseCheckResultWindow( HWND hDlg
, LPARAM lParam
);
74 LONG
CC_WMInitDialog( HWND hDlg
, WPARAM wParam
, LPARAM lParam
, BOOL b16
);
75 LRESULT
CC_WMLButtonDown( HWND hDlg
, WPARAM wParam
, LPARAM lParam
);
76 LRESULT
CC_WMLButtonUp( HWND hDlg
, WPARAM wParam
, LPARAM lParam
);
77 LRESULT
CC_WMCommand( HWND hDlg
, WPARAM wParam
, LPARAM lParam
, WORD
78 notifyCode
, HWND hwndCtl
);
79 LRESULT
CC_WMMouseMove( HWND hDlg
, LPARAM lParam
);
80 LRESULT
CC_WMPaint( HWND hDlg
, WPARAM wParam
, LPARAM lParam
);
82 #endif /* _WINE_COLORDLG_H */