#include <Asc2MapDlg.h>
Public Types | |
enum | { IDD = IDD_ASC2MAP_DIALOG } |
Public Methods | |
CAsc2MapDlg (CWnd *pParent=NULL) | |
Protected Methods | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnSysCommand (UINT nID, LPARAM lParam) |
afx_msg void | OnPaint () |
afx_msg HCURSOR | OnQueryDragIcon () |
DECLARE_MESSAGE_MAP () public | |
Protected Attributes | |
HICON | m_hIcon |
|
Definition at line 22 of file Asc2MapDlg.h.
00022 { IDD = IDD_ASC2MAP_DIALOG }; |
|
|
|
Definition at line 37 of file Asc2MapDlg.h.
00038 : 00039 CString m_SAscFileName; 00040 CString m_SMapFile; 00041 00042 FILE *AscFile; 00043 FILE *MapFile; 00044 bool FindAllTexture; 00045 afx_msg void OnBnClickedOk(); 00046 afx_msg void OnBnClickedButbrowseasc(); 00047 afx_msg void OnBnClickedButbrowsetexttop(); 00048 afx_msg void OnBnClickedButbrowsetextbottom(); 00049 afx_msg void OnBnClickedButbrowsetextfront(); 00050 afx_msg void OnBnClickedButbrowsetextback(); 00051 afx_msg void OnBnClickedButbrowsetextleft(); 00052 afx_msg void OnBnClickedButbrowsetextright(); 00053 CEdit m_CAscFile; 00054 00055 CString m_STextureName; 00056 CString m_STextureNameBottom; 00057 CString m_STextureNameFront; 00058 CString m_STextureNameBack; 00059 CString m_STextureNameLeft; 00060 CString m_STextureNameRight; 00061 afx_msg void OnBnClickedButbrowsemapfile(); 00062 void CreateMapFile(void); 00063 00064 struct SVertex 00065 { 00066 double x,y,z,u,v; 00067 }; |
|
Definition at line 61 of file Asc2MapDlg.cpp. References IDC_EDIT4, IDC_EDIT5, IDC_EDIT6, IDC_EDIT8, IDC_EDITASCFILE, IDC_EDITMAPFILE, and IDC_EDITTEXTURE.
00063 { 00064 CDialog::DoDataExchange(pDX); 00065 DDX_Text(pDX, IDC_EDITASCFILE, m_SAscFileName); 00066 DDX_Text(pDX, IDC_EDITMAPFILE, m_SMapFile); 00067 DDX_Text(pDX, IDC_EDITTEXTURE, m_STextureName); 00068 DDX_Control(pDX, IDC_EDITASCFILE, m_CAscFile); 00069 DDX_Text(pDX, IDC_EDIT4, m_STextureNameBottom); 00070 DDX_Text(pDX, IDC_EDIT5, m_STextureNameFront); 00071 DDX_Text(pDX, IDC_EDIT6, m_STextureNameBack); 00072 DDX_Text(pDX, IDC_EDIT7, m_STextureNameLeft); 00073 DDX_Text(pDX, IDC_EDIT8, m_STextureNameRight); |
|
|
|
Definition at line 143 of file Asc2MapDlg.cpp. References m_hIcon.
00145 { 00146 if (IsIconic()) 00147 { 00148 CPaintDC dc(this); // contexte de périphérique pour la peinture 00149 00150 SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); 00151 00152 // Centrer l'icône dans le rectangle client 00153 int cxIcon = GetSystemMetrics(SM_CXICON); 00154 int cyIcon = GetSystemMetrics(SM_CYICON); 00155 CRect rect; 00156 GetClientRect(&rect); 00157 int x = (rect.Width() - cxIcon + 1) / 2; 00158 int y = (rect.Height() - cyIcon + 1) / 2; 00159 00160 // Dessiner l'icône 00161 dc.DrawIcon(x, y, m_hIcon); 00162 } 00163 else 00164 { 00165 CDialog::OnPaint(); 00166 } |
|
Definition at line 170 of file Asc2MapDlg.cpp.
00172 {
00173 return static_cast<HCURSOR>(m_hIcon);
|
|
Definition at line 126 of file Asc2MapDlg.cpp.
00128 { 00129 if ((nID & 0xFFF0) == IDM_ABOUTBOX) 00130 { 00131 CAboutDlg dlgAbout; 00132 dlgAbout.DoModal(); 00133 } 00134 else 00135 { 00136 CDialog::OnSysCommand(nID, lParam); 00137 } |
|
Definition at line 30 of file Asc2MapDlg.h. Referenced by OnPaint(). |