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