Round edges on CDialog  
Author Message
JonnyJack





PostPosted: Thu Aug 07 04:32:43 CDT 2003 Top

MFC >> Round edges on CDialog

Hello,

I have a CDialog derived dialog and I'd like to change the corners to be
round. Is that easily possible?

-- John

Visual Studio133  
 
 
Adrian





PostPosted: Thu Aug 07 04:32:43 CDT 2003 Top

MFC >> Round edges on CDialog On Windows XP this happens automatically. You can also
create a manifest file (myapp.exe.manifest) to use the new
XP common controls, e.g.,

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="mycompany.myproduct.myprogram"
type="win32"/>
<description>blah blah</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"

name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"

processorArchitecture="X86"

publicKeyToken="6595b64144ccf1df"
language="*"/>
</dependentAssembly>
</dependency>
</assembly>



>-----Original Message-----
>I dont think its easily possible unless you use some
library which does
>this. You may want to look at SetWindowRgn which allows
windows of various
>shapes.
>
>--
>Ajay Kalra [MVP - VC++]

>
>


>> Hello,
>>
>> I have a CDialog derived dialog and I'd like to change
the corners to be
>> round. Is that easily possible?