Changed SetWindowLong to SetWindowLongPtr and removed WNDPROC related casts

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6180 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2011-11-19 15:41:45 +00:00
parent 940a12b76c
commit 0617c9d3e7
10 changed files with 45 additions and 57 deletions

View file

@ -37,7 +37,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam,
switch (uMsg) {
case WM_CREATE:
SystemParametersInfo(SPI_GETWORKAREA, 0, &r, 0);
SetWindowLong(hwnd, GWL_STYLE, 0);
SetWindowLongPtr(hwnd, GWL_STYLE, 0);
SetWindowPos(hwnd, NULL,
r.left + (r.right - r.left - bm.bmWidth) / 2,
r.top + (r.bottom - r.top - bm.bmHeight) / 2,