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
7342bce8
Commit
7342bce8
authored
Jun 02, 2010
by
Joel Holdsworth
Committed by
Alexandre Julliard
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Moved about panel code into about.c.
parent
cf7de41e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
60 deletions
+94
-60
Makefile.in
programs/winecfg/Makefile.in
+1
-0
about.c
programs/winecfg/about.c
+92
-0
main.c
programs/winecfg/main.c
+0
-60
winecfg.h
programs/winecfg/winecfg.h
+1
-0
No files found.
programs/winecfg/Makefile.in
View file @
7342bce8
...
@@ -7,6 +7,7 @@ APPMODE = -mwindows
...
@@ -7,6 +7,7 @@ APPMODE = -mwindows
IMPORTS
=
uuid comdlg32 comctl32 shell32 ole32 winmm shlwapi uxtheme user32 gdi32 advapi32 kernel32
IMPORTS
=
uuid comdlg32 comctl32 shell32 ole32 winmm shlwapi uxtheme user32 gdi32 advapi32 kernel32
C_SRCS
=
\
C_SRCS
=
\
about.c
\
appdefaults.c
\
appdefaults.c
\
audio.c
\
audio.c
\
drive.c
\
drive.c
\
...
...
programs/winecfg/about.c
0 → 100644
View file @
7342bce8
/*
* WineCfg about panel
*
* Copyright 2002 Jaco Greeff
* Copyright 2003 Dimitrie O. Paun
* Copyright 2003 Mike Hearn
* Copyright 2010 Joel Holdsworth
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include <windows.h>
#include <commctrl.h>
#include <wine/debug.h>
#include "resource.h"
#include "winecfg.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winecfg
);
INT_PTR
CALLBACK
AboutDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
char
*
owner
,
*
org
;
switch
(
uMsg
)
{
case
WM_NOTIFY
:
switch
(((
LPNMHDR
)
lParam
)
->
code
)
{
case
PSN_APPLY
:
/*save registration info to registry */
owner
=
get_text
(
hDlg
,
IDC_ABT_OWNER
);
org
=
get_text
(
hDlg
,
IDC_ABT_ORG
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
"RegisteredOwner"
,
owner
?
owner
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
"RegisteredOrganization"
,
org
?
org
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOwner"
,
owner
?
owner
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOrganization"
,
org
?
org
:
""
);
apply
();
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
HeapFree
(
GetProcessHeap
(),
0
,
org
);
break
;
}
break
;
case
WM_INITDIALOG
:
/* read owner and organization info from registry, load it into text box */
owner
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOwner"
,
""
);
org
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOrganization"
,
""
);
SetDlgItemText
(
hDlg
,
IDC_ABT_OWNER
,
owner
);
SetDlgItemText
(
hDlg
,
IDC_ABT_ORG
,
org
);
SendMessage
(
GetParent
(
hDlg
),
PSM_UNCHANGED
,
0
,
0
);
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
HeapFree
(
GetProcessHeap
(),
0
,
org
);
break
;
case
WM_COMMAND
:
switch
(
HIWORD
(
wParam
))
{
case
EN_CHANGE
:
/* enable apply button */
SendMessage
(
GetParent
(
hDlg
),
PSM_CHANGED
,
0
,
0
);
break
;
}
break
;
}
return
FALSE
;
}
programs/winecfg/main.c
View file @
7342bce8
...
@@ -60,66 +60,6 @@ PropSheetCallback (HWND hWnd, UINT uMsg, LPARAM lParam)
...
@@ -60,66 +60,6 @@ PropSheetCallback (HWND hWnd, UINT uMsg, LPARAM lParam)
return
0
;
return
0
;
}
}
static
INT_PTR
CALLBACK
AboutDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
char
*
owner
,
*
org
;
switch
(
uMsg
)
{
case
WM_NOTIFY
:
switch
(((
LPNMHDR
)
lParam
)
->
code
)
{
case
PSN_APPLY
:
/*save registration info to registry */
owner
=
get_text
(
hDlg
,
IDC_ABT_OWNER
);
org
=
get_text
(
hDlg
,
IDC_ABT_ORG
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
"RegisteredOwner"
,
owner
?
owner
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
"RegisteredOrganization"
,
org
?
org
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOwner"
,
owner
?
owner
:
""
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOrganization"
,
org
?
org
:
""
);
apply
();
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
HeapFree
(
GetProcessHeap
(),
0
,
org
);
break
;
}
break
;
case
WM_INITDIALOG
:
/* read owner and organization info from registry, load it into text box */
owner
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOwner"
,
""
);
org
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
"RegisteredOrganization"
,
""
);
SetDlgItemText
(
hDlg
,
IDC_ABT_OWNER
,
owner
);
SetDlgItemText
(
hDlg
,
IDC_ABT_ORG
,
org
);
SendMessage
(
GetParent
(
hDlg
),
PSM_UNCHANGED
,
0
,
0
);
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
HeapFree
(
GetProcessHeap
(),
0
,
org
);
break
;
case
WM_COMMAND
:
switch
(
HIWORD
(
wParam
))
{
case
EN_CHANGE
:
/* enable apply button */
SendMessage
(
GetParent
(
hDlg
),
PSM_CHANGED
,
0
,
0
);
break
;
}
break
;
}
return
FALSE
;
}
#define NUM_PROPERTY_PAGES 7
#define NUM_PROPERTY_PAGES 7
static
INT_PTR
static
INT_PTR
...
...
programs/winecfg/winecfg.h
View file @
7342bce8
...
@@ -87,6 +87,7 @@ INT_PTR CALLBACK AppDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -87,6 +87,7 @@ INT_PTR CALLBACK AppDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR
CALLBACK
LibrariesDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
LibrariesDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
AudioDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
AudioDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
ThemeDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
ThemeDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
INT_PTR
CALLBACK
AboutDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
/* Drive management */
/* Drive management */
BOOL
load_drives
(
void
);
BOOL
load_drives
(
void
);
...
...
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