www.pudn.com > L14.zip > B14Dlg.h
// B14Dlg.h : header file // #ifndef __SCREENSAVERDLG_H__ #define __SCREENSAVERDLG_H__ ///////////////////////////////////////////////////////////////////////////// // CB14Dlg: // A configuration dialog for Win95+, WinNT3+ compliant screen savers. // For use with CScreenSaverWnd, usually found in ScreenSaverWnd.cpp and .h. // See documentation in those files for more information on screen savers. ///////////////////////////////////////////////////////////////////////////// #include// Note: the dialog resource should be DLG_SCRNSAVECONFIGURE. // Note: the icon resource should be ID_APP. class CB14Dlg : public CDialog { DECLARE_DYNAMIC(CB14Dlg) public: CB14Dlg(); // Attributes protected: public: // Operations public: // Overridables public: // Overrides public: //{{AFX_VIRTUAL(CB14Dlg) //}}AFX_VIRTUAL virtual BOOL OnInitDialog(); // Implementation public: virtual ~CB14Dlg(); static CB14Dlg* sm_pTheConfigureDialog; protected: virtual LRESULT WindowProc(UINT uMsg,WPARAM wParam,LPARAM lParam); virtual LRESULT DefWindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam); //{{AFX_MSG(CB14Dlg) afx_msg void OnNcDestroy(); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG DECLARE_MESSAGE_MAP() //friend BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, // WPARAM wParam, // LPARAM lParam); }; ///////////////////////////////////////////////////////////////////////////// inline CB14Dlg* AfxGetScreenSaverDialog() { return CB14Dlg::sm_pTheConfigureDialog; } ///////////////////////////////////////////////////////////////////////////// BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); BOOL WINAPI RegisterDialogClasses(HANDLE hInstance); ///////////////////////////////////////////////////////////////////////////// #endif // __SCREENSAVERDLG_H__