Further context opening.

This commit is contained in:
yaw-man 2022-08-08 18:32:14 -03:00
parent 4b72442df0
commit d6380607a7
1 changed files with 20 additions and 0 deletions

View File

@ -31,7 +31,27 @@ 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);
}
};