Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.2 KiB

  1. #pragma once
  2. class CPostProcessAdd : public CPropertyPageImpl<CPostProcessAdd>
  3. {
  4. typedef CPropertyPageImpl<CPostProcessAdd> BaseClass;
  5. public:
  6. struct CmdInfo
  7. {
  8. CString strText;
  9. DWORD dwTimeout;
  10. bool bIgnoreErrors;
  11. };
  12. typedef std::vector<CmdInfo> TCmdList;
  13. enum{ IDD = IDD_WPEXP_POSTPROCESS };
  14. BEGIN_MSG_MAP(CPostProcessAdd)
  15. COMMAND_ID_HANDLER( IDC_ADDFILE, OnAddFile );
  16. COMMAND_ID_HANDLER( IDC_ADDCMD, OnAddCmd );
  17. COMMAND_ID_HANDLER( IDC_DELFILE, OnDelFile );
  18. COMMAND_ID_HANDLER( IDC_DELCMD, OnDelCmd );
  19. COMMAND_ID_HANDLER( IDC_EDITCMD, OnEditCmd );
  20. COMMAND_CODE_HANDLER( LBN_SELCHANGE, LBSelChanged );
  21. COMMAND_CODE_HANDLER( LBN_DBLCLK, LBDoubleClick );
  22. COMMAND_ID_HANDLER( IDC_MOVEUP, OnMoveUp );
  23. COMMAND_ID_HANDLER( IDC_MOVEDOWN, OnMoveDown );
  24. CHAIN_MSG_MAP(BaseClass)
  25. END_MSG_MAP()
  26. CPostProcessAdd ( CWizardSheet* pTheSheet );
  27. LRESULT OnAddFile ( WORD wNotifyCode, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& bHandled );
  28. LRESULT OnDelFile ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  29. LRESULT LBSelChanged ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  30. LRESULT OnAddCmd ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  31. LRESULT OnDelCmd ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  32. LRESULT OnEditCmd ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  33. LRESULT LBDoubleClick ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  34. LRESULT OnMoveUp ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  35. LRESULT OnMoveDown ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  36. int OnWizardNext ( void );
  37. private:
  38. void LBSwapElements ( HWND hwndLB, int iSrc, int iTarget );
  39. // SHared data
  40. public:
  41. TStringList m_Files;
  42. TCmdList m_Commands;
  43. private:
  44. CWizardSheet* m_pTheSheet;
  45. CString m_strTitle;
  46. CString m_strSubTitle;
  47. };