Revert "[COMCTL32] Pager: Fix PGM_RECALCSIZE behaviour (#7875)"

This reverts commit 80eb313eed.
This commit is contained in:
Katayama Hirofumi MZ
2025-04-19 05:42:25 +09:00
committed by GitHub
parent 3fe4b41f20
commit 2318854fe8

View File

@@ -86,9 +86,6 @@ typedef struct
INT direction; /* direction of the scroll, (e.g. PGF_SCROLLUP) */ INT direction; /* direction of the scroll, (e.g. PGF_SCROLLUP) */
WCHAR *pwszBuffer;/* text buffer for converted notifications */ WCHAR *pwszBuffer;/* text buffer for converted notifications */
INT nBufferSize;/* size of the above buffer */ INT nBufferSize;/* size of the above buffer */
#ifdef __REACTOS__
BOOL m_bProcessingReCalcSize;
#endif
} PAGER_INFO; } PAGER_INFO;
#define TIMERID1 1 #define TIMERID1 1
@@ -426,15 +423,6 @@ PAGER_RecalcSize(PAGER_INFO *infoPtr)
{ {
TRACE("[%p]\n", infoPtr->hwndSelf); TRACE("[%p]\n", infoPtr->hwndSelf);
#ifdef __REACTOS__
if (!infoPtr->m_bProcessingReCalcSize)
{
infoPtr->m_bProcessingReCalcSize = TRUE;
/* NOTE: Posting a recalc message to ourselves, not actually an edit control message */
PostMessageW(infoPtr->hwndSelf, EM_FMTLINES, 0, 0);
}
return 0;
#else
if (infoPtr->hwndChild) if (infoPtr->hwndChild)
{ {
INT scrollRange = PAGER_GetScrollRange(infoPtr, TRUE); INT scrollRange = PAGER_GetScrollRange(infoPtr, TRUE);
@@ -449,7 +437,6 @@ PAGER_RecalcSize(PAGER_INFO *infoPtr)
} }
return 1; return 1;
#endif
} }
@@ -568,15 +555,8 @@ PAGER_Scroll(PAGER_INFO* infoPtr, INT dir)
} }
static LRESULT static LRESULT
#ifdef __REACTOS__
PAGER_FmtLines(PAGER_INFO *infoPtr)
#else
PAGER_FmtLines(const PAGER_INFO *infoPtr) PAGER_FmtLines(const PAGER_INFO *infoPtr)
#endif
{ {
#ifdef __REACTOS__
infoPtr->m_bProcessingReCalcSize = FALSE;
#endif
/* initiate NCCalcSize to resize client wnd and get size */ /* initiate NCCalcSize to resize client wnd and get size */
SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0, SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0,
SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE |