Solved

Making a window "not square"

Posted on 1999-01-15
3
252 Views
Last Modified: 2013-11-20
I have seen programs available commercially whose windows are not square as one would expect.  Norton CrashGuard's main window is in fact a shield shape.  How do they accomplish this?  How can I make an unusually shaped window?
0
Comment
Question by:IgorStravinsky
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
thresher_shark earned 100 total points
ID: 1327765
Answer coming...
0
 
LVL 6

Expert Comment

by:thresher_shark
ID: 1327766
Yish, I have been busy, sorry to keep you waiting, but the SetWindowRgn function does just that.


Excerpt from help:
int SetWindowRgn( HRGN hRgn, BOOL bRedraw );

Return Value

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.

Parameters

hRgn

A handle to a region.

bRedraw

If TRUE, the operating system redraws the window after setting the region; otherwise, it does not. Typically, set bRedraw to TRUE if the window is visible. If set to TRUE, the system sends the WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED messages to the window.

Remarks

Call this member function to set a window's region.

The coordinates of a window’s window region are relative to the upper-left corner of the window, not the client area of the window.

After a successful call to SetWindowRgn, the operating system owns the region specified by the region handle hRgn. The operating system does not make a copy of the region, so do not make any further function calls with this region handle, and do not close this region handle.
0
 

Author Comment

by:IgorStravinsky
ID: 1327767
Ahh ha! Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 172
tripleUp challenge 7 73
mapAB Challlenge 35 123
Message not shown 5 27
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 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

11 Experts available now in Live!

Get 1:1 Help Now