From 8fe19fa7bb589ac1d7d5fc8429904221481046a8 Mon Sep 17 00:00:00 2001 From: "Guy L. Albertelli" Date: Tue, 26 Feb 2002 00:38:42 +0000 Subject: [PATCH] Implement EM_FMTLINES message based on relay trace of native. --- dlls/comctl32/pager.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c index e60f734729c..c15f188a1dc 100644 --- a/dlls/comctl32/pager.c +++ b/dlls/comctl32/pager.c @@ -746,6 +746,23 @@ PAGER_Scroll(HWND hwnd, INT dir) } } +static LRESULT +PAGER_FmtLines(HWND hwnd) +{ + PAGER_INFO *infoPtr = PAGER_GetInfoPtr (hwnd); + + /* initiate NCCalcSize to resize client wnd and get size */ + SetWindowPos(hwnd, 0, 0,0,0,0, + SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | + SWP_NOZORDER | SWP_NOACTIVATE); + + SetWindowPos(infoPtr->hwndChild, 0, + 0,0,infoPtr->nWidth,infoPtr->nHeight, + 0); + + return DefWindowProcA (hwnd, EM_FMTLINES, 0, 0); +} + static LRESULT PAGER_Create (HWND hwnd, WPARAM wParam, LPARAM lParam) { @@ -1234,6 +1251,9 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) switch (uMsg) { + case EM_FMTLINES: + return PAGER_FmtLines(hwnd); + case PGM_FORWARDMOUSE: return PAGER_ForwardMouse (hwnd, wParam);