git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7fdd3f6
)
More compiler food.
author
Iain Patterson
<me@iain.cx>
Thu, 9 Jan 2014 08:56:22 +0000
(08:56 +0000)
committer
Iain Patterson
<me@iain.cx>
Thu, 9 Jan 2014 09:03:59 +0000
(09:03 +0000)
Om nom nom.
gui.cpp
patch
|
blob
|
history
diff --git
a/gui.cpp
b/gui.cpp
index
4fdd3ca
..
831aef2
100644
(file)
--- 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;
\r
int height = rect.bottom - rect.top;
\r
int width = rect.right - rect.left;
width -= (7 - columns) * 16;
\r
int height = rect.bottom - rect.top;
\r
- 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);
\r
}
\r
SendMessage(list, LB_SELITEMRANGE, 1, MAKELPARAM(0, n));
\r
SetWindowPos(list, 0, 0, 0, width, height, SWP_NOMOVE | SWP_NOOWNERZORDER);
\r
}
\r
SendMessage(list, LB_SELITEMRANGE, 1, MAKELPARAM(0, n));
\r