1. DirectDraw Device 생성

    DirectDrawCreate(nullptr, &m_pDD, nullptr)

  1. QueryInterface

    m_pDD->QueryInterface(IID_IDirectDraw7, (LPVOID*)&m_pDD7)

  2. Front Buffer (= Primary Surface) 생성

    m_pDD7->CreateSurface(&ddsd, &m_pDDPrimary, nullptr)

  3. 전체 모니터상에서의 응용프로그램의 윈도우의 좌표 얻기

    void CDDrawDevice::OnUpdateWindowPos()
    {
    	GetClientRect(m_hWnd, &m_rcWindow);
    	::ClientToScreen(m_hWnd, (POINT*)&m_rcWindow.left);
    	::ClientToScreen(m_hWnd, (POINT*)&m_rcWindow.right);
    }
    
  4. BackBuffer생성