Further context opening.
This commit is contained in:
parent
4b72442df0
commit
d6380607a7
|
@ -31,6 +31,26 @@ private:
|
|||
|
||||
void NewContext() {
|
||||
ctx.lcOptions |= CXO_SYSTEM;
|
||||
gpWTInfoA(WTI_DEFSYSCTX, 0, &ctx);
|
||||
ctx.lcOptions |= CXO_MESSAGES; //TODO: checker çela
|
||||
ctx.lcPktData = PACKETDATA;
|
||||
ctx.lcPktMode = PACKETMODE;
|
||||
|
||||
|
||||
gpWTInfoA(WTI_DEVICES, DVC_X, &TabletX);
|
||||
gpWTInfoA(WTI_DEVICES, DVC_Y, &TabletY);
|
||||
|
||||
ctx.lcInOrgX = 0;
|
||||
ctx.lcInOrgY = 0;
|
||||
ctx.lcInExtX = TabletX.axMax;
|
||||
ctx.lcInExtY = TabletY.axMax;
|
||||
|
||||
ctx.lcOutOrgX = GetSystemMetrics(SM_XVIRTUALSCREEN);
|
||||
ctx.lcOutOrgY = GetSystemMetrics(SM_YVIRTUALSCREEN);
|
||||
ctx.lcOutExtX = GetSystemMetrics(SM_CXVIRTUALSCREEN);
|
||||
ctx.lcOutExtY = -GetSystemMetrics(SM_CYVIRTUALSCREEN);
|
||||
|
||||
hctx = gpWTOpenA(, &ctx, FALSE);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue