![]() ID3D11DeviceContext* m_pD3D11DeviceContext = NULL LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) #pragma comment(linker,"\"/manifestdependency:type='win32' \ Is it possible for me to use all possible RGB color? Because I don't want the white color to became invisible in my window.įor the test, I left the caption and the drawing is done on Right-Click (I set opacity 0.5 for black and white) : That is, I wanted to draw a semi-transparent white rectangle.Īlso, I see that both SetLayeredWindowAttributes and UpdateLayeredWindow accepts COLORREF, that this color will be transparent. But here is the simpler example: // Inside WM_PAINT The above image is what I want to achieve. Someone also told me that I can't ignore WM_PAINT completely, which makes me more confused. Because both post that I read doesn't handle WM_PAINT at all. However, I am confused, whether I should draw on the WM_PAINT as usual or just use UpdateLayeredWindow() and left WM_PAINT unhandled. ![]() I have read some other posts about this ( post1, post2). Here is the expected window that I am trying to build (the water and the boat is my desktop wallpaper, not the window itself): I am currently trying to build a semi-transparent window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |