1// PasswordDialog.h
2
3#ifndef __PASSWORD_DIALOG_H
4#define __PASSWORD_DIALOG_H
5
6#include "../../../Windows/Control/Dialog.h"
7#include "../../../Windows/Control/Edit.h"
8
9#include "PasswordDialogRes.h"
10
11class CPasswordDialog: public NWindows::NControl::CModalDialog
12{
13  NWindows::NControl::CEdit _passwordEdit;
14
15  virtual void OnOK();
16  virtual bool OnInit();
17  virtual bool OnButtonClicked(int buttonID, HWND buttonHWND);
18  void SetTextSpec();
19  void ReadControls();
20public:
21  UString Password;
22  bool ShowPassword;
23
24  CPasswordDialog(): ShowPassword(false) {}
25  INT_PTR Create(HWND parentWindow = 0) { return CModalDialog::Create(IDD_PASSWORD, parentWindow); }
26};
27
28#endif
29