}
if (ye>ys) {
- HBRUSH hbr;
- hbr = CreateSolidBrush(ME_GetBackColor(c.editor));
rc.left = xs;
rc.top = ys;
rc.right = xe;
rc.bottom = ye;
- FillRect(hDC, &rc, hbr);
- DeleteObject(hbr);
+ FillRect(hDC, &rc, c.editor->hbrBackground);
}
if (ys == c.pt.y) /* don't overwrite the top bar */
ys++;
}
+ if (editor->nTotalLength != editor->nLastTotalLength)
+ ME_SendRequestResize(editor, FALSE);
editor->nLastTotalLength = editor->nTotalLength;
ME_DestroyContext(&c);
}