Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
024a0683
Commit
024a0683
authored
Nov 12, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Reimplement the 16-bit color dialog on top of the 32-bit one.
Stub out the functionality that cannot be supported that way.
parent
9e643967
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
40 deletions
+18
-40
cdlg.h
dlls/comdlg32/cdlg.h
+0
-22
cdlg16.h
dlls/comdlg32/cdlg16.h
+1
-1
colordlg.c
dlls/comdlg32/colordlg.c
+17
-17
colordlg16.c
dlls/comdlg32/colordlg16.c
+0
-0
No files found.
dlls/comdlg32/cdlg.h
View file @
024a0683
...
...
@@ -184,26 +184,4 @@ extern LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD);
extern
DWORD
(
WINAPI
*
COMDLG32_SHFree
)(
LPVOID
);
extern
BOOL
(
WINAPI
*
COMDLG32_SHGetFolderPathW
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPWSTR
);
/*
* Internal Functions
* Do NOT Export to other programs and dlls
*/
BOOL
CC_HookCallChk
(
const
CHOOSECOLORW
*
lpcc
);
int
CC_MouseCheckResultWindow
(
HWND
hDlg
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
);
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LPCRECT
lprect
);
void
CC_PaintSelectedColor
(
HWND
hDlg
,
COLORREF
cr
);
int
CC_RGBtoHSL
(
char
c
,
int
r
,
int
g
,
int
b
);
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
);
void
CC_PaintTriangle
(
HWND
hDlg
,
int
y
);
int
CC_CheckDigitsInEdit
(
HWND
hwnd
,
int
maxval
);
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
);
int
CC_HSLtoRGB
(
char
c
,
int
hue
,
int
sat
,
int
lum
);
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
);
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
const
COLORREF
*
lpcr
);
#endif
/* _WINE_DLL_CDLG_H */
dlls/comdlg32/cdlg16.h
View file @
024a0683
...
...
@@ -147,7 +147,7 @@ BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn);
BOOL16
WINAPI
PrintDlg16
(
LPPRINTDLG16
print
);
HWND16
WINAPI
ReplaceText16
(
SEGPTR
find
);
BOOL16
WINAPI
ChooseFont16
(
LPCHOOSEFONT16
);
BOOL16
CALLBACK
ColorDlgProc16
(
HWND16
hDlg16
,
UINT16
message
,
WPARAM16
wParam
,
L
ONG
lParam
);
BOOL16
CALLBACK
ColorDlgProc16
(
HWND16
hDlg16
,
UINT16
message
,
WPARAM16
wParam
,
L
PARAM
lParam
);
BOOL16
CALLBACK
FileSaveDlgProc16
(
HWND16
hWnd16
,
UINT16
wMsg
,
WPARAM16
wParam
,
LPARAM
lParam
);
BOOL16
CALLBACK
FileOpenDlgProc16
(
HWND16
hWnd16
,
UINT16
wMsg
,
WPARAM16
wParam
,
LPARAM
lParam
);
INT16
WINAPI
FontFamilyEnumProc16
(
SEGPTR
logfont
,
SEGPTR
metrics
,
UINT16
nFontType
,
LPARAM
lParam
);
...
...
dlls/comdlg32/colordlg.c
View file @
024a0683
...
...
@@ -93,7 +93,7 @@ typedef struct CCPRIVATE
/***********************************************************************
* CC_HSLtoRGB [internal]
*/
int
CC_HSLtoRGB
(
char
c
,
int
hue
,
int
sat
,
int
lum
)
static
int
CC_HSLtoRGB
(
char
c
,
int
hue
,
int
sat
,
int
lum
)
{
int
res
=
0
,
maxrgb
;
...
...
@@ -138,7 +138,7 @@ int CC_HSLtoRGB(char c, int hue, int sat, int lum)
/***********************************************************************
* CC_RGBtoHSL [internal]
*/
int
CC_RGBtoHSL
(
char
c
,
int
r
,
int
g
,
int
b
)
static
int
CC_RGBtoHSL
(
char
c
,
int
r
,
int
g
,
int
b
)
{
WORD
maxi
,
mini
,
mmsum
,
mmdif
,
result
=
0
;
int
iresult
=
0
;
...
...
@@ -365,7 +365,7 @@ static int CC_MouseCheckColorGraph( HWND hDlg, int dlgitem, int *hori, int *vert
* CC_MouseCheckResultWindow [internal]
* test if double click one of the result colors
*/
int
CC_MouseCheckResultWindow
(
HWND
hDlg
,
LPARAM
lParam
)
static
int
CC_MouseCheckResultWindow
(
HWND
hDlg
,
LPARAM
lParam
)
{
HWND
hwnd
;
POINT
point
;
...
...
@@ -386,7 +386,7 @@ int CC_MouseCheckResultWindow( HWND hDlg, LPARAM lParam )
/***********************************************************************
* CC_CheckDigitsInEdit [internal]
*/
int
CC_CheckDigitsInEdit
(
HWND
hwnd
,
int
maxval
)
static
int
CC_CheckDigitsInEdit
(
HWND
hwnd
,
int
maxval
)
{
int
i
,
k
,
m
,
result
,
value
;
long
editpos
;
...
...
@@ -428,7 +428,7 @@ int CC_CheckDigitsInEdit( HWND hwnd, int maxval )
/***********************************************************************
* CC_PaintSelectedColor [internal]
*/
void
CC_PaintSelectedColor
(
HWND
hDlg
,
COLORREF
cr
)
static
void
CC_PaintSelectedColor
(
HWND
hDlg
,
COLORREF
cr
)
{
RECT
rect
;
HDC
hdc
;
...
...
@@ -452,7 +452,7 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
/***********************************************************************
* CC_PaintTriangle [internal]
*/
void
CC_PaintTriangle
(
HWND
hDlg
,
int
y
)
static
void
CC_PaintTriangle
(
HWND
hDlg
,
int
y
)
{
HDC
hDC
;
long
temp
;
...
...
@@ -503,7 +503,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
/***********************************************************************
* CC_PaintCross [internal]
*/
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
)
static
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
)
{
HDC
hDC
;
int
w
=
GetDialogBaseUnits
()
-
1
;
...
...
@@ -660,7 +660,7 @@ static void CC_PaintLumBar( HWND hDlg, int hue, int sat )
/***********************************************************************
* CC_EditSetRGB [internal]
*/
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
)
static
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
)
{
char
buffer
[
10
];
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -683,7 +683,7 @@ void CC_EditSetRGB( HWND hDlg, COLORREF cr )
/***********************************************************************
* CC_EditSetHSL [internal]
*/
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
)
static
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
)
{
char
buffer
[
10
];
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -705,7 +705,7 @@ void CC_EditSetHSL( HWND hDlg, int h, int s, int l )
/***********************************************************************
* CC_SwitchToFullSize [internal]
*/
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LPCRECT
lprect
)
static
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LPCRECT
lprect
)
{
int
i
;
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -784,7 +784,7 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
* CC_PaintUserColorArray [internal]
* Paint the 16 user-selected colors
*/
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
const
COLORREF
*
lpcr
)
static
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
const
COLORREF
*
lpcr
)
{
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2d1
);
RECT
rect
,
blockrect
;
...
...
@@ -835,7 +835,7 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, const COLORREF *lpcr
/***********************************************************************
* CC_HookCallChk [internal]
*/
BOOL
CC_HookCallChk
(
const
CHOOSECOLORW
*
lpcc
)
static
BOOL
CC_HookCallChk
(
const
CHOOSECOLORW
*
lpcc
)
{
if
(
lpcc
)
if
(
lpcc
->
Flags
&
CC_ENABLEHOOK
)
...
...
@@ -847,7 +847,7 @@ BOOL CC_HookCallChk( const CHOOSECOLORW *lpcc )
/***********************************************************************
* CC_WMInitDialog [internal]
*/
static
L
ONG
CC_WMInitDialog
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
L
RESULT
CC_WMInitDialog
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
int
i
,
res
;
int
r
,
g
,
b
;
...
...
@@ -1081,7 +1081,7 @@ static LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notif
/***********************************************************************
* CC_WMPaint [internal]
*/
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
PAINTSTRUCT
ps
;
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -1103,7 +1103,7 @@ LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam )
/***********************************************************************
* CC_WMLButtonUp [internal]
*/
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -1120,7 +1120,7 @@ LRESULT CC_WMLButtonUp( HWND hDlg, WPARAM wParam, LPARAM lParam )
/***********************************************************************
* CC_WMMouseMove [internal]
*/
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
)
static
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
)
{
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
int
r
,
g
,
b
;
...
...
@@ -1158,7 +1158,7 @@ LRESULT CC_WMMouseMove( HWND hDlg, LPARAM lParam )
/***********************************************************************
* CC_WMLButtonDown [internal]
*/
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LPCCPRIV
lpp
=
GetPropW
(
hDlg
,
szColourDialogProp
);
int
r
,
g
,
b
,
i
;
...
...
dlls/comdlg32/colordlg16.c
View file @
024a0683
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment