ftaction.h
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:

系统编程

开发平台:

Visual C++

  1. #ifndef FTACTION_H
  2. #define FTACTION_H
  3. #include "ftdlg.h"
  4. class CFTActionDlg : public CFTDlg
  5. {
  6. public:
  7.     CFTActionDlg(PROGIDACTION* pProgIDAction, LPTSTR pszProgIDDescr, BOOL fEdit, 
  8.         BOOL fAutoDelete = FALSE);
  9.     ~CFTActionDlg();
  10. public:
  11.     void SetShowAgain();
  12. ///////////////////////////////////////////////////////////////////////////////
  13. //  Implementation
  14. private:
  15. // Message handlers
  16.     //Dialog messages
  17.     LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
  18.     LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam);
  19.     LRESULT OnDestroy(WPARAM wParam, LPARAM lParam);
  20.     //Control specific
  21.     LRESULT OnOK(WORD wNotif);
  22.     LRESULT OnCancel(WORD wNotif);
  23.     LRESULT OnUseDDE(WORD wNotif);
  24.     LRESULT OnBrowse(WORD wNotif);
  25. private:
  26. // Member variables
  27.     PROGIDACTION* _pProgIDAction;
  28.     LPTSTR _pszProgIDDescr;
  29.     BOOL _fEdit;
  30.     // used when need to reshow dlg because user entered bad data
  31.     BOOL _fShowAgain;
  32. ///////////////////////////////////////////////////////////////////////////////
  33. //  Helpers
  34. private:
  35.     // AssocStore
  36.     BOOL _Validate();
  37.     void _ResizeDlgForDDE(BOOL fShow);
  38. };
  39. #endif //FTACTION_H