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.

61 lines
1.4 KiB

  1. // AddGroupDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ConfigTest.h"
  5. #include "AddGroupDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. typedef unsigned long ULONG_PTR, *PULONG_PTR;
  12. typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
  13. #include "..\..\..\inc\fxsapip.h"
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CAddGroupDlg dialog
  16. CAddGroupDlg::CAddGroupDlg(HANDLE hFax, CWnd* pParent /*=NULL*/)
  17. : CDialog(CAddGroupDlg::IDD, pParent),
  18. m_hFax (hFax)
  19. {
  20. //{{AFX_DATA_INIT(CAddGroupDlg)
  21. m_cstrGroupName = _T("<All devices>");
  22. //}}AFX_DATA_INIT
  23. }
  24. void CAddGroupDlg::DoDataExchange(CDataExchange* pDX)
  25. {
  26. CDialog::DoDataExchange(pDX);
  27. //{{AFX_DATA_MAP(CAddGroupDlg)
  28. DDX_Text(pDX, IDC_GROUP_NAME, m_cstrGroupName);
  29. //}}AFX_DATA_MAP
  30. }
  31. BEGIN_MESSAGE_MAP(CAddGroupDlg, CDialog)
  32. //{{AFX_MSG_MAP(CAddGroupDlg)
  33. ON_BN_CLICKED(ID_ADD, OnAdd)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CAddGroupDlg message handlers
  38. void CAddGroupDlg::OnAdd()
  39. {
  40. UpdateData ();
  41. if (!FaxAddOutboundGroup (m_hFax, m_cstrGroupName))
  42. {
  43. CString cs;
  44. cs.Format ("Failed while calling FaxAddOutboundGroup (%ld)", GetLastError());
  45. AfxMessageBox (cs, MB_OK | MB_ICONHAND);
  46. return;
  47. }
  48. }