wintab32: Support overlap statuses in WTOpen.

This commit is contained in:
John Klehm 2008-04-29 00:21:30 -05:00 committed by Alexandre Julliard
parent 8e42ca626e
commit 212488d846
1 changed files with 12 additions and 3 deletions

View File

@ -435,13 +435,12 @@ HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
{
LPOPENCONTEXT newcontext;
TRACE("(%p, %p, %u)\n", hWnd, lpLogCtx, fEnable);
TRACE("hWnd=%p, lpLogCtx=%p, fEnable=%u\n", hWnd, lpLogCtx, fEnable);
DUMPCONTEXT(*lpLogCtx);
newcontext = HeapAlloc(GetProcessHeap(), 0 , sizeof(OPENCONTEXT));
newcontext->context = *lpLogCtx;
newcontext->hwndOwner = hWnd;
newcontext->enabled = fEnable;
newcontext->ActiveCursor = -1;
newcontext->QueueSize = 10;
newcontext->PacketsQueued = 0;
@ -458,7 +457,17 @@ HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
TABLET_PostTabletMessage(newcontext, _WT_CTXOPEN(newcontext->context.lcMsgBase), (WPARAM)newcontext->handle,
newcontext->context.lcStatus, TRUE);
newcontext->context.lcStatus = CXS_ONTOP;
if (fEnable)
{
newcontext->enabled = TRUE;
/* TODO: Add to top of overlap order */
newcontext->context.lcStatus = CXS_ONTOP;
}
else
{
newcontext->enabled = FALSE;
newcontext->context.lcStatus = CXS_DISABLED;
}
TABLET_PostTabletMessage(newcontext, _WT_CTXOVERLAP(newcontext->context.lcMsgBase),
(WPARAM)newcontext->handle,