Go to the documentation of this file.00001
00002 #ifndef vgui_mfc_dialog_impl_h_
00003 #define vgui_mfc_dialog_impl_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 class CFont;
00025
00026 #include <vgui/internals/vgui_dialog_impl.h>
00027 #include "StdAfx.h"
00028 #undef MAX_ITEMS // also defined in vgui_mfc_dialog_extensions_impl.h
00029 #define MAX_ITEMS 255
00030
00031 #undef ID_BROWSE_FILES // also defined in vgui_mfc_dialog_extensions_impl.h
00032 #define ID_BROWSE_FILES 0x8000 // Assume that there won't be more than 100 browser buttons
00033 #undef ID_CHOOSE_COLOUR // also defined in vgui_mfc_dialog_extensions_impl.h
00034 #define ID_CHOOSE_COLOUR 0x8100 // Assume that there won't be more than 100 color chooser buttons
00035 #undef ID_EDIT // also defined in vgui_mfc_dialog_extensions_impl.h
00036 #define ID_EDIT 0x8200
00037 #undef ID_COMBOBOX // also defined in vgui_mfc_dialog_extensions_impl.h
00038 #define ID_COMBOBOX 0x8300
00039
00040
00041
00042
00043
00044 class vgui_mfc_dialog_impl : public CDialog,public vgui_dialog_impl
00045 {
00046 public:
00047 vgui_mfc_dialog_impl(const char* name);
00048 ~vgui_mfc_dialog_impl();
00049
00050 void* choice_field_widget(const char*, const vcl_vector<vcl_string>&, int&);
00051 void* inline_tableau_widget(const vgui_tableau_sptr tab, unsigned width, unsigned height);
00052
00053
00054
00055
00056
00057 void modal(bool ) {}
00058
00059 bool ask();
00060 protected:
00061 LOGFONT m_logfont;
00062
00063 virtual void OnOk();
00064
00065 virtual void OnCancel();
00066
00067 virtual void OnBrowse(UINT uID);
00068
00069 virtual void OnChooseColour(UINT uID);
00070
00071 afx_msg void OnClose();
00072 protected:
00073 int nResult;
00074
00075 int count_fbsr;
00076
00077 int count_csr;
00078 bool ok_clicked;
00079
00080 CWnd *fbsrs[100];
00081
00082 CWnd *csrs[100];
00083
00084 CWnd *dialog_box;
00085 vcl_vector<CWnd *> wlist;
00086
00087 vcl_vector<CWnd *> awlist;
00088 DECLARE_MESSAGE_MAP()
00089
00090 CFont* font;
00091 };
00092
00093 #endif // vgui_mfc_dialog_impl_h_