[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
* Making Blended & Clink-Through window
We can use following window style option at CreateWindowEx().
WS_EX_TRANSPARENT -> click-though
WS_EX_LAYERED -> alpha-blended window.
We can changne configuration in runtime by using following API.
SetLayeredWindowAttributes(...)
: Layered window's attributes (Alpha value, Transparet color etc) can be changed.
SetWindowLong(...)
: Window의 Ex Style can be changed. We can set or clear "Click-Through" by setting or clearing WS_EX_TRANSPARENT attributes.
* We can remove menu
by set 'lpszMenuName' as 'NULL' at 'WNDCLASSEX' structure when 'CreateWindowEx' is called.
* We can change initial background color of Window
by creating brush of preferred color at 'hbrBackground'.
* We can remove 'titlebar' and 'boarder'
by set 'dwStype' parameter as 'WS_POPUP' style.
* (Issue) Maximized window covers Taskbar!
We can resolve this issue by using 'WM_GETMINMAXINFO' and 'SystemParametersInfo/SPI_GETWORKAREA'.
('WM_GETMINMAXINFO' is sent when Window is moved or Window's size is changed.)
Let's put following code in the handler of 'WM_GETMINMAXINFO'.
MINMAXINFO* pi = (MINMAXINFO*)lParam; RECT r; SystemParametersInfo(SPI_GETWORKAREA, 0, &r,0); memset(pi, 0x00, sizeof(MINMAXINFO)); pi->ptMaxSize.x = r.right - r.left; pi->ptMaxSize.y = r.bottom - r.top; pi->ptMaxPosition.x = r.left; pi->ptMaxPosition.y = r.top;
'Domain > Win32' 카테고리의 다른 글
windowsXP 에서 모든 동영상이 흑백으로만 재생될때... (0) | 2011.04.14 |
---|---|
[Win32] Function Calling Convention (0) | 2008.12.03 |
[Win32] IME Active중 VK Code얻기 (0) | 2007.06.25 |
[Win32] 한글 입력하기 (0) | 2007.06.23 |
[Tips] Cross-Compiling on Windows for Linux (0) | 2007.06.20 |