-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdialogs.h
62 lines (51 loc) · 1.7 KB
/
dialogs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//****************************************************************************
//
// Copyright (c) ALTAP, spol. s r.o. All rights reserved.
//
// This is a part of the Altap Salamander SDK library.
//
// The SDK is provided "AS IS" and without warranty of any kind and
// ALTAP EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING,
// BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE and NON-INFRINGEMENT.
//
//****************************************************************************
#pragma once
//****************************************************************************
//
// CCommonDialog
//
// Dialog centered to the parent
//
class CCommonDialog :
public CDialog
{
public:
CCommonDialog(HINSTANCE hInstance, int resID, HWND hParent, CObjectOrigin origin = ooStandard);
CCommonDialog(HINSTANCE hInstance, int resID, int helpID, HWND hParent, CObjectOrigin origin = ooStandard);
~CCommonDialog() override = default;
protected:
INT_PTR DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
void NotifDlgJustCreated() override;
};
//
// ****************************************************************************
// CPasswordDialog
//
class CPasswordDialog :
public CCommonDialog
{
public:
// password buffer and size
char *m_buffer;
const int m_bufsize;
public:
CPasswordDialog(HWND parent, char *buffer, int bufsize);
~CPasswordDialog() override = default;
void Transfer(CTransferInfo &ti) override;
protected:
INT_PTR DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
void HidePassword(BOOL hide);
// show/hide password flag in edit box
static BOOL m_hide;
};