Solved

Creating non-rectangular window

Posted on 1997-08-26
1
496 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
move a line in eclipse 3 60
has22 challenge 11 71
fizzArray2 challenge 1 60
either24  challenge 19 84
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

21 Experts available now in Live!

Get 1:1 Help Now