//*********************************************************************** // // BitmapDemo.h // //*********************************************************************** const int FONTHEIGHT = 72; class CMyApp : public CWinApp { public: virtual BOOL InitInstance (); }; class CMainWindow : public CFrameWnd { private: void DoDrawText (CDC*, CRect*); void DoGradientFill (CDC*, CRect*); CBitmap m_bitmap; public: CMainWindow (); protected: afx_msg int OnCreate (LPCREATESTRUCT); afx_msg BOOL OnEraseBkgnd (CDC*); afx_msg void OnPaint (); afx_msg void OnTimer(UINT); afx_msg void OnOptionsExit (); DECLARE_MESSAGE_MAP () };