Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8461c770
Commit
8461c770
authored
Jan 16, 2004
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jan 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the About dialog code.
parent
2678595e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
24 deletions
+3
-24
Makefile.in
programs/regedit/Makefile.in
+1
-1
about.c
programs/regedit/about.c
+2
-23
No files found.
programs/regedit/Makefile.in
View file @
8461c770
...
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
MODULE
=
regedit.exe
APPMODE
=
gui
IMPORTS
=
msvcrt advapi32 kernel32
DELAYIMPORTS
=
comdlg32 comctl32 user32 gdi32
DELAYIMPORTS
=
shell32
comdlg32 comctl32 user32 gdi32
EXTRAINCL
=
-I
$(TOPSRCDIR)
/include/msvcrt
EXTRADEFS
=
-DNO_LIBWINE_PORT
...
...
programs/regedit/about.c
View file @
8461c770
...
...
@@ -21,33 +21,12 @@
#define WIN32_LEAN_AND_MEAN
/* Exclude rarely-used stuff from Windows headers */
#include <windows.h>
#include <commctrl.h>
#include <s
tdlib
.h>
#include <s
hellapi
.h>
#include <tchar.h>
#include <process.h>
#include <stdio.h>
#include "main.h"
static
INT_PTR
CALLBACK
AboutDialogWndProc
(
HWND
hDlg
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TCHAR
strLicense
[
0x1000
];
switch
(
message
)
{
case
WM_INITDIALOG
:
LoadString
(
hInst
,
IDS_LICENSE
,
strLicense
,
COUNT_OF
(
strLicense
));
SetDlgItemText
(
hDlg
,
IDC_LICENSE_EDIT
,
strLicense
);
return
TRUE
;
case
WM_COMMAND
:
if
((
LOWORD
(
wParam
)
==
IDOK
)
||
(
LOWORD
(
wParam
)
==
IDCANCEL
))
{
EndDialog
(
hDlg
,
LOWORD
(
wParam
));
return
TRUE
;
}
break
;
}
return
0
;
}
void
ShowAboutBox
(
HWND
hWnd
)
{
DialogBox
(
hInst
,
MAKEINTRESOURCE
(
IDD_ABOUTBOX
),
hWnd
,
AboutDialogWndProc
);
ShellAbout
(
hWnd
,
_T
(
"Registry Explorer"
),
_T
(
""
),
LoadIcon
(
hInst
,
MAKEINTRESOURCE
(
IDI_REGEDIT
))
);
}
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