Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to set position of media player on anywhere on dialog box

how to set position of media player on anywhere on dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prerananit
    wrote on last edited by
    #1

    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.

    H 1 Reply Last reply
    0
    • P prerananit

      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.

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      Since MCIWndCreate() returns a HWND, you can use any of the Win32 functions such as MoveWindow() or SetWindowPos() to operate on the window.

      Best wishes, Hans


      [Hans Dietrich Software]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups