home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / LSW270SR.ZIP / h / taskbar.h < prev   
Text File  |  2004-04-11  |  3KB  |  101 lines

  1. /*
  2.  *      Copyright (C) 1997-2004 Andrei Los.
  3.  *      This file is part of the lSwitcher source package.
  4.  *      lSwitcher is free software; you can redistribute it and/or modify
  5.  *      it under the terms of the GNU General Public License as published
  6.  *      by the Free Software Foundation, in version 2 as it comes in the
  7.  *      "COPYING" file of the lSwitcher main distribution.
  8.  *      This program is distributed in the hope that it will be useful,
  9.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  *      GNU General Public License for more details.
  12.  */
  13.  
  14. #ifndef TASKBAR_H_INCLUDED
  15. #define TASKBAR_H_INCLUDED
  16.  
  17. #include "lswitch.h"
  18.  
  19.  
  20. #define LSWTASKBARCLASS "lswTaskBarClass"
  21.  
  22. #define BUTTONBORDERWIDTH 1
  23. #define TSKBARFRAMEWIDTH 1
  24. #define MAXBUTTONWIDTH 130
  25.  
  26. #define BN_SWITCH 0x1001
  27. #define BN_MINIMIZE 0x1002
  28. #define BN_CLOSE 0x1003
  29.  
  30. #define DEFTSKBARRGBCOL3D      155*65536+170*256+180
  31. #define NORMALBTNRGBCOL3D      170*65536+175*256+190
  32. #define ACTIVEBTNRGBCOL3D      90*65536+100*256+110
  33. #define RAISEDFRAMERGBCOL3D    200*65536+200*256+200
  34. #define SUNKENFRAMERGBCOL3D    50*65536+50*256+50
  35. #define NORMALBTNTITLERGBCOL3D 000*65536+000*256+000
  36. #define ACTIVEBTNTITLERGBCOL3D 000*65536+000*256+180
  37. #define HIDDENBTNTITLERGBCOL3D 100*65536+100*256+100
  38.  
  39. #define DEFTSKBARRGBCOL      200*65536+200*256+200
  40. #define NORMALBTNRGBCOL      200*65536+200*256+200
  41. #define ACTIVEBTNRGBCOL      255*65536+255*256+240
  42. #define RAISEDFRAMERGBCOL    255*65536+255*256+255
  43. #define SUNKENFRAMERGBCOL    50*65536+50*256+50
  44. #define NORMALBTNTITLERGBCOL 000*65536+000*256+000
  45. #define ACTIVEBTNTITLERGBCOL 000*65536+000*256+180
  46. #define HIDDENBTNTITLERGBCOL 130*65536+130*256+130
  47.  
  48. #define LSWM_TSKBARMENU WM_USER+10
  49. #define LSWM_INITBUTTONS WM_USER+11
  50. #define LSWM_QUERYACTIVEBTNID WM_USER+12
  51. #define LSWM_MOUSEOVERBTN WM_USER+13
  52. #define LSWM_WPSGETOBJID WM_USER+857
  53.  
  54. #define WPSGETOBJIDMAGIC 75163923
  55.  
  56. typedef struct _BTNDATA {
  57.   PFNWP pOldWndProc;
  58.   HPOINTER hIcon;
  59.   ULONG flItemWnd;
  60.   HWND hwndSubWinMenu;
  61.   USHORT usObjHandle;
  62.   PID pid;
  63.   PCHAR pszObjName;
  64. } BTNDATA;
  65.  
  66. typedef struct _PROCDATA {
  67.   PID pid,ppid;
  68.   PSZ pszTitle;
  69. } PROCDATA;
  70.  
  71. VOID DoneTaskBar(LSWDATA *plswData);
  72. SHORT InitTaskBar(LSWDATA* plswData,UCHAR *ucErrMsg,USHORT usMsgLen);
  73. VOID AdjustDesktop(LSWDATA *plswData,BOOL bRestore);
  74. MRESULT EXPENTRY TaskBarWndProc(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
  75.  
  76.  
  77. #define WinSetDesktopWorkArea WINSETDESKTOPWORKAREA
  78. #define WinQueryDesktopWorkArea WINQUERYDESKTOPWORKAREA
  79.  
  80. /*
  81.  * WinSetDesktopWorkArea:
  82.  *      undocumented Warp 4 API to change the "desktop work
  83.  *      area", which, among other things, sets the size for
  84.  *      maximized windows.
  85.  *
  86.  *      This is manually imported from PMMERGE.5468.
  87.  */
  88.  
  89. BOOL APIENTRY WinSetDesktopWorkArea(HWND hwndDesktop, PWRECT pwrcWorkArea);
  90.  
  91. /*
  92.  * WinQueryDesktopWorkArea:
  93.  *      the reverse to the above.
  94.  *
  95.  *      This is manually imported from PMMERGE.5469.
  96.  */
  97.  
  98. BOOL APIENTRY WinQueryDesktopWorkArea(HWND hwndDesktop, PWRECT pwrcWorkArea);
  99.  
  100. #endif
  101.