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
fb12a3ec
Commit
fb12a3ec
authored
Apr 09, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Implement ImmGetRegisterWordStyle using loaded IME.
parent
f9414028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
6 deletions
+40
-6
imm.c
dlls/imm32/imm.c
+40
-6
No files found.
dlls/imm32/imm.c
View file @
fb12a3ec
...
...
@@ -1294,9 +1294,26 @@ DWORD WINAPI ImmGetProperty(HKL hKL, DWORD fdwIndex)
UINT
WINAPI
ImmGetRegisterWordStyleA
(
HKL
hKL
,
UINT
nItem
,
LPSTYLEBUFA
lpStyleBuf
)
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
hKL
,
nItem
,
lpStyleBuf
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
ImmHkl
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
TRACE
(
"(%p, %d, %p):
\n
"
,
hKL
,
nItem
,
lpStyleBuf
);
if
(
immHkl
->
hIME
&&
immHkl
->
pImeGetRegisterWordStyle
)
{
if
(
!
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,(
LPSTYLEBUFW
)
lpStyleBuf
);
else
{
STYLEBUFW
sbw
;
UINT
rc
;
rc
=
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,
&
sbw
);
WideCharToMultiByte
(
CP_ACP
,
0
,
sbw
.
szDescription
,
-
1
,
lpStyleBuf
->
szDescription
,
32
,
NULL
,
NULL
);
lpStyleBuf
->
dwStyle
=
sbw
.
dwStyle
;
return
rc
;
}
}
else
return
0
;
}
/***********************************************************************
...
...
@@ -1305,9 +1322,26 @@ UINT WINAPI ImmGetRegisterWordStyleA(
UINT
WINAPI
ImmGetRegisterWordStyleW
(
HKL
hKL
,
UINT
nItem
,
LPSTYLEBUFW
lpStyleBuf
)
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
hKL
,
nItem
,
lpStyleBuf
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
ImmHkl
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
TRACE
(
"(%p, %d, %p):
\n
"
,
hKL
,
nItem
,
lpStyleBuf
);
if
(
immHkl
->
hIME
&&
immHkl
->
pImeGetRegisterWordStyle
)
{
if
(
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,
lpStyleBuf
);
else
{
STYLEBUFA
sba
;
UINT
rc
;
rc
=
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,(
LPSTYLEBUFW
)
&
sba
);
MultiByteToWideChar
(
CP_ACP
,
0
,
sba
.
szDescription
,
-
1
,
lpStyleBuf
->
szDescription
,
32
);
lpStyleBuf
->
dwStyle
=
sba
.
dwStyle
;
return
rc
;
}
}
else
return
0
;
}
/***********************************************************************
...
...
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