home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 March / EnterCD 03_2003.iso / Multimedia / IntelliCAD 2001 3.3 / data1.cab / API / sds / SdsDialog.h < prev   
Encoding:
C/C++ Source or Header  |  2003-01-05  |  1.6 KB  |  63 lines

  1. /* F:\RC98C\PRJ\API\SDS\SDSDIALOG.H
  2.  * Copyright (C) 1997-1998 Visio Corporation. All rights reserved.
  3.  * 
  4.  * Abstract
  5.  *    Classes to facilitate creation of modal dialogs from SDS applications
  6.  *    written as MFC Extension DLLs.
  7.  * 
  8.  *    $Revision: 1.1.1.1 $ $Date: 2000/01/19 13:41:15 $
  9.  *
  10.  */ 
  11.  
  12. #ifndef _SDSDIALOG_H
  13. #define _SDSDIALOG_H
  14.  
  15. #ifndef __AFXDLGS_H__
  16. #error    #include "SdsDialog.h" must follow #include <afxdlgs.h>
  17. #endif
  18.  
  19. class SdsDialog : public CDialog
  20.     {
  21. public:
  22.     SdsDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL )
  23.         : CDialog( lpszTemplateName, pParentWnd) {}
  24.     SdsDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL )
  25.         : CDialog( nIDTemplate, pParentWnd) {}
  26.  
  27.     static UINT    GetDoModalMsg();
  28.     static int SendDoModalMsg( CDialog *);
  29.     static int SendDoModalMsg( CPropertySheet *);
  30.  
  31.     int DoModal();
  32.  
  33. protected:
  34.     static UINT m_doModalMsg;
  35.     };
  36.  
  37.  
  38. class SdsPropertyPage : public CPropertyPage
  39.     {
  40. public:
  41.     SdsPropertyPage( UINT nIDTemplate, UINT nIDCaption = 0  )
  42.         : CPropertyPage( nIDTemplate, nIDCaption) {}
  43.     SdsPropertyPage( LPCTSTR lpszTemplateName, UINT nIDCaption  = 0 )
  44.         : CPropertyPage( lpszTemplateName, nIDCaption) {}
  45.  
  46.     int DoModal();
  47.     };
  48.  
  49.  
  50. class SdsPropertySheet : public CPropertySheet
  51.     {
  52. public:
  53.     SdsPropertySheet( UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0  )
  54.         : CPropertySheet( nIDCaption, pParentWnd, iSelectPage) {}
  55.     SdsPropertySheet( LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0 )
  56.         : CPropertySheet( pszCaption, pParentWnd, iSelectPage) {}
  57.  
  58.     int DoModal();
  59.     };
  60.  
  61.  
  62. #endif
  63.