ftdlg.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef FTDLG_H
  2. #define FTDLG_H
  3. class IAssocStore;
  4. class CFTDlg
  5. {
  6. public:
  7.     CFTDlg(ULONG_PTR ulpAHelpIDsArray, BOOL fAutoDelete);
  8.     virtual ~CFTDlg();
  9. public:
  10.     INT_PTR DoModal(HINSTANCE hinst, LPTSTR pszResource, HWND hwndParent);
  11. protected:
  12.     virtual LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
  13.     virtual LRESULT OnNotify(WPARAM wParam, LPARAM lParam);
  14.     virtual LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam) = 0;
  15.     virtual LRESULT OnDestroy(WPARAM wParam, LPARAM lParam);
  16.     virtual LRESULT OnOK(WORD wNotif);
  17.     virtual LRESULT OnCancel(WORD wNotif);
  18.     LRESULT OnCtrlSetFocus(WPARAM wParam, LPARAM lParam);
  19.     virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
  20.     LRESULT DefWndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
  21.     static LRESULT DefWndProc(HWND hwnd, UINT uMsg, WPARAM wParam,
  22.                                                LPARAM lParam);
  23.     ULONG_PTR GetHelpIDsArray();
  24. // Misc
  25.     void SetHWND(HWND hwnd) { _hwnd = hwnd; }
  26.     void ResetHWND() { _hwnd = NULL; }
  27.     HRESULT _InitAssocStore();
  28.     static void MakeDefaultProgIDDescrFromExt(LPTSTR pszProgIDDescr, DWORD dwProgIDDescr,
  29.         LPTSTR pszExt);
  30. protected:
  31.     HWND            _hwnd;
  32.     HCURSOR         _hcursorWait;
  33.     HCURSOR         _hcursorOld;
  34.     BOOL            _fAutoDelete;
  35.     ULONG_PTR       _rgdwHelpIDsArray;
  36.     // Our connection to the data
  37.     IAssocStore*    _pAssocStore;
  38. public:
  39.     static BOOL_PTR CALLBACK FTDlgWndProc(HWND hwnd, UINT uMsg, 
  40.         WPARAM wParam, LPARAM lParam);
  41. };
  42. #endif //FTDLG_H