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
dcc9c37e
Commit
dcc9c37e
authored
Apr 18, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove unnecessary use of class atoms.
parent
309a8c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
main.c
programs/regedit/main.c
+7
-24
No files found.
programs/regedit/main.c
View file @
dcc9c37e
...
...
@@ -63,8 +63,9 @@ WCHAR szTitle[MAX_LOADSTRING];
const
WCHAR
szFrameClass
[]
=
{
'R'
,
'E'
,
'G'
,
'E'
,
'D'
,
'I'
,
'T'
,
'_'
,
'F'
,
'R'
,
'A'
,
'M'
,
'E'
,
0
};
const
WCHAR
szChildClass
[]
=
{
'R'
,
'E'
,
'G'
,
'E'
,
'D'
,
'I'
,
'T'
,
0
};
static
BOOL
RegisterWindowClasses
(
HINSTANCE
hInstance
,
ATOM
*
hFrameWndClass
,
ATOM
*
hChildWndClass
)
static
BOOL
InitInstance
(
HINSTANCE
hInstance
,
int
nCmdShow
)
{
WCHAR
empty
=
0
;
WNDCLASSEXW
wndclass
=
{
0
};
/* Frame class */
...
...
@@ -75,33 +76,15 @@ static BOOL RegisterWindowClasses(HINSTANCE hInstance, ATOM *hFrameWndClass, ATO
wndclass
.
hIcon
=
LoadIconW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_REGEDIT
));
wndclass
.
hCursor
=
LoadCursorW
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
wndclass
.
lpszClassName
=
szFrameClass
;
wndclass
.
hIconSm
=
LoadImageW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_REGEDIT
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
if
(
!
(
*
hFrameWndClass
=
RegisterClassExW
(
&
wndclass
)))
return
FALSE
;
wndclass
.
hIconSm
=
LoadImageW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_REGEDIT
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
RegisterClassExW
(
&
wndclass
);
/* Child class */
wndclass
.
lpfnWndProc
=
ChildWndProc
;
wndclass
.
cbWndExtra
=
sizeof
(
HANDLE
);
wndclass
.
lpszClassName
=
szChildClass
;
if
(
!
(
*
hChildWndClass
=
RegisterClassExW
(
&
wndclass
)))
{
UnregisterClassW
(
szFrameClass
,
hInstance
);
return
FALSE
;
}
return
TRUE
;
}
static
BOOL
InitInstance
(
HINSTANCE
hInstance
,
int
nCmdShow
)
{
WCHAR
empty
=
0
;
ATOM
hFrameWndClass
,
hChildWndClass
;
if
(
!
RegisterWindowClasses
(
hInstance
,
&
hFrameWndClass
,
&
hChildWndClass
))
return
FALSE
;
RegisterClassExW
(
&
wndclass
);
hMenuFrame
=
LoadMenuW
(
hInstance
,
MAKEINTRESOURCEW
(
IDR_REGEDIT_MENU
));
hPopupMenus
=
LoadMenuW
(
hInstance
,
MAKEINTRESOURCEW
(
IDR_POPUP_MENUS
));
...
...
@@ -114,7 +97,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
nClipboardFormat
=
RegisterClipboardFormatW
(
strClipboardFormat
);
hFrameWnd
=
CreateWindowExW
(
0
,
MAKEINTRESOURCEW
(
hFrameWndClass
)
,
szTitle
,
hFrameWnd
=
CreateWindowExW
(
0
,
szFrameClass
,
szTitle
,
WS_OVERLAPPEDWINDOW
|
WS_EX_CLIENTEDGE
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
NULL
,
hMenuFrame
,
hInstance
,
NULL
/*lpParam*/
);
...
...
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