CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2004
    Posts
    2

    How to show a label while playing media player in full screen

    I want to show a label While playing video file with media player control
    in full screen mode


    how a label can show in front of a media player control

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: How to show a label while playing media player in full screen

    Short answer: You can't. This is basically because labels are not windows.

    You can however place another window over the top of the video, and draw text on that.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Jun 2013
    Posts
    1

    Re: How to show a label while playing media player in full screen

    @WizBang nice trick and it can even be use to transparent background and transparent logo...

    but i tried and it don't work for me... in fullmode video it remains in back i even tried BringToFront(); function but it don't...

    any other trick???

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: How to show a label while playing media player in full screen

    Try setting the window you want on top using the SetWindowPos API. Or, I think using the SetParent API, you could actually place the window inside the video window, thereby making it impossible for the player to cover it. However, I'm not entirely certain if video overlay capabilities might prevent the effect you desire.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  5. #5
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to show a label while playing media player in full screen

    You can't overlay on Fullscreen Mode as it draws directly to the screen. Same on HDMI signals to the TV. Media Center in full screen mode BLOCKS all other messages on the screen. Even CALLER-ID
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  6. #6
    Join Date
    Dec 2001
    Posts
    6,332

    Re: How to show a label while playing media player in full screen

    The WMP used to have an option to turn off hardware acceleration, so it's apparently possible to do it for a single application, without effecting anything else. As far as I know, doing that should cause the video to be painted as a bitmap rather than going directly to the video card.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured