How save content (DC) of a MCI window as a Cbitmap (Urgent)?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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