1 // MessagesDialog.h
2 
3 #ifndef __MESSAGES_DIALOG_H
4 #define __MESSAGES_DIALOG_H
5 
6 #include "../../../Windows/Control/Dialog.h"
7 #include "../../../Windows/Control/ListView.h"
8 
9 #include "MessagesDialogRes.h"
10 
11 class CMessagesDialog: public NWindows::NControl::CModalDialog
12 {
13   NWindows::NControl::CListView _messageList;
14 
15   void AddMessageDirect(LPCWSTR message);
16   void AddMessage(LPCWSTR message);
17   virtual bool OnInit();
18   virtual bool OnSize(WPARAM wParam, int xSize, int ySize);
19 public:
20   const UStringVector *Messages;
21 
22   INT_PTR Create(HWND parent = 0) { return CModalDialog::Create(IDD_MESSAGES, parent); }
23 };
24 
25 #endif
26