Originally posted by: Lynn Jones
Actually, SetWindowRgn needs an HRGN (handle to a window
region struct), so you can apply CRgn's HRGN operator to
get this handle (looks like casting it).
Originally posted by: George
Hi,
I remember a year or so ago I showed that trick to one of my friends who used to Delphi, and he struggled for one hour to figure out how to make it in PASCAL, but he did it finally, by using the SDK call. After that we played with it a while. You know, you can actually combine few regions, plus then and minus before you set the new region. We made something what looked like a cheese, with the holes! Very funny, DO IT AT HOME...;-)
BR
Originally posted by: aXe
I am rounding off a main dlg on a dlg based app and it worked fine under win98, but when my friend tried to run it under win95, it would not draw at all and caused all kinds of problems...I am assuming it has something to do with the 64k boundary and Win98's 32-bit GDI being able to handle it internally...Is there an alternative work around for this for Win95...???
ReplyOriginally posted by: stephan
CRgn MyRgn;
* when the Frame windows is created
Do I need to change any of the window styles (in the CREATESTRUCTURE)
PS: my goal is to create a program with a telephone-like interface
Your "trick" is very useful. I started to program using MFC and I don't know where I should call
place your functions:
MyRgn.CreateEllipticRgn(0, 0, 100, 100);
SetWindowRgn(MyRgn, TRUE);
- OR -
* when the App is created
thank you so much