[转] VC implements screen darkening effect

xiaoxiao2021-03-06  102

VC implementation screen darker effect

Body HDC HDC; // Width of the Screen Int Scrwidth, Scrheight; if (M_Bool) {Byte Bybits [] = {0x55, 0x0, 0xAa, 0x0, 0x55, 0x0, 0xAa, 0x0, 0x55, 0x0, 0xAA, 0x0 , 0x55, 0x0, 0xaa, 0x0}; hbitmap = :: createbitmap (8, 8, 1, 1, bybits); hbrush = :: createpatternbrush (hbitmap); hdc = :: getdc (null); scrwidth = :: getSystemMetrics (SM_CXSCREEN); SCRHeight = :: GetSystemMetrics (SM_CYSCREEN); :: SelectObject (hdc, hBrush); // 0xA000C9 :: PatBlt (hdc, 0,0, SCRWidth, SCRHeight, 0xA000C9); :: DeleteObject (hBrush);: : ReleaseDC (0, HDC);} else // Heavy picture :: InvalIDateRect (null, 0, 1); finished, this source code: http://www.vchelp.net/asp/ibr_upload/656. Rar

Author Blog:

http://blog.9cbs.net/tashin/

转载请注明原文地址:https://www.9cbs.com/read-97792.html

New Post(0)