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
dec10f8a
Commit
dec10f8a
authored
Oct 22, 2003
by
Mike Hearn
Committed by
Alexandre Julliard
Oct 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete support DOS version and winelook settings.
parent
46329e83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
main.c
programs/winecfg/main.c
+36
-5
No files found.
programs/winecfg/main.c
View file @
dec10f8a
...
...
@@ -36,6 +36,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winecfg
);
#define versionSection (appSettings == EDITING_GLOBAL ? "Version" : (getSectionForApp("Version")))
#define tweakSection (appSettings == EDITING_GLOBAL ? "Tweak.Layout" : (getSectionForApp("Tweak.Layout")))
void
CALLBACK
PropSheetCallback
(
HWND
hWnd
,
UINT
uMsg
,
LPARAM
lParam
)
{
...
...
@@ -60,9 +64,9 @@ initGeneralDlg (HWND hDlg)
{
int
i
;
const
VERSION_DESC
*
pVer
=
NULL
;
char
*
curWinVer
=
getConfigValue
(
"Version"
,
"Windows"
,
"win98"
);
char
*
curDOSVer
=
getConfigValue
(
"Version"
,
"DOS"
,
"6.22"
);
char
*
curWineLook
=
getConfigValue
(
"Tweak.Layout"
,
"WineLook"
,
"win95"
);
char
*
curWinVer
=
getConfigValue
(
versionSection
,
"Windows"
,
"win98"
);
char
*
curDOSVer
=
getConfigValue
(
versionSection
,
"DOS"
,
"6.22"
);
char
*
curWineLook
=
getConfigValue
(
tweakSection
,
"WineLook"
,
"win95"
);
/* normalize the version strings */
if
(
!
strcmp
(
curWinVer
,
"win2000"
)
||
!
strcmp
(
curWinVer
,
"nt2k"
)
||
!
strcmp
(
curWinVer
,
"nt2000"
))
{
...
...
@@ -118,7 +122,10 @@ INT_PTR CALLBACK
GeneralDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
{
case
WM_NOTIFY
:
if
(((
LPNMHDR
)
lParam
)
->
code
!=
PSN_SETACTIVE
)
break
;
/* otherwise fall through, we want to refresh the page as well */
case
WM_INITDIALOG
:
initGeneralDlg
(
hDlg
);
break
;
...
...
@@ -133,9 +140,33 @@ GeneralDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
while
(
selection
>
0
)
{
desc
++
;
selection
--
;
}
addTransaction
(
"Version"
,
"Windows"
,
ACTION_SET
,
desc
->
szVersion
);
addTransaction
(
versionSection
,
"Windows"
,
ACTION_SET
,
desc
->
szVersion
);
}
break
;
case
IDC_WINELOOK
:
if
(
HIWORD
(
wParam
)
==
CBN_SELCHANGE
)
{
/* user changed the wine look combo box */
int
selection
=
SendDlgItemMessage
(
hDlg
,
IDC_WINELOOK
,
CB_GETCURSEL
,
0
,
0
);
VERSION_DESC
*
desc
=
getWinelook
();
while
(
selection
>
0
)
{
desc
++
;
selection
--
;
}
addTransaction
(
tweakSection
,
"WineLook"
,
ACTION_SET
,
desc
->
szVersion
);
}
break
;
case
IDC_DOSVER
:
if
(
HIWORD
(
wParam
)
==
CBN_SELCHANGE
)
{
/* user changed the dos version combo box */
int
selection
=
SendDlgItemMessage
(
hDlg
,
IDC_WINELOOK
,
CB_GETCURSEL
,
0
,
0
);
VERSION_DESC
*
desc
=
getDOSVersions
();
while
(
selection
>
0
)
{
desc
++
;
selection
--
;
}
addTransaction
(
versionSection
,
"DOS"
,
ACTION_SET
,
desc
->
szVersion
);
}
}
break
;
...
...
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