/*
 * Copyright (c) 2003-2007 Rony Shapiro <ronys@users.sourceforge.net>.
 * All rights reserved. Use of the code is allowed under the
 * Artistic License 2.0 terms, as specified in the LICENSE file
 * distributed with this code, or available from
 * http://www.opensource.org/licenses/artistic-license-2.0.php
 */

/*
 * PasswordSafe-specific base class for child dialog boxes
 *
 * All dialog box classes whose instances are children of the
 * main dialog box (DboxMain) should be derived from ths class
 * instead of directly from CDialog
 */

#ifndef __PWDIALOG_H
#define __PWDIALOG_H
#include <afxwin.h>

#if defined(POCKET_PC)
#include "pocketpc/resource.h"
#else
#include "resource.h"
#include "resource2.h"  // Menu, Toolbar & Accelerator resources
#include "resource3.h"  // String resources
#endif

#if defined(POCKET_PC)
#include "pocketpc/PwsPopupDialog.h"
typedef	CPwsPopupDialog CPWDialog;
#else
class CPWDialog : public CDialog
{
 protected:
  CPWDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL)
    : CDialog(nIDTemplate, pParentWnd) {}
  // Following override to reset idle timeout on any event
  virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
 public:
  DECLARE_DYNAMIC(CPWDialog)
};
#endif /* POCKET_PC */

#endif /* __PWDIALOG_H */
