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.

79 lines
1.8 KiB

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