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.

84 lines
1.8 KiB

  1. // FaxClientPg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #define __FILE_ID__ 74
  5. #ifdef _DEBUG
  6. #undef THIS_FILE
  7. static char THIS_FILE[]=__FILE__;
  8. #define new DEBUG_NEW
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CFaxClientPg property page
  12. IMPLEMENT_DYNCREATE(CFaxClientPg, CPropertyPage)
  13. CFaxClientPg::CFaxClientPg(
  14. UINT nIDTemplate,
  15. UINT nIDCaption
  16. ) :CPropertyPage(nIDTemplate, nIDCaption)
  17. {
  18. //
  19. // hide the Help button
  20. //
  21. m_psp.dwFlags &= ~PSP_HASHELP;
  22. }
  23. CFaxClientPg::~CFaxClientPg()
  24. {
  25. }
  26. void CFaxClientPg::DoDataExchange(CDataExchange* pDX)
  27. {
  28. CPropertyPage::DoDataExchange(pDX);
  29. //{{AFX_DATA_MAP(CFaxClientPg)
  30. // NOTE: the ClassWizard will add DDX and DDV calls here
  31. //}}AFX_DATA_MAP
  32. }
  33. BEGIN_MESSAGE_MAP(CFaxClientPg, CPropertyPage)
  34. //{{AFX_MSG_MAP(CFaxClientPg)
  35. ON_MESSAGE(WM_HELP, OnHelp)
  36. ON_WM_CONTEXTMENU()
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CFaxClientPg message handlers
  41. LONG
  42. CFaxClientPg::OnHelp(
  43. WPARAM wParam,
  44. LPARAM lParam
  45. )
  46. {
  47. DWORD dwRes = ERROR_SUCCESS;
  48. DBG_ENTER(TEXT("CFaxClientPg::OnHelp"));
  49. dwRes = WinHelpContextPopup(((LPHELPINFO)lParam)->dwContextId, m_hWnd);
  50. if(ERROR_SUCCESS != dwRes)
  51. {
  52. CALL_FAIL (GENERAL_ERR, TEXT("WinHelpContextPopup"),dwRes);
  53. }
  54. return TRUE;
  55. }
  56. void
  57. CFaxClientPg::OnContextMenu(
  58. CWnd* pWnd,
  59. CPoint point
  60. )
  61. {
  62. DWORD dwRes = ERROR_SUCCESS;
  63. DBG_ENTER(TEXT("CFaxClientPg::OnContextMenu"));
  64. dwRes = WinHelpContextPopup(pWnd->GetWindowContextHelpId(), m_hWnd);
  65. if(ERROR_SUCCESS != dwRes)
  66. {
  67. CALL_FAIL (GENERAL_ERR, TEXT("WinHelpContextPopup"),dwRes);
  68. }
  69. }