X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=gui.cpp;h=831aef23ca06fe864cb292570195836e39f50ebb;hb=953c1a429d966133c9d03fc983c9098c4b67b9c2;hp=4fdd3ca72280bf4a8cc33e45a424ba5d31ac4c8b;hpb=7fdd3f6c44421a7c4872ecea56e550c19489c949;p=nssm.git diff --git a/gui.cpp b/gui.cpp index 4fdd3ca..831aef2 100644 --- a/gui.cpp +++ b/gui.cpp @@ -971,7 +971,7 @@ INT_PTR CALLBACK nssm_dlg(HWND window, UINT message, WPARAM w, LPARAM l) { int width = rect.right - rect.left; width -= (7 - columns) * 16; int height = rect.bottom - rect.top; - if (n < 4) height -= SendMessage(list, LB_GETITEMHEIGHT, 0, 0) * (4 - n); + if (n < 4) height -= (int) SendMessage(list, LB_GETITEMHEIGHT, 0, 0) * (4 - n); SetWindowPos(list, 0, 0, 0, width, height, SWP_NOMOVE | SWP_NOOWNERZORDER); } SendMessage(list, LB_SELITEMRANGE, 1, MAKELPARAM(0, n));