|
Revision 5, 1.4 kB
(checked in by qbert, 6 years ago)
|
Initial ( and last :( ) commit
|
| Line | |
|---|
| 1 |
#if !defined(AFX_FILECOMBOBOX_H__41880963_A63F_4690_8FE6_BE6C8BBE64D8__INCLUDED_) |
|---|
| 2 |
#define AFX_FILECOMBOBOX_H__41880963_A63F_4690_8FE6_BE6C8BBE64D8__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// FileComboBox.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
|
|---|
| 10 |
#include "GUIComponents\ComboBoxSuper.h" |
|---|
| 11 |
|
|---|
| 12 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 13 |
// CFileComboBox window |
|---|
| 14 |
|
|---|
| 15 |
class CFileComboBox : public CComboBoxSuper |
|---|
| 16 |
{ |
|---|
| 17 |
// Construction |
|---|
| 18 |
public: |
|---|
| 19 |
CFileComboBox(); |
|---|
| 20 |
|
|---|
| 21 |
// Attributes |
|---|
| 22 |
public: |
|---|
| 23 |
|
|---|
| 24 |
// Operations |
|---|
| 25 |
public: |
|---|
| 26 |
|
|---|
| 27 |
// Overrides |
|---|
| 28 |
// ClassWizard generated virtual function overrides |
|---|
| 29 |
//{{AFX_VIRTUAL(CFileComboBox) |
|---|
| 30 |
//}}AFX_VIRTUAL |
|---|
| 31 |
|
|---|
| 32 |
// Implementation |
|---|
| 33 |
public: |
|---|
| 34 |
virtual ~CFileComboBox(); |
|---|
| 35 |
void AddFiles(vector<string>& files) |
|---|
| 36 |
{ |
|---|
| 37 |
ResetContent(); |
|---|
| 38 |
for ( int i = 0 ; i < files.size(); i ++ ) |
|---|
| 39 |
{ |
|---|
| 40 |
AddString(files[i].c_str()); |
|---|
| 41 |
SetItemImage(i,0); |
|---|
| 42 |
|
|---|
| 43 |
} |
|---|
| 44 |
} |
|---|
| 45 |
|
|---|
| 46 |
void AddFile(CDocument * d ) ; |
|---|
| 47 |
void RemoveFile(CDocument * d ) ; |
|---|
| 48 |
// Generated message map functions |
|---|
| 49 |
protected: |
|---|
| 50 |
//{{AFX_MSG(CFileComboBox) |
|---|
| 51 |
afx_msg void OnSelchange(); |
|---|
| 52 |
//}}AFX_MSG |
|---|
| 53 |
|
|---|
| 54 |
DECLARE_MESSAGE_MAP() |
|---|
| 55 |
}; |
|---|
| 56 |
|
|---|
| 57 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 58 |
|
|---|
| 59 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 60 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 61 |
|
|---|
| 62 |
#endif // !defined(AFX_FILECOMBOBOX_H__41880963_A63F_4690_8FE6_BE6C8BBE64D8__INCLUDED_) |
|---|