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.

44 lines
1.6 KiB

  1. /****************************************************************************/
  2. /* FUNCTIONS IN THIS FILE */
  3. /****************************************************************************/
  4. BOOL InitProc(void);
  5. BOOL RegisterWndClass(HINSTANCE hInst);
  6. HWND CreateMainWindow(BOOL re_size);
  7. void mlGetSystemParam(void);
  8. BOOL SetZOrder(void);
  9. void FinishProcess(void);
  10. void udfDraw3D(HDC hdc, RECT brect);
  11. void udfDraw3Dpush(HDC hdc, RECT brect);
  12. void UpdateKey(HWND hwndKey, HDC hdc, RECT brect, int index, int iKeyVal);
  13. BOOL ChooseNewFont(HWND hWnd);
  14. void ChangeTextKeyColor(void);
  15. BOOL RDrawIcon(HDC hDC, TCHAR *pIconName, RECT rect);
  16. BOOL RDrawBitMap(HDC hDC, TCHAR *pIconName, RECT rect, BOOL transform);
  17. BOOL SavePreferences(void);
  18. BOOL OpenPreferences(void);
  19. void DeleteChildBackground(void);
  20. HFONT ReSizeFont(int index, LOGFONT *plf, int outsize);
  21. BOOL NumLockLight(void);
  22. void RedrawKeys(void);
  23. void DrawIcon_KeyLight(HDC hDC, int which, RECT rect);
  24. void SetKeyRegion(HWND hwnd, int w, int h);
  25. void CapShift_Redraw(void);
  26. int GetKeyText(UINT vk, UINT sc, BYTE *kbuf, TCHAR *cbuf, HKL hkl);
  27. BOOL RedrawNumLock(void);
  28. BOOL RedrawScrollLock(void);
  29. void ChangeBitmapColorDC (HDC hdcBM, LPBITMAP lpBM, COLORREF rgbOld, COLORREF rgbNew);
  30. void ChangeBitmapColor (HBITMAP hbmSrc, COLORREF rgbOld, COLORREF rgbNew, HPALETTE hPal);
  31. BOOL RegisterKeyClasses(HINSTANCE hInst);
  32. // Handy defines
  33. #define GWLP_USERDATA_TEXTCOLOR GWLP_USERDATA
  34. void InitKeys();
  35. void UninitKeys();
  36. void UpdateKeyLabels(HKL hkl);
  37. extern int g_cAltGrKeys;
  38. __inline BOOL CanDisplayAltGr() { return (g_cAltGrKeys)?TRUE:FALSE; }