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.

95 lines
1.8 KiB

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File: Deskspc.h
  4. //
  5. // Created: Jan 1996
  6. // By Ryan D. Marshall (ryanm)
  7. // Martin Holladay (a-martih)
  8. //
  9. // Project: Resource Kit Desktop Switcher
  10. //
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. #ifndef __MULTIDESK_DESKSPC_H__
  14. #define __MULTIDESK_DESKSPC_H__
  15. //
  16. // This is the main desktop context inclusion
  17. //
  18. #ifdef STRICT
  19. #define PROC_PTR WNDPROC
  20. #else
  21. #define PROC_PTR FARPROC
  22. #endif
  23. //
  24. // Maximum string resource lengths.
  25. //
  26. #define MAX_TITLELEN 127
  27. #define MAX_MESSAGE 511
  28. #define MAX_APPNAME 63
  29. //
  30. // Messages
  31. //
  32. #define WM_REBUILD (WM_USER + 200)
  33. #define WM_RESIZE (WM_USER + 201)
  34. #define WM_UPDATE_STATE (WM_USER + 202)
  35. #define WM_TASKBAR (WM_USER + 203)
  36. //
  37. // Transparent text window constants.
  38. //
  39. #define TRANSPARENT_CLASSNAME TEXT("MultiDeskTransparentLabel")
  40. #define TRANSPARENT_BACKCOLOR RGB(255,0,255) // purple
  41. #define TRANSPARENT_TEXTCOLOR RGB(255,255,0) // yellow
  42. #define TRANSPARENT_ALPHA 150
  43. #define TRANSPARENT_POSITIONS 0,0,600,80
  44. //
  45. // Associated structures
  46. //
  47. typedef struct _RENAMEINFO {
  48. UINT nBtnIndex;
  49. } RENAMEINFO, * PRENAMEINFO;
  50. //
  51. // Struct to hold application global varialbles
  52. //
  53. class CDesktop; // prototype.
  54. typedef struct _APPVARS {
  55. UINT nX;
  56. UINT nY;
  57. UINT nWidth;
  58. UINT nHeight;
  59. BOOL bTrayed;
  60. CDesktop* pDesktopControl;
  61. HINSTANCE hInstance;
  62. CHAR szAppName[MAX_APPNAME+1];
  63. CHAR szAppTitle[MAX_TITLELEN+1];
  64. HICON hApplicationIcon;
  65. HICON hApplicationSmallIcon;
  66. HICON hTaskbarIcon;
  67. } APPVARS, * PAPPVARS;
  68. //
  69. // Function Prototypes
  70. //
  71. BOOL InitApplication(HINSTANCE);
  72. void Message(LPCTSTR szMsg);
  73. void StartThreadDisplay(void);
  74. #endif