<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i have a problem with libvlc when i draw a video in 
a child window of my applikation.</FONT></DIV>
<DIV><FONT face=Arial size=2>The child window is created oin this 
way:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> hwnd_player = CreateWindowEx (0, gPlayerName, 
gPlayerName,  WS_CHILD  | WS_VISIBLE  ,0, 30,800,600,hwnd, 
NULL,hPlayerInstance,NULL);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The playe rpart is added to the child window on 
this way:</FONT></DIV>
<DIV><FONT face=Arial size=2>libvlc_media_player_set_drawable (mp, 
(libvlc_drawable_t)hwnd_player, &ex);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the first start works fine - libvlc starts the 
stream in the child window "hwnd_player"  (hwnd is the root window). video 
is complete visible.</FONT></DIV>
<DIV><FONT face=Arial size=2>but when i start a second child window 
(hwnd_mainmenu) and it is shown over the "hwnd_player" window (overlapping) and 
close ths hwnd_mainmenu again, the player video is not updated 
again.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>that means, the overlapped part of the player 
window is not updated again and it is black. the not overlapped part of 
hwnd_player is working correct. so i only the the half width of the 
video.</FONT></DIV>
<DIV><FONT face=Arial size=2>so, how can i refresh with libvlc the hwnd_player 
window so the video is visible in the whole height and width again?</FONT></DIV>
<DIV><FONT face=Arial size=2>I didnt see any request like 
libvlc_player_refresh() or so.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i would expect a call like "UpdateWindow" for the 
vlc-player part.</FONT></DIV>
<DIV><FONT face=Arial size=2>btw "UpdateWindow(hwnd_player);" or 
"InvalidateRect(hwnd_player,NULL,TRUE); is not working in this case to 
update the vlc-part of my application.</FONT></DIV>
<DIV><FONT face=Arial size=2>it is working correct, when i create the 
hwnd_player window as "WS_OVERLAPPED" but then i have the border and tile bar, 
which i dont want to have for an inlay window.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So, how can i update with libvlc the video part in 
the hwnd_player window?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much vor your help</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Mario</FONT></DIV></BODY></HTML>