mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
transparent screen picture
svn path=/trunk/; revision=21748
This commit is contained in:
parent
0c30ab932a
commit
f7fc8841b0
4 changed files with 4 additions and 2 deletions
|
@ -592,7 +592,7 @@ INT_PTR CALLBACK BackgroundPageProc(HWND hwndDlg,
|
||||||
hdcMem = CreateCompatibleDC(hdc);
|
hdcMem = CreateCompatibleDC(hdc);
|
||||||
SelectObject(hdcMem, hBitmap);
|
SelectObject(hdcMem, hBitmap);
|
||||||
|
|
||||||
BitBlt(hdc, 98, 0, cxSource, cySource, hdcMem, 0, 0, SRCCOPY);
|
TransparentBlt(hdc, 98, 0, cxSource, cySource, hdcMem, 0, 0, cxSource, cySource, 0xFF80FF);
|
||||||
|
|
||||||
DeleteDC(hdcMem);
|
DeleteDC(hdcMem);
|
||||||
EndPaint(hwndDlg, &ps);
|
EndPaint(hwndDlg, &ps);
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_IE">0x600</define>
|
<define name="_WIN32_IE">0x600</define>
|
||||||
<define name="_WIN32_WINNT">0x501</define>
|
<define name="_WIN32_WINNT">0x501</define>
|
||||||
|
<define name="WINVER">0x501</define>
|
||||||
<define name="_WIN32" />
|
<define name="_WIN32" />
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>user32</library>
|
<library>user32</library>
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
<library>setupapi</library>
|
<library>setupapi</library>
|
||||||
<library>shell32</library>
|
<library>shell32</library>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
|
<library>msimg32</library>
|
||||||
<file>classinst.c</file>
|
<file>classinst.c</file>
|
||||||
<file>desk.c</file>
|
<file>desk.c</file>
|
||||||
<file>background.c</file>
|
<file>background.c</file>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
@ -582,7 +582,7 @@ SettingsPageProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lPar
|
||||||
hdcMem = CreateCompatibleDC(hdc);
|
hdcMem = CreateCompatibleDC(hdc);
|
||||||
SelectObject(hdcMem, hBitmap);
|
SelectObject(hdcMem, hBitmap);
|
||||||
|
|
||||||
BitBlt(hdc, 98, 0, cxSource, cySource, hdcMem, 0, 0, SRCCOPY);
|
TransparentBlt(hdc, 98, 0, cxSource, cySource, hdcMem, 0, 0, cxSource, cySource, 0xFF80FF);
|
||||||
|
|
||||||
DeleteDC(hdcMem);
|
DeleteDC(hdcMem);
|
||||||
EndPaint(hwndDlg, &ps);
|
EndPaint(hwndDlg, &ps);
|
||||||
|
|
Loading…
Reference in a new issue