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
9105cd88
Commit
9105cd88
authored
Feb 02, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement SetFocus and GetFocus.
parent
8c096167
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
threadmgr.c
dlls/msctf/threadmgr.c
+31
-4
No files found.
dlls/msctf/threadmgr.c
View file @
9105cd88
...
...
@@ -43,11 +43,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(msctf);
typedef
struct
tagACLMulti
{
const
ITfThreadMgrVtbl
*
ThreadMgrVtbl
;
LONG
refCount
;
ITfDocumentMgr
*
focus
;
}
ThreadMgr
;
static
void
ThreadMgr_Destructor
(
ThreadMgr
*
This
)
{
TRACE
(
"destroying %p
\n
"
,
This
);
if
(
This
->
focus
)
ITfDocumentMgr_Release
(
This
->
focus
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -125,15 +129,38 @@ static HRESULT WINAPI ThreadMgr_GetFocus( ITfThreadMgr* iface, ITfDocumentMgr
**
ppdimFocus
)
{
ThreadMgr
*
This
=
(
ThreadMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
ppdimFocus
)
return
E_INVALIDARG
;
*
ppdimFocus
=
This
->
focus
;
TRACE
(
"->%p
\n
"
,
This
->
focus
);
if
(
This
->
focus
==
NULL
)
return
S_FALSE
;
ITfDocumentMgr_AddRef
(
This
->
focus
);
return
S_OK
;
}
static
HRESULT
WINAPI
ThreadMgr_SetFocus
(
ITfThreadMgr
*
iface
,
ITfDocumentMgr
*
pdimFocus
)
{
ITfDocumentMgr
*
check
;
ThreadMgr
*
This
=
(
ThreadMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p) %p
\n
"
,
This
,
pdimFocus
);
if
(
!
pdimFocus
||
FAILED
(
IUnknown_QueryInterface
(
pdimFocus
,
&
IID_ITfDocumentMgr
,(
LPVOID
*
)
&
check
)))
return
E_INVALIDARG
;
if
(
This
->
focus
)
ITfDocumentMgr_Release
(
This
->
focus
);
This
->
focus
=
check
;
return
S_OK
;
}
static
HRESULT
WINAPI
ThreadMgr_AssociateFocus
(
ITfThreadMgr
*
iface
,
HWND
hwnd
,
...
...
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