Hi,
Happy New Year to Everyone!
I'm wondering if someone could help me with a problem? I am using SetWindowRgn to create a transparent window in my C++ app, I am calling the following:
SetWindowRgn(Handle, CreatePolygonRgn(pnts, cnt, WINDING), Visible);
where, CreatePolygonReg creates a region based on cnt number of POINTS in array pnt. Handle is the handle to the window and Visible is TRUE or FALSE.
I am running XP Pro and, on my system, the above works fine.
HOWEVER, on certain XP systems this call fails IF the Windows Task Manager is visible (i.e. when CTRL+ALT+DEL is pressed). It fails, showing error messages: 'Win32 Error. Code 6. The handle is invalid', or 'A win32 API function failed'.
Has anyone seen this before?
Any help appreciated.
Cheers