home *** CD-ROM | disk | FTP | other *** search
- #ifndef __WMLOOKUP__
- #define __WMLOOKUP
-
- // restool has generated the following header code from wmlookup.res
- // the restool generated code has been modified
- ///////////////////////////////////////////////////////////
- // class CDlgLookUp manages the MAKEINTRESOURCE(100) dialog resource
-
- const LPSTR lpszNotFound = "Message Not Found!" ;
- const UINT idLookUp = IDOK ;
- const UINT idMessageID = 102 ;
- const UINT idMessageText = 104 ;
- char msgType[] = "WM_" ;
-
- class CMessages : public CObject
- {
- DECLARE_SERIAL( CMessages )
-
- public:
- CMessages() {};
-
- CString messageText ;
-
- virtual void Serialize( CArchive& archive) ;
- };
-
- class CDlgLookUp : public CDialog
- {
- public:
- CDlgLookUp() ;
- ~CDlgLookUp() ;
-
- // label 'Message &ID:'
- CEdit& MessageIDEdit()
- { return *((CEdit*) GetDlgItem(idMessageID)); }
- CButton& DecimalCheck()
- { return *((CButton*) GetDlgItem(103)); }
- CButton& LookupButton()
- { return *((CButton*) GetDlgItem(idLookUp)); }
- CButton& CancelButton()
- { return *((CButton*) GetDlgItem(IDCANCEL)); }
- // label 'Message &Text:'
- CListBox& MessageTextList()
- { return *((CListBox*) GetDlgItem(idMessageText)); }
-
- // Operations
- void OnCancel() ;
-
- void OnOK() ;
-
- void OnClose() { OnCancel(); } ;
-
- // Implementation
- BOOL buildMap() ;
- void fileListBox() ;
-
-
- private:
- BOOL OnInitDialog();
-
- static BOOL bRegistered ;
- static BOOL RegisterMyClass() ;
-
- CMapWordToOb *pMap ;
-
-
- DECLARE_MESSAGE_MAP()
-
- };
-
-
- #endif
-