Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CxImage 사용

From ZeroWiki

include

  1. CxImage 폴더 복사
  2. Debug 에 CxImage.lib 복사
  3. StdAfx.h 에 #include "ximage.h" 선언
  4. Set->C/C++ ->Category 에서 Preprocessor 선택
  5. Additional 에 ./include
  6. link-> object/library modules 에 Debug/CxImages.lib

Image Load

보통 Document 에서 관리

BOOL CCxDoc::OnOpenDocument(LPCTSTR lpszPathName) 
{
	if (!CDocument::OnOpenDocument(lpszPathName))
		return FALSE;
	
	// TODO: Add your specialized creation code here
	m_pImage = new CxImage;
	m_pImage->Load(lpszPathName, CxImage::FindType(lpszPathName));
	return TRUE;
}

Drop and Drag 실행 가능

App Class 에서 InitInstance() 의 아래부분 주석 처리

//if (!ProcessShellCommand(cmdInfo))
	//	return FALSE;

thread

MFC_