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.

115 lines
3.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1997 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. //////////////////////////////////////////////////////
  23. // ConfRoomWnd.h
  24. //
  25. #ifndef __CONFROOMWND_H__
  26. #define __CONFROOMWND_H__
  27. // FWD define
  28. class CConfRoomWnd;
  29. #define WM_LAYOUT (WM_USER + 1032)
  30. #include "AVTapiCall.h"
  31. #include "ConfRoom.h"
  32. #include "CRMemWnd.h"
  33. #include "CRTalkerWnd.h"
  34. #include <list>
  35. using namespace std;
  36. typedef list<DWORD> LayoutList;
  37. #define VID_X 176
  38. #define VID_Y 144
  39. #define VID_SX 88
  40. #define VID_SY 72
  41. #define VID_DX 10
  42. #define VID_DY 8
  43. #define SEL_DX 3
  44. #define SEL_DY 3
  45. class CConfRoomWnd :
  46. public CWindowImpl<CConfRoomWnd>
  47. {
  48. // Enums
  49. public:
  50. typedef enum tag_LayoutStyles_t
  51. {
  52. LAYOUT_NONE = 0x0000,
  53. LAYOUT_TALKER = 0x0001,
  54. LAYOUT_MEMBERS = 0x0002,
  55. CREATE_MEMBERS = 0x1000,
  56. LAYOUT_ALL = 0x0FFF,
  57. LAYOUT_CREATE = 0xFFFF,
  58. } LayoutStyles_t;
  59. //Construction
  60. public:
  61. CConfRoomWnd();
  62. // Members
  63. public:
  64. CConfRoom *m_pConfRoom; // back pointer
  65. CConfRoomTalkerWnd m_wndTalker; // talker window
  66. CConfRoomMembersWnd m_wndMembers; // all conf members
  67. HBITMAP m_hBmpFeed_LargeAudio;
  68. HBITMAP m_hBmpFeed_Large;
  69. HBITMAP m_hBmpFeed_Small;
  70. protected:
  71. CComAutoCriticalSection m_critThis;
  72. LayoutList m_lstLayout;
  73. CComAutoCriticalSection m_critLayout;
  74. // Operations
  75. public:
  76. void UpdateNames( ITParticipant *pParticipant );
  77. HRESULT LayoutRoom( LayoutStyles_t layoutStyle, bool bRedraw );
  78. protected:
  79. bool CreateStockWindows();
  80. // Implementation
  81. public:
  82. BEGIN_MSG_MAP(CExpTreeView)
  83. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  84. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  85. MESSAGE_HANDLER(WM_CREATE, OnCreate)
  86. MESSAGE_HANDLER(WM_SIZE, OnSize)
  87. END_MSG_MAP()
  88. LRESULT OnContextMenu(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
  89. LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
  90. LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
  91. LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
  92. };
  93. #endif //__CONFROOMWND_H__