www.digitalmars.com         C & C++   DMDScript  

c++.mfc - Curve

reply "Phill" <phillbert pacific.net.au> writes:
Does anyone know how to go about
making a Frame have curved corners
instead of square corners?

Any advice would be appreciated

Thanks
        Phill.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
Jun 14 2003
next sibling parent Jan Knepper <jan smartsoft.us> writes:
Yes, but I don't have time right now to look it up.



Phill wrote:

 Does anyone know how to go about
 making a Frame have curved corners
 instead of square corners?

 Any advice would be appreciated

 Thanks
         Phill.

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
-- ManiaC++ Jan Knepper
Jun 14 2003
prev sibling parent reply Jan Knepper <jan smartsoft.us> writes:
For now look into GetWindowDC ( ... ). This allows you to draw
ANYWHERE into the window. Yes, alto in Title and menu bar.



Phill wrote:

 Does anyone know how to go about
 making a Frame have curved corners
 instead of square corners?

 Any advice would be appreciated
-- ManiaC++ Jan Knepper
Jun 14 2003
parent reply "Phill" <phillbert pacific.net.au> writes:
Thanks Jan your a Champion!

Phill.


"Jan Knepper" <jan smartsoft.us> wrote in message
news:3EEB503A.610E5019 smartsoft.us...
 For now look into GetWindowDC ( ... ). This allows you to draw
 ANYWHERE into the window. Yes, alto in Title and menu bar.



 Phill wrote:

 Does anyone know how to go about
 making a Frame have curved corners
 instead of square corners?

 Any advice would be appreciated
-- ManiaC++ Jan Knepper
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
Jun 14 2003
parent reply "Wichetael" <wichetael gmx.net> writes:
If you want to truly manipulate the actual window so that even hit testing
conforms to the new window form then look at SetWindowRgn and Regions, and
in your case probably CreateRoundRectRegion in particular.

Regards,

Remko van der Vossen

"Phill" <phillbert pacific.net.au> wrote in message
news:bcg6m8$17e2$1 digitaldaemon.com...
 Thanks Jan your a Champion!

 Phill.


 "Jan Knepper" <jan smartsoft.us> wrote in message
 news:3EEB503A.610E5019 smartsoft.us...
 For now look into GetWindowDC ( ... ). This allows you to draw
 ANYWHERE into the window. Yes, alto in Title and menu bar.



 Phill wrote:

 Does anyone know how to go about
 making a Frame have curved corners
 instead of square corners?

 Any advice would be appreciated
-- ManiaC++ Jan Knepper
Jun 14 2003
parent "Phill" <phillbert pacific.net.au> writes:
Thanks Remko!

"Wichetael" <wichetael gmx.net> wrote in message
news:bcg9t8$1a85$1 digitaldaemon.com...
 If you want to truly manipulate the actual window so that even hit testing
 conforms to the new window form then look at SetWindowRgn and Regions, and
 in your case probably CreateRoundRectRegion in particular.

 Regards,

 Remko van der Vossen

 "Phill" <phillbert pacific.net.au> wrote in message
 news:bcg6m8$17e2$1 digitaldaemon.com...
 Thanks Jan your a Champion!

 Phill.


 "Jan Knepper" <jan smartsoft.us> wrote in message
 news:3EEB503A.610E5019 smartsoft.us...
 For now look into GetWindowDC ( ... ). This allows you to draw
 ANYWHERE into the window. Yes, alto in Title and menu bar.



 Phill wrote:

 Does anyone know how to go about
 making a Frame have curved corners
 instead of square corners?

 Any advice would be appreciated
-- ManiaC++ Jan Knepper
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.488 / Virus Database: 287 - Release Date: 5/06/2003
Jun 14 2003