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
6fb62f52
Commit
6fb62f52
authored
Jan 29, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the behaviour of the accelerator keys in dialogs according to
the Windows' one.
parent
97d05c80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
button.c
controls/button.c
+5
-0
dialog.c
windows/dialog.c
+2
-4
No files found.
controls/button.c
View file @
6fb62f52
...
...
@@ -265,6 +265,11 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
PAINT_BUTTON
(
wndPtr
,
style
,
ODA_DRAWENTIRE
);
break
;
case
BM_CLICK
:
SendMessageA
(
hWnd
,
WM_LBUTTONDOWN
,
0
,
0
);
SendMessageA
(
hWnd
,
WM_LBUTTONUP
,
0
,
0
);
break
;
case
BM_SETIMAGE
:
oldHbitmap
=
infoPtr
->
hImage
;
if
((
wndPtr
->
dwStyle
&
BS_BITMAP
)
||
(
wndPtr
->
dwStyle
&
BS_ICON
))
...
...
windows/dialog.c
View file @
6fb62f52
...
...
@@ -1174,10 +1174,8 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey )
}
else
if
(
dlgCode
&
DLGC_BUTTON
)
{
/* send command message as from the control */
SendMessageA
(
hwndDlg
,
WM_COMMAND
,
MAKEWPARAM
(
LOWORD
(
wndPtr
->
wIDmenu
),
BN_CLICKED
),
(
LPARAM
)
hwndControl
);
/* send BM_CLICK message to the control */
SendMessageA
(
hwndControl
,
BM_CLICK
,
0
,
0
);
}
RetVal
=
TRUE
;
...
...
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