home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / c / WMLOOKUP.ZIP / WMLOOKUP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-03  |  1.5 KB  |  73 lines

  1. #ifndef __WMLOOKUP__
  2. #define __WMLOOKUP
  3.  
  4. // restool has generated the following header code from wmlookup.res
  5. // the restool generated code has been modified
  6. ///////////////////////////////////////////////////////////
  7. // class CDlgLookUp manages the MAKEINTRESOURCE(100) dialog resource
  8.  
  9. const LPSTR lpszNotFound = "Message Not Found!" ;
  10. const UINT idLookUp = IDOK ;
  11. const UINT idMessageID = 102 ;
  12. const UINT idMessageText = 104 ;
  13. char msgType[] = "WM_" ;
  14.  
  15. class CMessages : public CObject
  16. {
  17.     DECLARE_SERIAL( CMessages )
  18.         
  19.     public:
  20.         CMessages() {};
  21.         
  22.         CString messageText ;
  23.         
  24.         virtual void Serialize( CArchive& archive) ;
  25. };
  26.  
  27. class CDlgLookUp : public CDialog
  28. {
  29. public:
  30.     CDlgLookUp() ;
  31.     ~CDlgLookUp() ;
  32.     
  33.     // label 'Message &ID:'
  34.     CEdit&     MessageIDEdit()
  35.             { return *((CEdit*) GetDlgItem(idMessageID)); } 
  36.     CButton& DecimalCheck()
  37.             { return *((CButton*) GetDlgItem(103)); } 
  38.     CButton& LookupButton()
  39.             { return *((CButton*) GetDlgItem(idLookUp)); } 
  40.     CButton& CancelButton()
  41.             { return *((CButton*) GetDlgItem(IDCANCEL)); } 
  42.     // label 'Message &Text:'
  43.     CListBox&     MessageTextList()
  44.             { return *((CListBox*) GetDlgItem(idMessageText)); } 
  45.  
  46.     // Operations
  47.         void OnCancel() ;
  48.     
  49.         void OnOK() ;
  50.         
  51.         void OnClose() { OnCancel(); } ;
  52.  
  53.     // Implementation
  54.         BOOL buildMap() ;
  55.         void fileListBox() ;
  56.     
  57.  
  58. private:
  59.     BOOL OnInitDialog();
  60.     
  61.     static BOOL bRegistered ;
  62.     static BOOL RegisterMyClass() ;
  63.  
  64.     CMapWordToOb *pMap ;
  65.  
  66.     
  67.     DECLARE_MESSAGE_MAP() 
  68.  
  69. };
  70.  
  71.  
  72. #endif
  73.