home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / appwiz / logowiz / cstm1dlg.h < prev    next >
C/C++ Source or Header  |  1998-03-05  |  2KB  |  65 lines

  1. // cstm1dlg.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CCustom1Dlg dialog
  15. //
  16. // This class handles the one custom step that is included in
  17. // "My Logo Appwizard".  You will have a class much like this
  18. // one for every custom step in your custom AppWizard.
  19.  
  20. class CCustom1Dlg : public CAppWizStepDlg
  21. {
  22. // Construction
  23. public:
  24.     CCustom1Dlg();
  25.     virtual BOOL OnDismiss();
  26.  
  27. // Dialog Data
  28.     //{{AFX_DATA(CCustom1Dlg)
  29.     enum { IDD = IDD_CUSTOM1 };
  30.     int     m_nLogoSpot;
  31.     int     m_nPressMe;
  32.     //}}AFX_DATA
  33. protected:
  34.     int     m_nLogoWidth;       // logo dimensions
  35.     int     m_nLogoHeight;
  36.     int     m_nPressWidth;      // 'press me' button dimensions
  37.     int     m_nPressHeight;
  38.  
  39. // Overrides
  40.     // ClassWizard generated virtual function overrides
  41.     //{{AFX_VIRTUAL(CCustom1Dlg)
  42.     protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.     //}}AFX_VIRTUAL
  45.  
  46. // Implementation
  47. private:
  48.     void SetSymbol(BOOL bWriteSymbol, LPCTSTR strName);
  49. protected:
  50.     void DrawLogo(int nOldID, int nNewID);
  51.     void DrawBitmap(CDC* pdc, int nBitmapID, int nLocID);
  52.     void EraseBitmap(CDC* pdc, int nLocID);
  53.     void GetBitmapRect(int nLocID, LPRECT rect);
  54.     int GetDlgBitmapID();
  55.     void SetBitmapSize(int nID, int* width, int* height);
  56.     // Generated message map functions
  57.     //{{AFX_MSG(CCustom1Dlg)
  58.     virtual BOOL OnInitDialog();
  59.     afx_msg void OnPaint();
  60.     afx_msg void OnPressMe();
  61.     //}}AFX_MSG
  62.     afx_msg void OnLogoClicked(UINT nCmdID);
  63.     DECLARE_MESSAGE_MAP()
  64. };
  65.