How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++

This forum is about all development around libVLC.
chamanlata
Blank Cone
Blank Cone
Posts: 17
Joined: 19 Feb 2019 06:16

How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++

Postby chamanlata » 28 Feb 2019 06:22

Hello,
I am using libvlc in vc++.I want to hide the title bar from VLC Output Window(VLC 3D Direct OUTPUT). Can we hide or remove this title bar?

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++

Postby chubinou » 28 Feb 2019 09:43

Hi, you should be able to render to custom window by using libvlc_media_player_set_hwnd

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++

Postby mfkl » 28 Feb 2019 14:25

Are you me?

Anywho, here's some C# code that does what you want. You can adapt it to C++ easily.

Code: Select all

foreach (var handle in EnumerateProcessWindowHandles(Process.GetCurrentProcess().Id)) { StringBuilder message = new StringBuilder(1000); SendMessage(handle, WM_GETTEXT, message.Capacity, message); if (message.ToString().Equals("VLC (Direct3D11 output)")) { var style = (SetWindowLongFlags)GetWindowLong(handle, WindowLongIndexFlags.GWL_STYLE); style &= ~SetWindowLongFlags.WS_BORDER; SetWindowLong(handle, WindowLongIndexFlags.GWL_STYLE, style); } }
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests