X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..e33e88b05ea89f292e476b668b5ee95a095e0ffb:/icuSources/samples/layout/layout.cpp diff --git a/icuSources/samples/layout/layout.cpp b/icuSources/samples/layout/layout.cpp index b9ee8823..8935fdc0 100644 --- a/icuSources/samples/layout/layout.cpp +++ b/icuSources/samples/layout/layout.cpp @@ -63,7 +63,7 @@ void InitParagraph(HWND hwnd, Context *context) si.nMin = 0; si.nMax = context->paragraph->getLineCount() - 1; si.nPage = context->height / context->paragraph->getLineHeight(); - SetScrollInfo(hwnd, SB_VERT, &si, true); + SetScrollInfo(hwnd, SB_VERT, &si, TRUE); } } @@ -211,7 +211,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) } si.fMask = SIF_POS; - SetScrollInfo(hwnd, SB_VERT, &si, true); + SetScrollInfo(hwnd, SB_VERT, &si, TRUE); GetScrollInfo(hwnd, SB_VERT, &si); context = (Context *) GetWindowLong(hwnd, 0); @@ -304,7 +304,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) context->paragraph = newParagraph; InitParagraph(hwnd, context); PrettyTitle(hwnd, szTitleName); - InvalidateRect(hwnd, NULL, true); + InvalidateRect(hwnd, NULL, TRUE); } }