how to set position of media player on anywhere on dialog box
-
i am showing media player on dialog box using MCIWNDCreate function as follows HWND h_video ; h_video = MCIWndCreate(this->GetSafeHwnd(), AfxGetInstanceHandle(), WS_CHILD |WS_VISIBLE|MCIWNDF_NOMENU|SWP_FRAMECHANGED,filePath); here h_video is handle of window by using MCIWNDPlay(h_video);it will play audio file but it will show that media player on top of dialog box but i want to show that player on anywhere on dialog box.Plz if anyone know this plz tell me how can i show that media on anywhere on dialog box.
-
i am showing media player on dialog box using MCIWNDCreate function as follows HWND h_video ; h_video = MCIWndCreate(this->GetSafeHwnd(), AfxGetInstanceHandle(), WS_CHILD |WS_VISIBLE|MCIWNDF_NOMENU|SWP_FRAMECHANGED,filePath); here h_video is handle of window by using MCIWNDPlay(h_video);it will play audio file but it will show that media player on top of dialog box but i want to show that player on anywhere on dialog box.Plz if anyone know this plz tell me how can i show that media on anywhere on dialog box.
Since
MCIWndCreate()
returns aHWND
, you can use any of the Win32 functions such asMoveWindow()
orSetWindowPos()
to operate on the window.Best wishes, Hans