No more weird border
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2460 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0a2cb77684
commit
bd996b8562
3 changed files with 10 additions and 16 deletions
|
@ -1,7 +1,3 @@
|
||||||
/* I modified the window styles to eliminate the annoying title bar.
|
|
||||||
8th February 2003 Ximon Eighteen aka Sunjammer */
|
|
||||||
|
|
||||||
|
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <Mmsystem.h>
|
#include <Mmsystem.h>
|
||||||
#include "../exdll/exdll.h"
|
#include "../exdll/exdll.h"
|
||||||
|
@ -26,8 +22,6 @@ extern "C" void __declspec(dllexport) Init(HWND hwndParent, int string_size, cha
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetImage(hwndParent, string_size, variables, stacktop);
|
|
||||||
|
|
||||||
WNDCLASSEX wc = {
|
WNDCLASSEX wc = {
|
||||||
sizeof(WNDCLASSEX),
|
sizeof(WNDCLASSEX),
|
||||||
CS_VREDRAW|CS_HREDRAW,
|
CS_VREDRAW|CS_HREDRAW,
|
||||||
|
@ -48,14 +42,14 @@ extern "C" void __declspec(dllexport) Init(HWND hwndParent, int string_size, cha
|
||||||
}
|
}
|
||||||
|
|
||||||
hWndImage = CreateWindowEx(
|
hWndImage = CreateWindowEx(
|
||||||
WS_EX_TOOLWINDOW|WS_EX_LEFT|WS_EX_LTRREADING|WS_EX_RIGHTSCROLLBAR,
|
WS_EX_TOOLWINDOW,
|
||||||
"NSISBGImage",
|
"NSISBGImage",
|
||||||
0,
|
0,
|
||||||
WS_POPUPWINDOW|WS_VISIBLE|WS_CLIPSIBLINGS|WS_OVERLAPPED,
|
WS_CLIPSIBLINGS|WS_POPUP,
|
||||||
(GetSystemMetrics(SM_CXSCREEN)-x)/2,
|
0,
|
||||||
(GetSystemMetrics(SM_CYSCREEN)-y)/2,
|
0,
|
||||||
x,
|
0,
|
||||||
y,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
g_hInstance,
|
g_hInstance,
|
||||||
|
@ -66,7 +60,9 @@ extern "C" void __declspec(dllexport) Init(HWND hwndParent, int string_size, cha
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowLong(hWndImage, GWL_STYLE, WS_VISIBLE);
|
ShowWindow(hWndImage, SW_SHOW);
|
||||||
|
|
||||||
|
SetImage(hwndParent, string_size, variables, stacktop);
|
||||||
|
|
||||||
oldProc = (void *)SetWindowLong(hwndParent, GWL_WNDPROC, (long)WndProc);
|
oldProc = (void *)SetWindowLong(hwndParent, GWL_WNDPROC, (long)WndProc);
|
||||||
}
|
}
|
||||||
|
@ -184,7 +180,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
SetWindowPos(hWndImage, hWndParent, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
|
SetWindowPos(hWndImage, hWndParent, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
|
||||||
}
|
}
|
||||||
return CallWindowProc(
|
return CallWindowProc(
|
||||||
(long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long))oldProc,
|
(long (__stdcall *)(HWND,unsigned int,unsigned int,long))oldProc,
|
||||||
hwnd,
|
hwnd,
|
||||||
message,
|
message,
|
||||||
wParam,
|
wParam,
|
||||||
|
|
Binary file not shown.
2
TODO.txt
2
TODO.txt
|
@ -28,8 +28,6 @@ EXAMPLES
|
||||||
|
|
||||||
OTHER PLUGINS
|
OTHER PLUGINS
|
||||||
|
|
||||||
* BgImage - SetImage /RESIZETOFIT doesn't work
|
|
||||||
|
|
||||||
* nsExec - live output
|
* nsExec - live output
|
||||||
|
|
||||||
-- Before NSIS 2 Final --
|
-- Before NSIS 2 Final --
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue