I am now trying to host a WPF control into a MFC application and get the Aero
glass look on the WPF control. (Something like what Office2007 is doing to
its ribbon)
What should be the container of the WPF control so that I can get Aero Glass
look?
I tried with a System.Windows. Window, I got the Aero Glass look. But it
seems that a Window must be the root element and can not be hosted in the MFC
window.
I also tried to use a System.Windows. Control.UserCon trol, but I didn't
achieve Aero Glass look on it.
Did I miss out anything? Is it possible (and How) to achieve Aero Glass on
an UserControl? If not, What control?/window? should I use?
Thanks 2 6976
Hello,
I think the only way to get the glass style into your own window is to
interop into Win32 and call the DWM methods directly (e.g.
DwmExtendFrameI ntoClientArea).
Best regards,
Henning Krause
"Jiayin" <Ji****@discuss ions.microsoft. comwrote in message
news:BF******** *************** ***********@mic rosoft.com...
>I am now trying to host a WPF control into a MFC application and get the Aero
glass look on the WPF control. (Something like what Office2007 is doing to
its ribbon)
What should be the container of the WPF control so that I can get Aero
Glass
look?
I tried with a System.Windows. Window, I got the Aero Glass look. But it
seems that a Window must be the root element and can not be hosted in the
MFC
window.
I also tried to use a System.Windows. Control.UserCon trol, but I didn't
achieve Aero Glass look on it.
Did I miss out anything? Is it possible (and How) to achieve Aero Glass on
an UserControl? If not, What control?/window? should I use?
Thanks
Yes, I can achieve Aero Glass on a window using DwmExtendFrameI ntoClientArea.
But can we achieve the same on a UserControl?
"Henning Krause [MVP - Exchange]" wrote:
Hello,
I think the only way to get the glass style into your own window is to
interop into Win32 and call the DWM methods directly (e.g.
DwmExtendFrameI ntoClientArea).
Best regards,
Henning Krause
"Jiayin" <Ji****@discuss ions.microsoft. comwrote in message
news:BF******** *************** ***********@mic rosoft.com...
I am now trying to host a WPF control into a MFC application and get the
Aero
glass look on the WPF control. (Something like what Office2007 is doing to
its ribbon)
What should be the container of the WPF control so that I can get Aero
Glass
look?
I tried with a System.Windows. Window, I got the Aero Glass look. But it
seems that a Window must be the root element and can not be hosted in the
MFC
window.
I also tried to use a System.Windows. Control.UserCon trol, but I didn't
achieve Aero Glass look on it.
Did I miss out anything? Is it possible (and How) to achieve Aero Glass on
an UserControl? If not, What control?/window? should I use?
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: chris |
last post by:
Hi there I want to create a UserControl which simply uses a textbox and a
calendar. The calendar's visibility is set to false. If I click the
ImageButton the Calendar is visible. When you select a date, the date is
written into the textbox. But when I just want to change the Month the
calendar disappears. (When you reopen the calendar is a month further)
How can I avoid this?
|
by: Paul |
last post by:
Just wondering if there is a way to set up a web application where the curser
turns into an hour glass when the application is busy, for example processing
a stored procedure on a server that takes several seconds?
Thanks.
--
Paul G
Software engineer.
|
by: David Veeneman |
last post by:
Not exactly a C# question, but one that C# experts can answer-- sorry if I'm
off topic.
We're going to upgrade a development machine to Vista when it comes out, and
I'm getting ready to install Beta 2 on an idle machine with an AGP slot. The
machine qualifies for everything except Aero glass. Can anyone recommend a
graphics card (preferebly with dual analog out) that will support Aero Glass
in Vista Beta 2? Thanks much.
David Veeneman
|
by: JezB |
last post by:
I have an image of an object which I display on a form. I'd like to use GDI+
to display a gradually-fading reflection of this image (on a white or
coloured background) underneath so that the effect is like the object
sitting on a glass table. Any idea how I'd achieve this ?
|
by: Mini Singh |
last post by:
Hi All
I am creating an application in which i need an hour glass to show that processing is going on. How do i create an Hour glass in my application.
Please reply
| |
by: Skybuck Flying |
last post by:
It requires more power of the 3D cards thus more harmfull gasses in the air.
Soon we will all see glass in our sea's ;)
Bye,
Skybuck.
|
by: not_a_commie |
last post by:
I'm currently using the ElementHost (from Integration) to show some
WPF controls on my .NET 2.0 form. It works fine, but they don't match
the other .NET 2.0 controls (3rd party) on my form that are built to
Aero look and feel. How can I load the Aero.normalcolor.xaml theme
that comes with the WPF SDK and make it apply to my few elements in
ElementHost? I currently don't use any XAML. I instantiate everything
in C#. Thanks for your time.
|
by: =?Utf-8?B?RGFya2JyZWVk?= |
last post by:
I installed Vista Ultimate (oem) on mij old 80 GB hdd. I had lots of problems
(continues errors and bleu screens) and finaly I discovered that my hdd was
broken or not up to date. So, I got a new hdd (the best I could afford:
Western Digital, wdc wd1500ahfd-00RAR1 sata)
But...after re-instaling windows vista ultimate on the new drive, I
discoverd to my dismay that the aero-glass theme was gone,and I can't find it
anywhere on my system!
It...
|
by: remya1000 |
last post by:
i'm using VB.NET.
when a button is clicked the utility will display an hour glass mouse pointer, and it will begin copying the Utility settings from one computer to another computer on the network. Upon completion of these steps, the mouse pointer will return to it’s default style and the program will exit.
any one have any idea how to display a Hour Glass Mouse Pointer? and when that settings starts coping to another computer, how can we...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |