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
06999c50
Commit
06999c50
authored
Feb 10, 2007
by
Anatoly Lyutin
Committed by
Alexandre Julliard
Feb 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Added range of value for all up-down controls on config dialog.
parent
bea5ed4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
dialog.c
programs/wineconsole/dialog.c
+15
-7
No files found.
programs/wineconsole/dialog.c
View file @
06999c50
...
...
@@ -599,17 +599,25 @@ static INT_PTR WINAPI WCUSER_FontDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPA
static
INT_PTR
WINAPI
WCUSER_ConfigDlgProc
(
HWND
hDlg
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
struct
dialog_info
*
di
;
int
nMaxUD
=
2000
;
switch
(
msg
)
{
case
WM_INITDIALOG
:
di
=
(
struct
dialog_info
*
)((
PROPSHEETPAGEA
*
)
lParam
)
->
lParam
;
di
->
hDlg
=
hDlg
;
SetWindowLongPtr
(
hDlg
,
DWLP_USER
,
(
DWORD_PTR
)
di
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_SB_WIDTH
,
di
->
config
.
sb_width
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_SB_HEIGHT
,
di
->
config
.
sb_height
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_WIN_WIDTH
,
di
->
config
.
win_width
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_WIN_HEIGHT
,
di
->
config
.
win_height
,
FALSE
);
di
=
(
struct
dialog_info
*
)((
PROPSHEETPAGEA
*
)
lParam
)
->
lParam
;
di
->
hDlg
=
hDlg
;
SetWindowLongPtr
(
hDlg
,
DWLP_USER
,
(
DWORD_PTR
)
di
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_SB_WIDTH
,
di
->
config
.
sb_width
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_SB_HEIGHT
,
di
->
config
.
sb_height
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_WIN_WIDTH
,
di
->
config
.
win_width
,
FALSE
);
SetDlgItemInt
(
hDlg
,
IDC_CNF_WIN_HEIGHT
,
di
->
config
.
win_height
,
FALSE
);
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_CNF_WIN_HEIGHT_UD
),
UDM_SETRANGE
,
(
WPARAM
)
0
,
MAKELONG
(
nMaxUD
,
0
));
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_CNF_WIN_WIDTH_UD
),
UDM_SETRANGE
,
(
WPARAM
)
0
,
MAKELONG
(
nMaxUD
,
0
));
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_CNF_SB_HEIGHT_UD
),
UDM_SETRANGE
,
(
WPARAM
)
0
,
MAKELONG
(
nMaxUD
,
0
));
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_CNF_SB_WIDTH_UD
),
UDM_SETRANGE
,
(
WPARAM
)
0
,
MAKELONG
(
nMaxUD
,
0
));
SendDlgItemMessage
(
hDlg
,
IDC_CNF_CLOSE_EXIT
,
BM_SETCHECK
,
(
di
->
config
.
exit_on_die
)
?
BST_CHECKED
:
BST_UNCHECKED
,
0L
);
{
...
...
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