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.

220 lines
8.4 KiB

  1. // File: global.h
  2. //
  3. // Global NetMeeting UI definitions
  4. #ifndef _GLOBAL_H_
  5. #define _GLOBAL_H_
  6. #define TAPI_CURRENT_VERSION 0x00010004
  7. #ifndef WS_EX_NOINHERIT_LAYOUT
  8. #define WS_EX_NOINHERIT_LAYOUT 0x00100000L // Disable inheritence of mirroring by children
  9. #endif
  10. inline HINSTANCE GetInstanceHandle() { return _Module.GetResourceModule(); }
  11. // colors:
  12. #define TOOLBAR_MASK_COLOR (RGB(255, 0, 255)) // MAGENTA
  13. #define TOOLBAR_HIGHLIGHT_COLOR (RGB(255, 255, 255)) // WHITE
  14. // string constants
  15. const UINT CCHMAXUINT = 12;
  16. const int CCHMAXSZ = 256; // Maximum generic string length
  17. const int CCHMAXSZ_ADDRESS = 256; // Maximum length of an address
  18. const int CCHMAXSZ_SERVER = 128; // Maximum length of an address
  19. const int CCHMAXSZ_EMAIL = 128; // Maximum length of an email name
  20. const int CCHMAXSZ_FIRSTNAME = 128; // Maximum length of a first name
  21. const int CCHMAXSZ_LASTNAME = 128; // Maximum length of a last name
  22. const int CCHMAXSZ_NAME = 256; // Maximum user name, displayed (combined first+last name)
  23. const int CCHMAXSZ_LOCATION = 128; // Maximum length of a Location
  24. const int CCHMAXSZ_PHONENUM = 128; // Maximum length of a Phone number
  25. const int CCHMAXSZ_COMMENT = 256; // Maximum length for comments
  26. const int CCHMAXSZ_VERSION = 128; // Maximum length for version info
  27. const int CCHEXT = 3; // Maximum CHARACTERS in a filename extension
  28. // defines:
  29. const int MAX_ITEMLEN = 256;
  30. // Timers 300-399 are used by the ASMaster class
  31. const int TASKBAR_DBLCLICK_TIMER = 666;
  32. const int IDT_SCROLLBAR_REPEAT = 667;
  33. const int IDT_SCROLLBAR_REPEAT_PERIOD = 250; // 0.25 sec
  34. const int IDT_FLDRBAR_TIMER = 668;
  35. const int IDT_FLDRBAR_TIMER_PERIOD = 1000; // 1 second
  36. const int FRIENDS_REFRESH_TIMER = 681;
  37. const int DIRECTORY_REFRESH_TIMER = 682;
  38. const int WINSOCK_ACTIVITY_TIMER = 683;
  39. const int WINSOCK_ACTIVITY_TIMER_PERIOD = 55000; // 55 seconds
  40. const int AUDIODLG_MIC_TIMER = 69;
  41. const int AUDIODLG_MIC_TIMER_PERIOD = 500; // 0.5 sec
  42. const int POPUPMSG_TIMER = 1000;
  43. const int MOUSE_MOVE_TIP_TIMEOUT = 3000; // 3 seconds
  44. const int SHADOW_ACTIVATE_TIP_TIMEOUT = 5000; // 5 seconds
  45. const int ROSTER_TIP_TIMEOUT = 3000; // 3 seconds
  46. // Help id related constants:
  47. const int MAIN_MENU_POPUP_HELP_OFFSET = 39000;
  48. const int TOOLS_MENU_POPUP_HELP_OFFSET = 39100;
  49. const int HELP_MENU_POPUP_HELP_OFFSET = 39200;
  50. const int VIEW_MENU_POPUP_HELP_OFFSET = 39400;
  51. const int MENU_ID_HELP_OFFSET = 2000;
  52. // Indexes for IDB_ICON_IMAGES image list:
  53. const int II_INVALIDINDEX = -1;
  54. const int II_PERSON_BLUE = 0; // Blue shirt
  55. const int II_PERSON_RED = 1; // Red shirt
  56. const int II_PERSON_GREY = 2; // Person disabled (Grey shirt)
  57. const int II_PEOPLE = 3; // 2 people
  58. const int II_BLANK = 4; //
  59. const int II_BUDDY = 5; // Buddy List Application
  60. const int II_SPEEDDIAL = 6; // Speed Dial
  61. const int II_DIRECTORY = 7; // Directory
  62. const int II_SERVER = 8; // ILS Server
  63. const int II_WAB = 9; // Windows Address Book
  64. const int II_WAB_CARD = 10; // Contact Card
  65. const int II_COMPUTER = 11; // Computer (generic)
  66. const int II_IN_A_CALL = 12; // Computer busy
  67. const int II_NETMEETING = 13; // NetMeeting World
  68. const int II_HISTORY = 14; // History
  69. const int II_UNKNOWN = 15; // ?
  70. const int II_OUTLOOK_WORLD = 16; // Outlook World
  71. const int II_OUTLOOK_AGENT = 17; // Outlook Agent
  72. const int II_OUTLOOK_GROUP = 18; // Outlook Group
  73. const int II_IE = 19; // Internet Explorer
  74. const int II_WEB_DIRECTORY = 20; // Web View Directory
  75. const int II_AUDIO_CAPABLE = 21; // Audio Capable
  76. const int II_VIDEO_CAPABLE = 22; // Video Capable
  77. const int II_AUDIO_COLUMN_HEADER = 23; // Audio Listview Column Header Icon
  78. const int II_VIDEO_COLUMN_HEADER = 24; // Video Listview Column Header Icon
  79. // Alternate definitions for the small icons
  80. const int II_PERSON = II_PERSON_BLUE; // Person (generic)
  81. const int II_USER = II_PERSON_BLUE; // Member (generic)
  82. const int II_GAL = II_WAB; // Global Address List
  83. // MAPI PR_DISPLAY_TYPE types
  84. const int II_DISTLIST = II_OUTLOOK_GROUP;
  85. const int II_FORUM = II_OUTLOOK_GROUP;
  86. const int II_AGENT = II_OUTLOOK_AGENT;
  87. const int II_ORGANIZATION = II_PEOPLE;
  88. const int II_PRIVATE_DISTLIST = II_OUTLOOK_GROUP;
  89. const int II_REMOTE_MAILUSER = II_OUTLOOK_WORLD;
  90. // NavBar measurements
  91. const int DXP_NAVBAR = 78;
  92. const int DXP_NAVBAR_ICON = 32;
  93. const int DYP_NAVBAR_ICON = 32;
  94. const int DXP_NAVBAR_MARGIN = 3;
  95. const int DYP_NAVBAR_MARGIN = 8;
  96. const int DYP_NAVBAR_ICON_SPACING =3;
  97. const int DXP_NAVBAR_ICON_BORDER = 2;
  98. const int DXP_NAVBAR_ICON_ADJUST = 6;
  99. // SplitBar measurements
  100. const int DYP_SPLITBAR_MARGIN = 3;
  101. // TitleBar measurements
  102. const int DXP_TITLE_ICON_ADJUST = 4;
  103. const int DYP_TITLE_ICON_ADJUST = 1;
  104. const int DYP_TITLE_MARGIN = 1; // almost no border
  105. const int DXP_ICON_SMALL = 16;
  106. const int DYP_ICON_SMALL = 16;
  107. const int DXP_ICON_LARGE = 32;
  108. const int DYP_ICON_LARGE = 32;
  109. const int DYP_TITLEBAR = DYP_NAVBAR_ICON + (DYP_TITLE_ICON_ADJUST*2); // Height of view title bar
  110. const int DYP_TITLEBAR_LARGE = DYP_NAVBAR_ICON + (DYP_TITLE_ICON_ADJUST*2);
  111. const int DYP_TITLEBAR_SMALL = DYP_ICON_SMALL + (DYP_TITLE_ICON_ADJUST*2);
  112. // General UI measurements
  113. const int UI_SPLITTER_WIDTH = 4;
  114. const int UI_MINIMUM_VIEW_WIDTH = 120;
  115. const int UI_MINIMUM_DIRVIEW_HEIGHT = 90;
  116. const int UI_MINIMUM_VIEW_HEIGHT = 50;
  117. const int UI_TAB_VERTICAL_MARGIN = 4;
  118. const int UI_TAB_HORIZONTAL_MARGIN = 2;
  119. const int UI_TAB_LEFT_MARGIN = 2;
  120. const int UI_TAB_INTERNAL_MARGIN = 4;
  121. // Video Window measurements
  122. const int VIDEO_WIDTH_SQCIF = 128;
  123. const int VIDEO_HEIGHT_SQCIF = 96;
  124. const int VIDEO_WIDTH_QCIF = 176;
  125. const int VIDEO_HEIGHT_QCIF = 144;
  126. const int VIDEO_WIDTH_CIF = 352;
  127. const int VIDEO_HEIGHT_CIF = 288;
  128. const int VIDEO_GRAB_SIZE = 20;
  129. #define VIDEO_WIDTH_DEFAULT VIDEO_WIDTH_QCIF
  130. #define VIDEO_HEIGHT_DEFAULT VIDEO_HEIGHT_QCIF
  131. const int UI_VIDEO_BORDER = 6;
  132. // Window IDs:
  133. const UINT ID_STATUS = 600;
  134. const UINT ID_TOOLBAR = 601;
  135. const UINT ID_LISTVIEW = 602;
  136. const UINT ID_DIR_LISTVIEW = 603;
  137. const UINT ID_REBAR = 604;
  138. const UINT ID_BRAND = 605;
  139. const UINT ID_NAVBAR = 606;
  140. const UINT ID_REBAR_FRAME = 607;
  141. const UINT ID_VIDEO_VIEW = 608;
  142. const UINT ID_FLDRBAR = 609;
  143. const UINT ID_FLOAT_TOOLBAR = 610;
  144. const UINT ID_LOGVIEW_LISTVIEW = 615;
  145. const UINT ID_LOGVIEW_COMBOEX = 616;
  146. const UINT ID_FRIENDSVIEW_LISTVIEW =617;
  147. const UINT ID_AUDIO_BAND = 620;
  148. const UINT ID_TITLE_BAR = 621;
  149. const UINT ID_SPLIT_BAR = 622;
  150. const UINT ID_SCROLL_BAR = 623;
  151. const UINT ID_NAVBARCONTAINER = 624;
  152. const UINT ID_TASKBAR_ICON = 650;
  153. const UINT ID_CHAT_EDIT = 660;
  154. const UINT ID_CHAT_MSG = 661;
  155. const UINT ID_CHAT_LIST = 662;
  156. const UINT ID_CHAT_SEND = 663;
  157. const UINT ID_CHAT_DEST = 664;
  158. const UINT ID_AUDIOLEVEL_BAND = 666;
  159. const UINT ID_FIRST_EDITPANE = 1000;
  160. const UINT ID_BANNER = 1000;
  161. const UINT ID_CHATPANE = 1002;
  162. const UINT ID_LAST_EDITPANE = 2000;
  163. const int ID_AUDIODLG_GROUPBOX = 3300;
  164. const int ID_AUDIODLG_MIC_TRACK = 3301;
  165. const int ID_AUDIODLG_SPKR_TRACK = 3302;
  166. // other id's:
  167. const int MAX_REDIAL_ITEMS = 50;
  168. const int ID_FIRST_REDIAL_ITEM = 31900;
  169. const int ID_LAST_REDIAL_ITEM = ID_FIRST_REDIAL_ITEM + MAX_REDIAL_ITEMS;
  170. const int ID_EXTENDED_TOOLS_SEP = 32000;
  171. const int ID_EXTENDED_TOOLS_ITEM = 32001;
  172. const int MAX_EXTENDED_TOOLS_ITEMS= 50;
  173. // Misc command ids:
  174. const int ID_POPUPMSG_TIMEOUT = 28000;
  175. const int ID_POPUPMSG_CLICK = 28001;
  176. extern DWORD g_wsLayout;
  177. #endif // ! _GLOBAL_H_