DragonNest/Client/EtUITool/CompressCheckDlg.cpp
2024-12-20 16:56:44 +08:00

28 lines
1.8 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "StdAfx.h"
#include "resource.h"
#include "CompressCheckDlg.h"
IMPLEMENT_DYNAMIC(CCompressCheckDlg, CFileDialog)
CCompressCheckDlg::CCompressCheckDlg(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
{
m_ofn.Flags = dwFlags | OFN_EXPLORER | OFN_ENABLETEMPLATE | OFN_ENABLEHOOK;
m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_COMPRESSCHECKDLG);
m_nDoNotCompressTexture = 0;
}
CCompressCheckDlg::~CCompressCheckDlg(void)
{
}
BEGIN_MESSAGE_MAP(CCompressCheckDlg, CFileDialog)
ON_BN_CLICKED(IDC_CHECK1, &CCompressCheckDlg::OnBnClickedCompressCheck)
END_MESSAGE_MAP()
void CCompressCheckDlg::OnBnClickedCompressCheck()
{
m_nDoNotCompressTexture = ((CButton*)GetDlgItem( IDC_CHECK1 ))->GetCheck();
}