• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 542
  • Last Modified:

Creating non-rectangular window

I need to create non-rectangular window without border and without title bar. More exactly I need a picture( not rectangular shape) to behave like window, it means there is some "hot" area on the picture so that when user click mouse button on it and move i want to move entire picture. I tried to implement common window and transparently blitting on it, but the problem is when I begin moving it this transparent area outside picture is not redrawn. I also tried to specify window region by SetWindowRegion, but also are outside picture( or window region) is not redrawn. What way can I implement this?
0
galkin
Asked:
galkin
1 Solution
 
Tommy HuiEngineerCommented:
Create a regular window, define the shape you want in a region and finally then call SetWindowRgn. I don't think it works with a transparent background though.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now