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
a6431c38
Commit
a6431c38
authored
Mar 27, 2006
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Mar 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commdlg: Properly set and retrieve colour value from combo box .
parent
e8fe7004
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fontdlg.c
dlls/commdlg/fontdlg.c
+3
-3
No files found.
dlls/commdlg/fontdlg.c
View file @
a6431c38
...
@@ -632,9 +632,9 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
...
@@ -632,9 +632,9 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
memcpy
(
name
,
strColorName
,
sizeof
(
strColorName
));
memcpy
(
name
,
strColorName
,
sizeof
(
strColorName
));
}
}
j
=
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
name
);
j
=
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
name
);
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_SETITEMDATA
,
j
,
textcolors
[
j
]);
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_SETITEMDATA
,
j
,
textcolors
[
i
]);
/* look for a fitting value in color combobox */
/* look for a fitting value in color combobox */
if
(
textcolors
[
j
]
==
lpcf
->
rgbColors
)
if
(
textcolors
[
i
]
==
lpcf
->
rgbColors
)
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_SETCURSEL
,
j
,
0
);
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_SETCURSEL
,
j
,
0
);
}
}
}
}
...
@@ -994,7 +994,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
...
@@ -994,7 +994,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
{
{
WINDOWINFO
wininfo
;
WINDOWINFO
wininfo
;
lpcf
->
rgbColors
=
textcolors
[
i
]
;
lpcf
->
rgbColors
=
SendDlgItemMessageW
(
hDlg
,
cmb4
,
CB_GETITEMDATA
,
i
,
0
)
;
wininfo
.
cbSize
=
sizeof
(
wininfo
);
wininfo
.
cbSize
=
sizeof
(
wininfo
);
if
(
GetWindowInfo
(
GetDlgItem
(
hDlg
,
stc5
),
&
wininfo
)
)
if
(
GetWindowInfo
(
GetDlgItem
(
hDlg
,
stc5
),
&
wininfo
)
)
...
...
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