class cwinapp : public cwinthread{declare_dynamic(cwinapp)public:// constructorcwinapp(lpctstr lpszappname = null); // app name defaults to exe name// attributes// startup args (do not change)hinstance m_hinstance;hinstance m_hprevinstance;lptstr m_lpcmdline;int m_ncmdshow;// running args (can be changed in initinstance)lpctstr m_pszappname; // human readable name// (from constructor or afx_ids_app_title)lpctstr m_pszregistrykey; // used for registry entriescdocmanager* m_pdocmanager;// support for shift+f1 help mode.bool m_bhelpmode; // are we in shift+f1 mode?public: // set in constructor to override defaultlpctstr m_pszexename; // executable name (no spaces)lpctstr m_pszhelpfilepath; // default based on module pathlpctstr m_pszprofilename; // default based on app name// initialization operations - should be done in initinstanceprotected:void loadstdprofilesettings(uint nmaxmru = _afx_mru_count); // load mru file list and last preview statevoid enableshellopen();#ifndef _afx_no_graydlg_supportvoid setdialogbkcolor(colorref clrctlbk = rgb(192, 192, 192),colorref clrctltext = rgb(0, 0, 0));// set dialog box and message box background color#endifvoid setregistrykey(lpctstr lpszregistrykey);void setregistrykey(uint nidregistrykey);// enables app settings in registry instead of ini files// (registry key is usually a "company name")#ifndef _afx_no_ctl3d_supportbool enable3dcontrols(); // use ctl3d32.dll for 3d controls in dialogs#ifndef _afxdllboo... 下一页