How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++
Posted: 28 Feb 2019 06:22
by chamanlata
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?
Re: How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++
Posted: 28 Feb 2019 09:43
by chubinou
Hi, you should be able to render to custom window by using
libvlc_media_player_set_hwnd
Re: How to Hide Title bar from VLC Media Player (VLC Direct 3d output)using LIBVLC in vc++
Posted: 28 Feb 2019 14:25
by mfkl
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);
}
}