5
// For compilers that support precompilation, includes "wx/wx.h".
12
// for all others, include the necessary headers (this file is usually all you
13
// need because it includes almost all "standard" wxWidgets headers)
18
#include "Windows/Control/DialogImpl.h"
20
#include "ListViewDialogRes.h"
22
class CListViewDialogImpl : public NWindows::NControl::CModalDialogImpl
25
CListViewDialogImpl(NWindows::NControl::CModalDialog *dialog,wxWindow * parent,int id) :
26
CModalDialogImpl(dialog,parent, id, wxT("ListView"), wxDefaultPosition, wxDefaultSize,
27
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxMAXIMIZE_BOX | wxMINIMIZE_BOX)
31
wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);
33
wxListCtrl *list = new wxListCtrl(this, IDC_LISTVIEW_LIST, wxDefaultPosition, wxSize(645,195), wxLC_REPORT | wxLC_NO_HEADER);
35
topsizer->Add(list, 1, wxALL|wxEXPAND, 5);
37
topsizer->Add(CreateButtonSizer(wxOK|wxCANCEL), 0, wxALL|wxEXPAND, 5);
41
SetSizer(topsizer); // use the sizer for layout
42
topsizer->SetSizeHints(this); // set size hints to honour minimum size
45
// Any class wishing to process wxWindows events must use this macro
49
REGISTER_DIALOG(IDD_DIALOG_LISTVIEW,CListViewDialog,0)
51
BEGIN_EVENT_TABLE(CListViewDialogImpl, wxDialog)
52
EVT_BUTTON(wxID_ANY, CModalDialogImpl::OnAnyButton)
53
EVT_CHECKBOX(wxID_ANY, CModalDialogImpl::OnAnyButton)