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.

99 lines
1.9 KiB

  1. //
  2. // View UI to present shared applications/desktop of a remote host
  3. //
  4. #ifndef _H_VIEW
  5. #define _H_VIEW
  6. //
  7. //
  8. // CONSTANTS
  9. //
  10. //
  11. //
  12. // The class name of the frame containing the view of shared applications
  13. // from a particular user.
  14. //
  15. #define VIEW_FRAME_CLASS_NAME "AS_Frame"
  16. #define VIEW_CLIENT_CLASS_NAME "AS_Client"
  17. #define VIEW_WINDOWBAR_CLASS_NAME "AS_WindowBar"
  18. #define VIEW_WINDOWBARITEMS_CLASS_NAME "AS_WindowBarItems"
  19. #define VIEW_FULLEXIT_CLASS_NAME "AS_FullExit"
  20. //
  21. // Metrics
  22. //
  23. //
  24. // LAURABU: For international, consider making this larger (i.e, German,
  25. // Slavic, and DBCS systems)
  26. //
  27. #define VIEW_MAX_ITEM_CHARS 20
  28. //
  29. // IDs
  30. //
  31. #define IDVIEW_ITEMS 1 // Window bar item list
  32. #define IDVIEW_SCROLL 2 // Window bar scroll
  33. #define IDT_AUTOSCROLL 50 // Period is DoubleClick time metric
  34. //
  35. // WindowBar ITEM struct
  36. //
  37. typedef struct tagWNDBAR_ITEM
  38. {
  39. STRUCTURE_STAMP
  40. BASEDLIST chain;
  41. UINT_PTR winIDRemote;
  42. TSHR_UINT32 flags;
  43. char szText[SWL_MAX_WINDOW_TITLE_SEND + 1];
  44. }
  45. WNDBAR_ITEM;
  46. typedef WNDBAR_ITEM * PWNDBAR_ITEM;
  47. //
  48. // Init/Term
  49. //
  50. BOOL VIEW_Init(void);
  51. void VIEW_Term(void);
  52. //
  53. // Frame
  54. //
  55. LRESULT CALLBACK VIEWFrameWindowProc(HWND, UINT, WPARAM, LPARAM);
  56. //
  57. // View
  58. //
  59. LRESULT CALLBACK VIEWClientWindowProc(HWND, UINT, WPARAM, LPARAM);
  60. //
  61. // WindowBar
  62. //
  63. LRESULT CALLBACK VIEWWindowBarProc(HWND, UINT, WPARAM, LPARAM);
  64. //
  65. // WindowBar Items
  66. //
  67. LRESULT CALLBACK VIEWWindowBarItemsProc(HWND, UINT, WPARAM, LPARAM);
  68. //
  69. // FullScreen Exit
  70. //
  71. LRESULT CALLBACK VIEWFullScreenExitProc(HWND, UINT, WPARAM, LPARAM);
  72. //
  73. // Informational dialog
  74. //
  75. INT_PTR CALLBACK VIEWDlgProc(HWND, UINT, WPARAM, LPARAM);
  76. #endif // _H_VIEW