Files
2026-08-07 17:38:18 +09:00

70 lines
1.9 KiB
C++

#pragma once
#include "Struct.h"
#include "afxcmn.h"
#include "ConsoleApp.h"
#include "SocketUtil.h"
#include "../ConsoleTransfer(DN)/NoticeStruct.h"
#define SOCK_TIMEOUT 5
#define WMU_NOTICE_TRANS (WM_USER+1000)
#define WMU_NOTICE_LAST_FILE_TRANS (WM_USER+2000)
// CNoticeTrans 대화 상자입니다.
class CNoticeTrans : public CDialog
{
DECLARE_DYNAMIC(CNoticeTrans)
public:
CNoticeTrans(CWnd* pParent = NULL); // 표준 생성자입니다.
CNoticeTrans(PTRANPARAM_STRUCT ptp, CString szTargetPath , CWnd* pParent = NULL);
CNoticeTrans(PTRANPARAM_STRUCT ptp, int LastFileTrans , CWnd* pParent = NULL);
CNoticeTrans(CArray<tsvc_da_contents_t*>* pad, CWnd* pParent = NULL);
virtual ~CNoticeTrans();
// 대화 상자 데이터입니다.
enum { IDD = IDD_SEND_TRANSINFO};
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
DECLARE_MESSAGE_MAP()
CString m_szTargetPath;
bool m_NoticeLastFileTrans;
PTRANPARAM_STRUCT m_ptp;
void NoticeTrans(void);
void LastFileTransComplete();
void FillAdminInfo( tsvc_ddc_req_body_t*);
CSocketUtil m_sutil;
CArray<tsvc_da_contents_t*>* m_pAdac;
public:
// afx_msg void OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult);
CProgressCtrl m_NoticeProgress;
CStatic m_NoticeText;
virtual BOOL OnInitDialog();
// afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult);
// afx_msg void OnActivateApp(BOOL bActive, DWORD dwThreadID);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg LRESULT OnNoticeTrans(WPARAM, LPARAM);
afx_msg LRESULT OnNoticeLastFileTrans(WPARAM, LPARAM);
afx_msg void OnBnClickedCancel();
// afx_msg void OnStnClickedNoticeMsgbox();
void SetNoticeStep(int nStep);
CString m_cp;
CString m_user;
CString m_passwd;
CString m_RCTSAddress;
CString m_sp_tid_str;
};