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
5d49b3db
Commit
5d49b3db
authored
Apr 26, 2008
by
ByeongSik Jeon
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Implementation of the Imm{Get|Set}CandidateWindow.
parent
936e8473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
imm.c
dlls/imm32/imm.c
+35
-7
No files found.
dlls/imm32/imm.c
View file @
5d49b3db
...
...
@@ -746,11 +746,21 @@ DWORD WINAPI ImmGetCandidateListW(
* ImmGetCandidateWindow (IMM32.@)
*/
BOOL
WINAPI
ImmGetCandidateWindow
(
HIMC
hIMC
,
DWORD
dw
BufLen
,
LPCANDIDATEFORM
lpCandidate
)
HIMC
hIMC
,
DWORD
dw
Index
,
LPCANDIDATEFORM
lpCandidate
)
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
hIMC
,
dwBufLen
,
lpCandidate
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
InputContextData
*
data
=
(
InputContextData
*
)
hIMC
;
TRACE
(
"%p, %d, %p
\n
"
,
hIMC
,
dwIndex
,
lpCandidate
);
if
(
!
data
||
!
lpCandidate
)
return
FALSE
;
if
(
dwIndex
>=
(
sizeof
(
data
->
IMC
.
cfCandForm
)
/
sizeof
(
CANDIDATEFORM
))
)
return
FALSE
;
*
lpCandidate
=
data
->
IMC
.
cfCandForm
[
dwIndex
];
return
TRUE
;
}
/***********************************************************************
...
...
@@ -1610,9 +1620,27 @@ LRESULT WINAPI ImmRequestMessageW(HIMC hIMC, WPARAM wParam, LPARAM lParam)
BOOL
WINAPI
ImmSetCandidateWindow
(
HIMC
hIMC
,
LPCANDIDATEFORM
lpCandidate
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hIMC
,
lpCandidate
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
InputContextData
*
data
=
(
InputContextData
*
)
hIMC
;
TRACE
(
"(%p, %p)
\n
"
,
hIMC
,
lpCandidate
);
if
(
!
data
||
!
lpCandidate
)
return
FALSE
;
TRACE
(
"
\t
%x, %x, (%i,%i), (%i,%i - %i,%i)
\n
"
,
lpCandidate
->
dwIndex
,
lpCandidate
->
dwStyle
,
lpCandidate
->
ptCurrentPos
.
x
,
lpCandidate
->
ptCurrentPos
.
y
,
lpCandidate
->
rcArea
.
top
,
lpCandidate
->
rcArea
.
left
,
lpCandidate
->
rcArea
.
bottom
,
lpCandidate
->
rcArea
.
right
);
if
(
lpCandidate
->
dwIndex
>=
(
sizeof
(
data
->
IMC
.
cfCandForm
)
/
sizeof
(
CANDIDATEFORM
))
)
return
FALSE
;
data
->
IMC
.
cfCandForm
[
lpCandidate
->
dwIndex
]
=
*
lpCandidate
;
ImmNotifyIME
(
hIMC
,
NI_CONTEXTUPDATED
,
0
,
IMC_SETCANDIDATEPOS
);
ImmInternalSendIMENotify
(
data
,
IMN_SETCANDIDATEPOS
,
1
<<
lpCandidate
->
dwIndex
);
return
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