|
-
May 10th, 2002, 03:38 PM
#1
Thread Starter
Fanatic Member
Odd-Shaped Visual C++ Forms
Hi,
I've been searching the web, in vain I might add, for information/examples on how to create odd-shaped forms in Visual C++. I found info about doing this in VB, but zilch on how to do it in Visual C++. It's got to be possible, but how? Does anybody know how to do it?
Thanks in advance.
-
May 10th, 2002, 04:00 PM
#2
Monday Morning Lunatic
Pretty much the same way, using the SetWindowRgn function, and all the rest of them
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
May 10th, 2002, 05:39 PM
#3
Try this (add it to the switch statment in your WinProc procedure)
Code:
case WM_CREATE:
{
HRGN hRgn = CreateEllipticRgn(100,100,500,500);
SetWindowRgn( hWnd, hRgn, TRUE );
return 0;
}
case WM_LBUTTONDOWN:
SendMessage( hWnd, WM_CLOSE, 0 , 0);
return 0;
-
May 12th, 2002, 03:27 PM
#4
Thread Starter
Fanatic Member
Parksie and Megatron,
Thanks for the responses!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|