Solved

Creating non-rectangular window

Posted on 1997-08-26
1
511 Views
Last Modified: 2013-11-20
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
Comment
Question by:galkin
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1304940
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
Named range not carried over 10 63
lucky13 challenge 11 140
only14 challenge 19 75
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now