I am trying to draw a hbitmap
with a layeredwindow
directly onto the screen. this also works now how it should, yet the left upper corner of the image is always rounded.
I'm creating the window with:
HWND hWnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_TRANSPARENT
, szWindowClass, 0,
WS_VISIBLE
, 150,250, width, height, 0, NULL, hInstance, NULL);
Could anyone help me please to solve this problem?
You are using WS_VISIBLE
as the window style, which is equivalent to WS_OVERLAPPED | WS_VISIBLE
WS_OVERLAPPED | WS_VISIBLE
. Overlapped windows have rounded corners at the top.
Use WS_POPUP | WS_VISIBLE
WS_POPUP | WS_VISIBLE
instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.