Click here to Skip to main content
15,885,278 members
Articles / Desktop Programming / MFC

Effecto Player

Rate me:
Please Sign up or sign in to vote.
4.78/5 (39 votes)
23 Sep 20035 min read 163.7K   14.8K   97  
Media audio player with 3D and 2D effects and skinning.
// stdafx.cpp : source file that includes just the standard includes
//	Effecto.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

void CopyBitmap(CDC* dc, CBitmap& mRes, const CBitmap& hbmp, RECT r)
{
	if(!hbmp.m_hObject) return;
	int w = r.right - r.left,
		h = r.bottom - r.top;

	CDC memdc, hDC;
	
	mRes.CreateCompatibleBitmap(dc, w, h);

	hDC.CreateCompatibleDC(dc);
	hDC.SelectObject((HBITMAP) mRes);

	memdc.CreateCompatibleDC(dc);
	memdc.SelectObject(hbmp);

	hDC.StretchBlt(0, 0, w, h, &memdc, r.left, r.top, w, h, SRCCOPY); 
	hDC.DeleteDC();
	memdc.DeleteDC();
	
}



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Egypt Egypt
My name is Ahmed Ismaiel Zakaria
i'm programming c++ & visual c++ (MFC )& Visual basic and recently COM,ATL
Student in Faculty of computer and information science in Egypt

Comments and Discussions