Solved

Making a window "not square"

Posted on 1999-01-15
3
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
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.

739 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