Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
2.1 KiB
C++
70 lines
2.1 KiB
C++
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 파일 오픈 클래스
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
#ifndef _FileOpen
|
|
#define _FileOpen
|
|
|
|
#include <windows.h>
|
|
#include <commdlg.h>
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 상수 정의
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
const unsigned int MaxFileNumber = 40;
|
|
const unsigned int FileNameBufferSize = MaxFileNumber * MAX_PATH;
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 클래스 정의
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
class FileOpen
|
|
{
|
|
private:
|
|
OPENFILENAME m_OpenFileName;
|
|
|
|
char m_FileNameBuffer[MAX_PATH];
|
|
char m_FilePathName[MaxFileNumber][MAX_PATH];
|
|
|
|
int m_FileIndex;
|
|
int m_FileCount;
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// FileOpen 기본 클래스 메소드
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
public:
|
|
FileOpen(HWND hWnd_In, LPCTSTR InitialDir_In = NULL);
|
|
~FileOpen(void);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 파일 다이얼로그 관련 메소드
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
bool OpenDlg(char* Filter_In = "All file\0*.*");
|
|
bool SaveDlg(char* DefulatExt_In, char* Filter_In = "All file\0*.*");
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 파일 처리 관련 메소드
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
char* GetFileNameFromBuffer(int Index_In = 0);
|
|
char* GetNextFileNameFromBuffer(void);
|
|
|
|
char* GetFilePathNameFromBuffer(int Index_In = 0);
|
|
char* GetNextFilePathNameFromBuffer(void);
|
|
|
|
char* ConvertToFileName(char* FilePathName_In);
|
|
|
|
private:
|
|
bool IsExistExt(char* FileName);
|
|
};
|
|
|
|
#endif |