wavelength 1.0.0
Loading...
Searching...
No Matches
IntDialog.h
Go to the documentation of this file.
1#pragma once
2
3#include <afxwin.h>
4
6#include "utl/Str.h"
7
13class CIntDialog : public CDialog {
14public:
21 CIntDialog(CWnd *parent);
22
24 virtual ~CIntDialog();
25
32 virtual int DoModal();
33
40 void SetTitle(String title) {
41 mTitle = title;
42 }
43
45 enum { IDD = IDD_INTDIALOG };
46
47protected:
54 virtual void DoDataExchange(CDataExchange *pDX);
55
62 virtual BOOL OnInitDialog();
63
64 DECLARE_MESSAGE_MAP()
65
66private:
67 int mValue;
68 String mTitle;
69};
#define IDD_INTDIALOG
Definition Resource.h:10
virtual void DoDataExchange(CDataExchange *pDX)
Exchange the number with the edit control, limiting it to 0 to 10000.
virtual BOOL OnInitDialog()
Show the caption.
virtual ~CIntDialog()
virtual int DoModal()
Show the dialogue.
CIntDialog(CWnd *parent)
Prepare the dialogue with a value of zero.
@ IDD
Definition IntDialog.h:45
void SetTitle(String title)
Set the caption the dialogue shows.
Definition IntDialog.h:40
Growable text buffer that is also a PrnStream.
Definition string.h:19