Results 1 to 4 of 4

Thread: Odd-Shaped Visual C++ Forms

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Megatron
    Guest
    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;

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width