Commit 212488d8 authored by John Klehm's avatar John Klehm Committed by Alexandre Julliard

wintab32: Support overlap statuses in WTOpen.

parent 8e42ca62
......@@ -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);
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment