home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2002 December (Special) / DOSV2002_12.iso / utility / tcl230ja95.lzh / source.lzh / dll / tcdll.h < prev    next >
C/C++ Source or Header  |  2001-02-14  |  2KB  |  87 lines

  1. /*-------------------------------------------
  2.  TCDLL.H
  3.  KAZUBON 1997-1998
  4. ---------------------------------------------*/
  5.  
  6. #define _WIN32_IE 0x0300
  7.  
  8. #include <windows.h>
  9. #include <windowsx.h>
  10. #include <winreg.h>
  11. #include <shellapi.h>
  12. #include <winnls.h>
  13. #include <commctrl.h>
  14.  
  15. #define CLOCKM_REFRESHCLOCK   (WM_USER+1)
  16. #define CLOCKM_REFRESHTASKBAR (WM_USER+2)
  17. #define CLOCKM_BLINK          (WM_USER+3)
  18. #define CLOCKM_COPY           (WM_USER+4)
  19.  
  20. // tclock.c
  21. void DrawClock(HWND hwnd, HDC hdc);
  22. void FillClock(HWND hwnd, HDC hdc, RECT *prc, int nblink);
  23. extern BOOL bNoClock;
  24.  
  25. // UTL.C
  26. int _strncmp(const char* d, const char* s, size_t n);
  27. HFONT CreateMyFont(char* fontname, int fontsize,
  28.     LONG weight, LONG italic);
  29. int ext_cmp(char *fname, char *ext);
  30. void add_title(char *path, char *title);
  31. void del_title(char *path);
  32. void parse(char *dst, char *src, int n);
  33. char* MyString(UINT id);
  34. int GetMyRegStr(char* section, char* entry, char* val, int cbData, 
  35.     char* defval);
  36. LONG GetMyRegLong(char* section, char* entry, LONG defval);
  37. LONG GetRegLong(HKEY rootkey, char*subkey, char* entry, LONG defval);
  38. int GetRegStr(HKEY rootkey, char*subkey, char* entry,
  39.     char* val, int cbData, char* defval);
  40. BOOL SetMyRegStr(char* subkey, char* entry, char* val);
  41. BOOL SetMyRegLong(char* subkey, char* entry, DWORD val);
  42. void WriteDebug(LPSTR s);
  43.  
  44. // FORMAT.C
  45. void InitFormat(SYSTEMTIME* lt);
  46. void MakeFormat(char* s, SYSTEMTIME* pt, int beat100, char* fmt);
  47. BOOL IsDispSecond(char* fmt);
  48. BOOL IsDispSysInfo(char* fmt);
  49. int IsDispBeat(char* fmt);
  50. BOOL FindFormatStr(const char* fmt, const char *tofind);
  51.  
  52. // STARTBTN.C
  53. void SetStartButton(HWND hwnd);
  54. void EndStartButton(void);
  55. void SetStartButtonBmp(void);
  56. void CheckCursorOnStartButton(void);
  57.  
  58. // STARTMENU.C
  59. void SetStartMenu(HWND hwnd);
  60. void EndStartMenu(void);
  61. void InitStartMenuIE4(void);
  62. void ClearStartMenuIE4(void);
  63.  
  64. // taskswitch.c
  65. void InitTaskSwitch(HWND hwndClock);
  66. void EndTaskSwitch(void);
  67.  
  68. // traynotifywnd.c
  69. void InitTrayNotify(HWND hwnd);
  70. void EndTrayNotify(void);
  71.  
  72. // BMP.C
  73. HBITMAP ReadBitmap(HWND hwnd, char* fname, BOOL b);
  74.  
  75. // newapi.c
  76. void EndNewAPI(HWND hwnd);
  77. void SetLayeredTaskbar(HWND hwnd);
  78. void GradientFillClock(HDC hdc, RECT* prc, COLORREF col1, COLORREF col2);
  79.  
  80. // sysres.c
  81. int GetFreeSystemResources(WORD wSysRes);
  82. void EndSysres(void);
  83.  
  84. void InitBatteryLife(void);
  85. int GetBatteryLifePercent(void);
  86. void FreeBatteryLife(void);
  87.