home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / advframe / tstdlg / dialog.hpp < prev    next >
C/C++ Source or Header  |  1996-10-29  |  1KB  |  42 lines

  1. #ifndef _DIALOG_
  2. #define _DIALOG_
  3. //************************************************************
  4. // Advanced Frame - Dialog Window Example
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <iframe.hpp>
  11. #include <ireslib.hpp>
  12.  
  13. class DialogHandler;
  14.  
  15. class DialogWindow : public IFrameWindow {
  16. public:
  17. // Use this to construct a dialog using
  18. // your own dialog procedure.
  19.   DialogWindow( const IResourceId& resId,
  20.                 IWindow*           owner,
  21.                 IWinProc*          dlgProc = 0,
  22.                 void*              pCreateParms = 0 );
  23.  
  24. // Use this to construct a dialog using
  25. // your own dialog handler.
  26.   DialogWindow( const IResourceId& resId,
  27.                 IWindow*           owner,
  28.                 DialogHandler&     dlgHandler,
  29.                 void*              pCreateParms = 0 );
  30. protected:
  31. void
  32.   loadDialog ( const IResourceId& resId,
  33.                IWindow*           owner,
  34.                IWinProc*          dlgProc,
  35.                void*              pCreateParms );
  36. private:
  37. DialogWindow (const DialogWindow&);
  38. DialogWindow& operator= (const DialogWindow&);
  39. }; // class DialogWindow
  40.  
  41. #endif // _DIALOG_
  42.