E D R , A S I H C RSS

Cx Image 사용

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 에서 관리
~cpp
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() 의 아래부분 주석 처리


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

thread

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:04
Processing time 0.0125 sec