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
780bb796
Commit
780bb796
authored
Nov 25, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for national characters as accelerators in dialogs.
parent
2fa0c66c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
dialog.c
windows/dialog.c
+15
-7
No files found.
windows/dialog.c
View file @
780bb796
...
...
@@ -22,9 +22,7 @@
#include "drive.h"
#include "heap.h"
#include "win.h"
#include "ldt.h"
#include "user.h"
#include "winproc.h"
#include "message.h"
#include "queue.h"
#include "debugtools.h"
...
...
@@ -1267,6 +1265,9 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey )
{
/* find the accelerator key */
LPWSTR
p
=
wndPtr
->
text
-
2
;
char
a_char
=
vKey
;
WCHAR
w_char
=
0
;
do
{
p
=
strchrW
(
p
+
2
,
'&'
);
...
...
@@ -1274,8 +1275,8 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey )
while
(
p
!=
NULL
&&
p
[
1
]
==
'&'
);
/* and check if it's the one we're looking for */
/* FIXME: convert vKey to unicode */
if
(
p
!=
NULL
&&
toupperW
(
p
[
1
]
)
==
(
WCHAR
)
toupper
(
vKey
)
)
MultiByteToWideChar
(
CP_ACP
,
0
,
&
a_char
,
1
,
&
w_char
,
1
);
if
(
p
!=
NULL
&&
toupperW
(
p
[
1
]
)
==
toupperW
(
w_char
)
)
{
if
((
dlgCode
&
DLGC_STATIC
)
||
(
wndPtr
->
dwStyle
&
0x0f
)
==
BS_GROUPBOX
)
...
...
@@ -1385,6 +1386,7 @@ static BOOL DIALOG_IsDialogMessage( HWND hwnd, HWND hwndDlg,
/* Only the key messages get special processing */
if
((
message
!=
WM_KEYDOWN
)
&&
(
message
!=
WM_SYSKEYDOWN
)
&&
(
message
!=
WM_SYSCHAR
)
&&
(
message
!=
WM_CHAR
))
return
FALSE
;
...
...
@@ -1462,6 +1464,10 @@ static BOOL DIALOG_IsDialogMessage( HWND hwnd, HWND hwndDlg,
return
TRUE
;
}
break
;
case
WM_SYSKEYDOWN
:
*
translate
=
TRUE
;
break
;
}
/* If we get here, the message has not been treated specially */
...
...
@@ -1484,7 +1490,6 @@ BOOL16 WINAPI WIN16_IsDialogMessage16( HWND16 hwndDlg, SEGPTR msg16 )
return
FALSE
;
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessage16
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg16
);
...
...
@@ -1521,7 +1526,6 @@ BOOL WINAPI IsDialogMessageA( HWND hwndDlg, LPMSG msg )
return
FALSE
;
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessageA
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
...
...
@@ -1547,7 +1551,6 @@ BOOL WINAPI IsDialogMessageW( HWND hwndDlg, LPMSG msg )
return
FALSE
;
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessageW
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
...
...
@@ -2419,6 +2422,11 @@ BOOL WINAPI DlgDirSelectComboBoxExW( HWND hwnd, LPWSTR str, INT len,
INT16
WINAPI
DlgDirList16
(
HWND16
hDlg
,
LPSTR
spec
,
INT16
idLBox
,
INT16
idStatic
,
UINT16
attrib
)
{
/* according to Win16 docs, DDL_DRIVES should make DDL_EXCLUSIVE
* be set automatically (this is different in Win32, and
* DIALOG_DlgDirList sends Win32 messages to the control,
* so do it here) */
if
(
attrib
&
DDL_DRIVES
)
attrib
|=
DDL_EXCLUSIVE
;
return
DIALOG_DlgDirList
(
hDlg
,
spec
,
idLBox
,
idStatic
,
attrib
,
FALSE
);
}
...
...
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