summaryrefslogtreecommitdiffabout
path: root/ConfirmWRQDlg.cpp
authorMichael Krelin <hacker@klever.net>2012-12-08 21:19:17 (UTC)
committer Michael Krelin <hacker@klever.net>2012-12-11 21:59:29 (UTC)
commit8808689fe340bec6e90ab13dd502292b0579cf1f (patch) (side-by-side diff)
tree45b7c863151341f687b74e40bffcbd7ab5468783 /ConfirmWRQDlg.cpp
parent6e7e413ca364d79673e523c09767c18e7cff1bec (diff)
downloadpumpkin-osx/0.0.zip
pumpkin-osx/0.0.tar.gz
pumpkin-osx/0.0.tar.bz2
initial osx portosx/0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'ConfirmWRQDlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--ConfirmWRQDlg.cpp89
1 files changed, 0 insertions, 89 deletions
diff --git a/ConfirmWRQDlg.cpp b/ConfirmWRQDlg.cpp
deleted file mode 100644
index c0380e3..0000000
--- a/ConfirmWRQDlg.cpp
+++ b/dev/null
@@ -1,89 +0,0 @@
-// ConfirmWRQDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "PumpKIN.h"
-#include "ConfirmWRQDlg.h"
-
-#include "PumpKINDlg.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CConfirmWRQDlg dialog
-
-
-CConfirmWRQDlg::CConfirmWRQDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CConfirmWRQDlg::IDD, pParent)
-{
- //{{AFX_DATA_INIT(CConfirmWRQDlg)
- m_File = _T("");
- m_Host = _T("");
- //}}AFX_DATA_INIT
-}
-
-
-void CConfirmWRQDlg::DoDataExchange(CDataExchange* pDX)
-{
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CConfirmWRQDlg)
- DDX_Control(pDX, IDC_RESUME, m_ResumeCtl);
- DDX_Control(pDX, IDOK, m_OkCtl);
- DDX_Control(pDX, IDC_RENAME, m_RenameCtl);
- DDX_Text(pDX, IDC_FILE, m_File);
- DDX_Text(pDX, IDC_HOST, m_Host);
- //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CConfirmWRQDlg, CDialog)
- //{{AFX_MSG_MAP(CConfirmWRQDlg)
- ON_BN_CLICKED(IDC_RENAME, OnRename)
- ON_WM_TIMER()
- ON_BN_CLICKED(IDC_RESUME, OnResume)
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CConfirmWRQDlg message handlers
-
-void CConfirmWRQDlg::OnRename()
-{
- EndDialog(IDC_RENAME);
-}
-
-BOOL CConfirmWRQDlg::OnInitDialog()
-{
- CDialog::OnInitDialog();
-
- m_Daddy->m_Daddy->m_bnw.StartSound(m_Daddy->m_Daddy->m_bnwRequest);
- if(m_Daddy->m_Daddy->m_PromptTimeOut)
- SetTimer(1,m_Daddy->m_Daddy->m_PromptTimeOut*1000,NULL);
- SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE);
- m_ResumeCtl.EnableWindow(m_Daddy->m_bResume);
- if(m_Daddy->m_Rename){
- m_OkCtl.SetButtonStyle(m_OkCtl.GetButtonStyle()&~BS_DEFPUSHBUTTON);
- m_RenameCtl.SetButtonStyle(m_RenameCtl.GetButtonStyle()|BS_DEFPUSHBUTTON);
- m_RenameCtl.SetFocus();
- return FALSE;
- }
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-void CConfirmWRQDlg::OnTimer(UINT nIDEvent)
-{
- if(nIDEvent==1)
- EndDialog(IDCANCEL);
- CDialog::OnTimer(nIDEvent);
-}
-
-void CConfirmWRQDlg::OnResume()
-{
- EndDialog(IDC_RESUME);
-}