///////////////////////////////////////////////////////////////////////////// // FILE : ppFaxServerSentItems.h // // // // DESCRIPTION : Fax Server Sent Items prop page header file // // // // AUTHOR : yossg // // // // HISTORY : // // Oct 27 1999 yossg created // // Nov 3 1999 yossg OnInitDialog, SetProps // // Nov 15 1999 yossg Call RPC func // // Dec 10 2000 yossg Update Windows XP // // // // Copyright (C) 1999 Microsoft Corporation All Rights Reserved // ///////////////////////////////////////////////////////////////////////////// #ifndef _PP_FAXSERVER_SENTITEMS_H_ #define _PP_FAXSERVER_SENTITEMS_H_ #include "MyCtrls.h" #include #include class CFaxServerNode; class CFaxServer; ///////////////////////////////////////////////////////////////////////////// // CppFaxServerSentItems dialog class CppFaxServerSentItems : public CPropertyPageExImpl { public: // // Constructor // CppFaxServerSentItems( LONG_PTR hNotificationHandle, CSnapInItem *pNode, BOOL fIsLocalServer, HINSTANCE hInst); // // Destructor // ~CppFaxServerSentItems(); enum { IDD = IDD_FAXSERVER_SENTITEMS }; BEGIN_MSG_MAP(CppFaxServerSentItems) MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog ) COMMAND_HANDLER( IDC_SENT_BROWSE_BUTTON, BN_CLICKED, BrowseForDirectory) COMMAND_HANDLER( IDC_SENT_TO_ARCHIVE_CHECK, BN_CLICKED, ToArchiveCheckboxClicked) COMMAND_HANDLER( IDC_FOLDER_EDIT, EN_CHANGE, OnEditBoxChanged ) COMMAND_HANDLER( IDC_SENT_GENERATE_WARNING_CHECK, BN_CLICKED, GenerateEventLogCheckboxClicked) COMMAND_HANDLER( IDC_SENT_LOW_EDIT, EN_CHANGE, OnEditBoxChanged ) COMMAND_HANDLER( IDC_SENT_HIGH_EDIT, EN_CHANGE, OnEditBoxChanged ) COMMAND_HANDLER( IDC_SENT_AUTODEL_CHECK, BN_CLICKED, AutoDelCheckboxClicked) COMMAND_HANDLER( IDC_SENT_AUTODEL_EDIT, EN_CHANGE, OnEditBoxChanged ) MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest) MESSAGE_HANDLER( WM_HELP, OnHelpRequest) CHAIN_MSG_MAP(CSnapInPropertyPageImpl) END_MSG_MAP() // // Dialog's Handler and events. // HRESULT InitRPC( ); LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled ); BOOL OnApply(); HRESULT SetProps(int *pCtrlFocus, UINT * puIds); HRESULT PreApply(int *pCtrlFocus, UINT * puIds); private: // // Control members // CEdit m_FolderBox; CButton m_BrowseButton; CMyUpDownCtrl m_HighWatermarkSpin; CMyUpDownCtrl m_LowWatermarkSpin; CMyUpDownCtrl m_AutoDelSpin; CEdit m_HighWatermarkBox; CEdit m_LowWatermarkBox; CEdit m_AutoDelBox; // // Boolean members // BOOL m_fAllReadyToApply; BOOL m_fIsDialogInitiated; BOOL m_fIsDirty; BOOL m_fIsLocalServer; // // Config Structure member // PFAX_ARCHIVE_CONFIG m_pFaxArchiveConfig; CComBSTR m_bstrLastGoodFolder; DWORD m_dwLastGoodSizeQuotaHighWatermark; DWORD m_dwLastGoodSizeQuotaLowWatermark; // // Handlers // CFaxServerNode * m_pParentNode; // // Browse // BOOL BrowseForDirectory(WORD wNotifyCode, WORD wID, HWND hwndDlg, BOOL& bHandled); // // Event methods // LRESULT ToArchiveCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT GenerateEventLogCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT AutoDelCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT OnEditBoxChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); BOOL AllReadyToApply(BOOL fSilent, int *pCtrlFocus = NULL, UINT *pIds = NULL); // // Help // LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); }; #endif // _PP_FAXSERVER_SENTITEMS_H_