OPENFILENAME OFN;
TCHAR lpstrFile[MAX_PATH]="";
memset(&OFN, 0, sizeof(OPENFILENAME));
OFN.lStructSize = sizeof(OPENFILENAME);
OFN.hwndOwner=hWnd;
OFN.Flags = OFN_NOCHANGEDIR; // 제일 마지막 경로를 저장하지 않는다.
OFN.lpstrInitialDir = "DataFile\\Image\\Blinding"; // 시작될 상대 경로
OFN.lpstrFilter="Tag File(*.tga)\0*.tga\0Bitmap File(*.bmp)\0*.bmp\0"; // 불러올 파일 설정
'[ C/ C++ 프로그래밍 ] > [ WinAPI ]' 카테고리의 다른 글
[Windows Api 정복 정리 ] DC(Device ConText) (0) | 2010.06.01 |
---|---|
[Windows Api 정복 정리 ] 메시지 처리 함수 (WinProc) (1) | 2010.05.31 |
[Windows Api 정복 정리 ] 메시지 루프 (0) | 2010.05.31 |
[Windows Api 정복 정리 ] WinMain & 윈도우 클래스 (1) | 2010.05.31 |
[Windows Api 정복 정리 ] 기초 (0) | 2010.05.31 |