Source code of Windows XP (NT5)
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.

137 lines
3.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. sendmsg.hxx
  7. This file contains the SEND_MSG_USER_DIALOG class definition viz.
  8. used to send a message from the users dialog and the
  9. SEND_MSG_SERVER_DIALOG viz used to send a message to all the users
  10. connected with the server.
  11. FILE HISTORY:
  12. NarenG 16-Oct-1992 Folded MSG_DIALOG_BASE and
  13. SRV_SEND_MSG_DIALOG into one.
  14. */
  15. #ifndef _SENDMSG_HXX_
  16. #define _SENDMSG_HXX_
  17. /*************************************************************************
  18. NAME: SEND_MSG_USER_DIALOG
  19. SYNOPSIS: Used to send messaged to Macintosh clients connected to
  20. this server or to a single connected user.
  21. INTERFACE:
  22. OnOK() - Do the actual send.
  23. MSG_DIALOG_BASE() - constructor takes HWND of parent,
  24. a resource name for dialog, and a
  25. CID for the message text MLE.
  26. USES: NLS_STR
  27. CAVEATS:
  28. NOTES:
  29. HISTORY:
  30. NarenG 13-10-92 Stole from Server Manager.
  31. **************************************************************************/
  32. class SEND_MSG_USER_DIALOG : public DIALOG_WINDOW
  33. {
  34. private:
  35. MLE _mleTextMsg;
  36. SLT _sltServerName;
  37. SLT _sltUserName;
  38. RADIO_GROUP _rgRecipients;
  39. DWORD _dwSessionId;
  40. AFP_SERVER_HANDLE _hServer;
  41. protected:
  42. ULONG QueryHelpContext( VOID );
  43. BOOL OnOK();
  44. public:
  45. SEND_MSG_USER_DIALOG::SEND_MSG_USER_DIALOG(
  46. HWND hWndOwner,
  47. AFP_SERVER_HANDLE hServer,
  48. const TCHAR * pszServerName,
  49. const TCHAR * pszUserName,
  50. DWORD dwSessionId );
  51. ~SEND_MSG_USER_DIALOG();
  52. };
  53. /*************************************************************************
  54. NAME: SEND_MSG_SERVER_DIALOG
  55. SYNOPSIS: Used to send messaged to Macintosh clients connected to
  56. this server.
  57. INTERFACE:
  58. OnOK() - Do the actual send.
  59. MSG_DIALOG_BASE() - constructor takes HWND of parent,
  60. a resource name for dialog, and a
  61. CID for the message text MLE.
  62. USES: NLS_STR
  63. CAVEATS:
  64. NOTES:
  65. HISTORY:
  66. NarenG 13-10-92 Stole from Server Manager.
  67. **************************************************************************/
  68. class SEND_MSG_SERVER_DIALOG : public DIALOG_WINDOW
  69. {
  70. private:
  71. MLE _mleTextMsg;
  72. SLT _sltServerName;
  73. AFP_SERVER_HANDLE _hServer;
  74. protected:
  75. ULONG QueryHelpContext( VOID );
  76. BOOL OnOK();
  77. public:
  78. SEND_MSG_SERVER_DIALOG::SEND_MSG_SERVER_DIALOG(
  79. HWND hWndOwner,
  80. AFP_SERVER_HANDLE hServer,
  81. const TCHAR * pszServerName );
  82. ~SEND_MSG_SERVER_DIALOG();
  83. };
  84. #endif // _SENDMSG_HXX_