Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 23 of file context.c.
Referenced by ME_CharFromPointCursor(), ME_GetCursorCoordinates(), ME_InvalidateMarkedParagraphs(), ME_MakeFirstParagraph(), ME_PaintContent(), ME_PointFromChar(), and ME_WrapMarkedParagraphs().
{ c->nSequence = editor->nSequence++; c->hDC = hDC; c->editor = editor; c->pt.x = 0; c->pt.y = 0; c->hbrMargin = CreateSolidBrush(RGB(224,224,224)); c->rcView = editor->rcFormat; if (hDC) { c->dpi.cx = GetDeviceCaps(hDC, LOGPIXELSX); c->dpi.cy = GetDeviceCaps(hDC, LOGPIXELSY); } else { c->dpi.cx = c->dpi.cy = 96; } if (editor->nAvailWidth) c->nAvailWidth = ME_twips2pointsX(c, editor->nAvailWidth); else c->nAvailWidth = c->rcView.right - c->rcView.left; }