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 save content (DC) of a MCI window as a Cbitmap (Urgent)?

How save content (DC) of a MCI window as a Cbitmap (Urgent)?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
1 Posts 1 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.
  • J Offline
    J Offline
    Julian
    wrote on last edited by
    #1

    Hi, I would like to know how to get the device context of a MCI window. I've already created that window (Hwnd). It is holding the frame of a avi video in a snapshot. And how to save it as a Cbitmap. Thanks a lot The code is like : m_hAVI = MCIWndCreate(m_hDlg, AfxGetInstanceHandle(), MCIWNDF_NOPLAYBAR | MCIWNDF_NOAUTOSIZEWINDOW | MCIWNDF_NOERRORDLG | WS_VISIBLE | WS_CHILD | WS_BORDER | WS_DISABLED, NULL ); MCIWndUseFrames(m_hAVI); MCIWndOpen(m_hAVI,(LPCSTR)m_efile,0); MCIWndSeek(m_hAVI, m_estart_frame); // Show mci windows ::SetWindowPos(m_hAVI, HWND_BOTTOM, x_mci, y_mci, m_width, m_height, SWP_NOACTIVATE); Best Regards, Julian

    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