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
eb9d0e92
Commit
eb9d0e92
authored
Mar 15, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add all needed accelerators to regedit. Cleanups.
parent
65be0d1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
main.c
programs/regedit/main.c
+4
-18
rsrc.rc
programs/regedit/rsrc.rc
+10
-0
No files found.
programs/regedit/main.c
View file @
eb9d0e92
...
...
@@ -151,29 +151,15 @@ int APIENTRY WinMain(HINSTANCE hInstance,
{
MSG
msg
;
HACCEL
hAccel
;
/*
int hCrt;
FILE *hf;
AllocConsole();
hCrt = _open_osfhandle((long)GetStdHandle(STD_OUTPUT_HANDLE), _O_TEXT);
hf = _fdopen(hCrt, "w");
*stdout = *hf;
setvbuf(stdout, NULL, _IONBF, 0);
wprintf(L"command line exit, hInstance = %d\n", hInstance);
getch();
FreeConsole();
return 0;
*/
if
(
ProcessCmdLine
(
lpCmdLine
))
{
return
0
;
}
/* Initialize global strings */
LoadString
(
hInstance
,
IDS_APP_TITLE
,
szTitle
,
MAX_LOADSTRING
);
LoadString
(
hInstance
,
IDC_REGEDIT_FRAME
,
szFrameClass
,
MAX_LOADSTRING
);
LoadString
(
hInstance
,
IDC_REGEDIT
,
szChildClass
,
MAX_LOADSTRING
);
LoadString
(
hInstance
,
IDS_APP_TITLE
,
szTitle
,
COUNT_OF
(
szTitle
)
);
LoadString
(
hInstance
,
IDC_REGEDIT_FRAME
,
szFrameClass
,
COUNT_OF
(
szFrameClass
)
);
LoadString
(
hInstance
,
IDC_REGEDIT
,
szChildClass
,
COUNT_OF
(
szChildClass
)
);
/* Store instance handle in our global variable */
hInst
=
hInstance
;
...
...
@@ -186,7 +172,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
/* Main message loop */
while
(
GetMessage
(
&
msg
,
(
HWND
)
NULL
,
0
,
0
))
{
if
(
!
TranslateAccelerator
(
msg
.
hw
nd
,
hAccel
,
&
msg
)
&&
if
(
!
TranslateAccelerator
(
hFrameW
nd
,
hAccel
,
&
msg
)
&&
!
IsDialogMessage
(
hFrameWnd
,
&
msg
))
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
...
...
programs/regedit/rsrc.rc
View file @
eb9d0e92
...
...
@@ -25,6 +25,16 @@
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDC_REGEDIT ACCELERATORS
{
"^F", ID_EDIT_FIND
"^P", ID_REGISTRY_PRINT
VK_DELETE, ID_EDIT_DELETE, VIRTKEY
VK_F1, ID_HELP_HELPTOPICS, VIRTKEY
VK_F3, ID_EDIT_FINDNEXT, VIRTKEY
VK_F5, ID_VIEW_REFRESH, VIRTKEY
}
#include "resource.rc"
/* include localised resources */
...
...
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