Downloads

MFC with DirectX 2D
(2-Dimensional Graphics)

gallery/backgr2

Requirements

 

To follow my tutorial videos, we need to meet the followings;

 

  • System Requirements: Windows 7 or above, Microsoft Visual Studio 2013 or above
  • Mathematical Prerequisit: Linear transformation, Trigonometry

  • Determination and burning desire to learn 2d graphics

Download sample source code (43 MB).

 

              MD Code: af0b4406adbeef2c48e3f52ac3394916

 

001. MFC with Direct2D

 

In this session, we will create our first MFC application and enable Direct2D.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

002. MFC Extension DLL

 

In this session, we will learn how to create MFC Extension DLL. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

003. MFC Extension DLL Pimpl

 

In this session, we will learn pimpl idiom. The pimpl idiom is a modern C++ technique to hide implementation, to minimize coupling, and to separate interfaces. Pimpl is short for "pointer to implementation." For more information, please refer to Pimpl For Compile-Time Encapsulation and Opaque pointer.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

004. Transformation Theory

 

In this session, we will learn about linear transformation. If you fail to understand Linear Transformation, you may not be able to implement computer graphics.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

005. Transformation in C++ Code

 

In this session, we will apply Linear Transformation Theory to our application.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

006. Quadratic Equation and Circle

 

In this session, we will ploy a quadratic equation and a circle.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

007. How to Plot Equations on Polar Coordinate System

 

In this session, we will learn about polar coordinate system and plot a heart. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

008. Simple Animation - Beating Heart

 

In this session, we will learn how to use CTimer control and make our heart beating.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

009. How to Use Geometry

 

In this session, we will learn how to use CD2DPathGeometry to fill the heart with color.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

010. Registry and Project Dependencies

 

In this session, we will learn about system registry and how to set project dependencies.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

011. CMFCRibbonBar and CDockablePane

 

In this session, we will learn how to add buttons to CMFCRibbonBar and how to hide/show CDockablePane.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

012. Fix Context Menu Error by AppWizard and CListBox

 

In this session, we will fix context menu error introduced bu MFC AppWizard, and clear the contents of CListBox.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

013. Custom Messages and CTimer Control

 

In this session, we will learn how to add a custom Windows message and control CTimer. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

014. Load Image From File

 

In this session, we will learn how to load an image file and draw it on screen. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

015. Load Image from Resource

 

In this session, we will load an image from embedded resource.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

016. How to Fix Resource Bug

 

In this session, we will learn how to fix resource bug.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

gallery/01
gallery/03
gallery/02