header.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #include <nall/windows/guard.hpp>
  2. #include <winsock2.h>
  3. #include <windows.h>
  4. #include <windowsx.h>
  5. #include <commctrl.h>
  6. #include <commdlg.h>
  7. #include <uxtheme.h>
  8. #include <io.h>
  9. #include <shlobj.h>
  10. #include <dwmapi.h>
  11. #include <nall/windows/guard.hpp>
  12. #include <nall/windows/registry.hpp>
  13. #include <nall/windows/utf8.hpp>
  14. //MinGW/32-bit has painfully outdated platform headers ...
  15. #if !defined(Button_SetImageList)
  16. typedef struct {
  17. HIMAGELIST himl;
  18. RECT margin;
  19. UINT uAlign;
  20. } BUTTON_IMAGELIST, *PBUTTON_IMAGELIST;
  21. #define BUTTON_IMAGELIST_ALIGN_LEFT 0
  22. #define BUTTON_IMAGELIST_ALIGN_RIGHT 1
  23. #define BUTTON_IMAGELIST_ALIGN_TOP 2
  24. #define BUTTON_IMAGELIST_ALIGN_BOTTOM 3
  25. #define BUTTON_IMAGELIST_ALIGN_CENTER 4
  26. #define BCM_FIRST 0x1600
  27. #define BCM_SETIMAGELIST (BCM_FIRST+2)
  28. #define Button_SetImageList(hwnd, pbuttonImagelist) (WINBOOL)SNDMSG((hwnd),BCM_SETIMAGELIST,0,(LPARAM)(pbuttonImagelist))
  29. #endif
  30. #if !defined(BP_PUSHBUTTON)
  31. #define BP_PUSHBUTTON 1
  32. #endif
  33. #if !defined(PBS_NORMAL)
  34. #define PBS_NORMAL 1
  35. #endif
  36. #if !defined(PBS_HOT)
  37. #define PBS_HOT 2
  38. #endif
  39. #if !defined(PBS_PRESSED)
  40. #define PBS_PRESSED 3
  41. #endif
  42. #if !defined(PBS_DISABLED)
  43. #define PBS_DISABLED 4
  44. #endif
  45. #if !defined(PBS_DEFAULTED)
  46. #define PBS_DEFAULTED 5
  47. #endif
  48. #if !defined(BP_CHECKBOX)
  49. #define BP_CHECKBOX 3
  50. #endif
  51. #if !defined(CBS_UNCHECKEDNORMAL)
  52. #define CBS_UNCHECKEDNORMAL 1
  53. #endif
  54. #if !defined(CBS_CHECKEDNORMAL)
  55. #define CBS_CHECKEDNORMAL 5
  56. #endif
  57. #if !defined(LVCFMT_FIXED_WIDTH)
  58. #define LVCFMT_FIXED_WIDTH 0x0100
  59. #endif
  60. #if !defined(TBS_TRANSPARENTBKGND)
  61. #define TBS_TRANSPARENTBKGND 0x1000
  62. #endif
  63. #if !defined(TTP_STANDARD)
  64. #define TTP_STANDARD 1
  65. #endif
  66. #if !defined(TTSS_NORMAL)
  67. #define TTSS_NORMAL 1
  68. #endif