author | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
commit | 9938ea772d372ba955b7bc1f1c48a062c3a36f8a (patch) (unidiff) | |
tree | a98185df944e3a763f9557aa74bc2837b343f048 /ConfirmRRQDlg.cpp | |
download | pumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.zip pumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.tar.gz pumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.tar.bz2 |
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/pumpkin/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | ConfirmRRQDlg.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/ConfirmRRQDlg.cpp b/ConfirmRRQDlg.cpp new file mode 100644 index 0000000..361ad14 --- a/dev/null +++ b/ConfirmRRQDlg.cpp | |||
@@ -0,0 +1,67 @@ | |||
1 | // ConfirmRRQDlg.cpp : implementation file | ||
2 | // | ||
3 | |||
4 | #include "stdafx.h" | ||
5 | #include "PumpKIN.h" | ||
6 | #include "ConfirmRRQDlg.h" | ||
7 | #include "PumpKINDlg.h" | ||
8 | |||
9 | #ifdef _DEBUG | ||
10 | #define new DEBUG_NEW | ||
11 | #undef THIS_FILE | ||
12 | static char THIS_FILE[] = __FILE__; | ||
13 | #endif | ||
14 | |||
15 | ///////////////////////////////////////////////////////////////////////////// | ||
16 | // CConfirmRRQDlg dialog | ||
17 | |||
18 | |||
19 | CConfirmRRQDlg::CConfirmRRQDlg(CWnd* pParent /*=NULL*/) | ||
20 | : CDialog(CConfirmRRQDlg::IDD, pParent) | ||
21 | { | ||
22 | m_Daddy=NULL; | ||
23 | //{{AFX_DATA_INIT(CConfirmRRQDlg) | ||
24 | m_File = _T(""); | ||
25 | m_Host = _T(""); | ||
26 | //}}AFX_DATA_INIT | ||
27 | } | ||
28 | |||
29 | |||
30 | void CConfirmRRQDlg::DoDataExchange(CDataExchange* pDX) | ||
31 | { | ||
32 | CDialog::DoDataExchange(pDX); | ||
33 | //{{AFX_DATA_MAP(CConfirmRRQDlg) | ||
34 | DDX_Text(pDX, IDC_FILE, m_File); | ||
35 | DDX_Text(pDX, IDC_HOST, m_Host); | ||
36 | //}}AFX_DATA_MAP | ||
37 | } | ||
38 | |||
39 | |||
40 | BEGIN_MESSAGE_MAP(CConfirmRRQDlg, CDialog) | ||
41 | //{{AFX_MSG_MAP(CConfirmRRQDlg) | ||
42 | ON_WM_TIMER() | ||
43 | //}}AFX_MSG_MAP | ||
44 | END_MESSAGE_MAP() | ||
45 | |||
46 | ///////////////////////////////////////////////////////////////////////////// | ||
47 | // CConfirmRRQDlg message handlers | ||
48 | |||
49 | BOOL CConfirmRRQDlg::OnInitDialog() | ||
50 | { | ||
51 | CDialog::OnInitDialog(); | ||
52 | |||
53 | m_Daddy->m_Daddy->m_bnw.StartSound(m_Daddy->m_Daddy->m_bnwRequest); | ||
54 | if(m_Daddy->m_Daddy->m_PromptTimeOut) | ||
55 | SetTimer(1,m_Daddy->m_Daddy->m_PromptTimeOut*1000,NULL); | ||
56 | SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE); | ||
57 | |||
58 | return TRUE; // return TRUE unless you set the focus to a control | ||
59 | // EXCEPTION: OCX Property Pages should return FALSE | ||
60 | } | ||
61 | |||
62 | void CConfirmRRQDlg::OnTimer(UINT nIDEvent) | ||
63 | { | ||
64 | if(nIDEvent==1) | ||
65 | EndDialog(IDCANCEL); | ||
66 | CDialog::OnTimer(nIDEvent); | ||
67 | } | ||