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
5c3aa814
Commit
5c3aa814
authored
Dec 05, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Implement ImmAssociateContextEx.
parent
d7f9d92b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
+37
-3
imm.c
dlls/imm32/imm.c
+37
-3
No files found.
dlls/imm32/imm.c
View file @
5c3aa814
...
...
@@ -498,14 +498,48 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
return
old
;
}
/*
* Helper function for ImmAssociateContextEx
*/
static
BOOL
CALLBACK
_ImmAssociateContextExEnumProc
(
HWND
hwnd
,
LPARAM
lParam
)
{
HIMC
hImc
=
(
HIMC
)
lParam
;
ImmAssociateContext
(
hwnd
,
hImc
);
return
TRUE
;
}
/***********************************************************************
* ImmAssociateContextEx (IMM32.@)
*/
BOOL
WINAPI
ImmAssociateContextEx
(
HWND
hWnd
,
HIMC
hIMC
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %d): stub
\n
"
,
hWnd
,
hIMC
,
dwFlags
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
TRACE
(
"(%p, %p, %d): stub
\n
"
,
hWnd
,
hIMC
,
dwFlags
);
if
(
!
IMM_GetThreadData
()
->
defaultContext
)
IMM_GetThreadData
()
->
defaultContext
=
ImmCreateContext
();
if
(
dwFlags
==
IACE_DEFAULT
)
{
ImmAssociateContext
(
hWnd
,
IMM_GetThreadData
()
->
defaultContext
);
return
TRUE
;
}
else
if
(
dwFlags
==
IACE_IGNORENOCONTEXT
)
{
if
(
GetPropW
(
hWnd
,
szwWineIMCProperty
)
>
0
)
ImmAssociateContext
(
hWnd
,
hIMC
);
return
TRUE
;
}
else
if
(
dwFlags
==
IACE_CHILDREN
)
{
EnumChildWindows
(
hWnd
,
_ImmAssociateContextExEnumProc
,(
LPARAM
)
hIMC
);
return
TRUE
;
}
else
{
ERR
(
"Unknown dwFlags 0x%x
\n
"
,
dwFlags
);
return
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