Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Member 8833981

@Member 8833981
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MFC CDialog hosting WPF components
    M Member 8833981

    Thanks for suggestion. I have just done so. But I'm not sure that the answer to my problem is inside the WPF part. It can also be in the MFC one.

    C / C++ / MFC question csharp c++ visual-studio wpf

  • MFC CDialog hosting WPF components
    M Member 8833981

    Hi, I'm integrating some some WPF controls into a MFC dialog box. One of the control is a media player that shows live video. The second one is a label that shows the current video time. What I need is to have is the label on top of the media player. The label should only display the time, so its background needs to be transparent. Right now, I have the video player running fine inside the dialog box, but I am unable to have the time displayed as I wish. It just overlap the video player. Both WPF components were creating by following instructions from this link. https://msdn.microsoft.com/en-us/library/ms742522(v=vs.110).aspx#hosting\_a\_wpf\_page\[^\] I try to set the label with a transparent background. timeLabel->Background = gcnew System::Windows::Media::SolidColorBrush (System::Windows::Media::Colors::Transparent); But the label background is shown black. I also try to set the Transparent flag of the MFC CDialog to true, but it didn't have any effect. How can I that fixed? Do I need to set up something special when I instantiate the WPF controls? Do I need to call some functions from inside the MFC dialog box? Thanks, Alain Migeon PS This question has also been asked in "C / C++ / MFC" forum.

    WPF question c++ csharp visual-studio wpf

  • MFC CDialog hosting WPF components
    M Member 8833981

    Hi, I'm integrating some some WPF controls into a MFC dialog box. One of the control is a media player that shows live video. The second one is a label that shows the current video time. What I need is to have is the label on top of the media player. The label should only display the time, so its background needs to be transparent. Right now, I have the video player running fine inside the dialog box, but I am unable to have the time displayed as I wish. It just overlap the video player. Both WPF components were creating by following instructions from this link. https://msdn.microsoft.com/en-us/library/ms742522(v=vs.110).aspx#hosting_a_wpf_page[^] I try to set the label with a transparent background. timeLabel->Background = gcnew System::Windows::Media::SolidColorBrush (System::Windows::Media::Colors::Transparent); But the label background is shown black. I also try to set the Transparent flag of the MFC CDialog to true, but it didn't have any effect. How can I that fixed? Do I need to set up something special when I instantiate the WPF controls? Do I need to call some functions from inside the MFC dialog box? Thanks, Alain Migeon

    C / C++ / MFC question csharp c++ visual-studio wpf
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups