Mercurial > projects > dynamin
comparison dynamin/c/windows.d @ 112:e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 19 Jan 2013 20:57:58 -0600 |
parents | acdbb30fee7e |
children |
comparison
equal
deleted
inserted
replaced
111:8ba1044adc93 | 112:e1eb6df1cfbd |
---|---|
1047 | 1047 |
1048 SHORT GetKeyState(int nVirtKey); | 1048 SHORT GetKeyState(int nVirtKey); |
1049 //}}} | 1049 //}}} |
1050 | 1050 |
1051 //{{{ system functions | 1051 //{{{ system functions |
1052 //const LPTSTR IDC_ARROW = cast(LPTSTR)32512u; | 1052 enum LPTSTR IDC_ARROW = cast(LPTSTR)32512u; |
1053 //const LPTSTR IDC_IBEAM = cast(LPTSTR)32513u; | 1053 enum LPTSTR IDC_IBEAM = cast(LPTSTR)32513u; |
1054 //const LPTSTR IDC_WAIT = cast(LPTSTR)32514u; | 1054 enum LPTSTR IDC_WAIT = cast(LPTSTR)32514u; |
1055 //const LPTSTR IDC_CROSS = cast(LPTSTR)32515u; | 1055 enum LPTSTR IDC_CROSS = cast(LPTSTR)32515u; |
1056 //const LPTSTR IDC_UPARROW = cast(LPTSTR)32516u; | 1056 enum LPTSTR IDC_UPARROW = cast(LPTSTR)32516u; |
1057 //const LPTSTR IDC_SIZE = cast(LPTSTR)32640u; | 1057 enum LPTSTR IDC_SIZE = cast(LPTSTR)32640u; |
1058 //const LPTSTR IDC_ICON = cast(LPTSTR)32641u; | 1058 enum LPTSTR IDC_ICON = cast(LPTSTR)32641u; |
1059 //const LPTSTR IDC_SIZENWSE = cast(LPTSTR)32642u; | 1059 enum LPTSTR IDC_SIZENWSE = cast(LPTSTR)32642u; |
1060 //const LPTSTR IDC_SIZENESW = cast(LPTSTR)32643u; | 1060 enum LPTSTR IDC_SIZENESW = cast(LPTSTR)32643u; |
1061 //const LPTSTR IDC_SIZEWE = cast(LPTSTR)32644u; | 1061 enum LPTSTR IDC_SIZEWE = cast(LPTSTR)32644u; |
1062 //const LPTSTR IDC_SIZENS = cast(LPTSTR)32645u; | 1062 enum LPTSTR IDC_SIZENS = cast(LPTSTR)32645u; |
1063 //const LPTSTR IDC_SIZEALL = cast(LPTSTR)32646u; | 1063 enum LPTSTR IDC_SIZEALL = cast(LPTSTR)32646u; |
1064 //const LPTSTR IDC_NO = cast(LPTSTR)32648u; | 1064 enum LPTSTR IDC_NO = cast(LPTSTR)32648u; |
1065 //const LPTSTR IDC_HAND = cast(LPTSTR)32649u; | 1065 enum LPTSTR IDC_HAND = cast(LPTSTR)32649u; |
1066 //const LPTSTR IDC_APPSTARTING = cast(LPTSTR)32650u; | 1066 enum LPTSTR IDC_APPSTARTING = cast(LPTSTR)32650u; |
1067 //const LPTSTR IDC_HELP = cast(LPTSTR)32651u; | 1067 enum LPTSTR IDC_HELP = cast(LPTSTR)32651u; |
1068 | 1068 |
1069 //const LPTSTR IDI_APPLICATION = cast(LPTSTR)32512; | 1069 enum LPTSTR IDI_APPLICATION = cast(LPTSTR)32512; |
1070 //const LPTSTR IDI_HAND = cast(LPTSTR)32513; | 1070 enum LPTSTR IDI_HAND = cast(LPTSTR)32513; |
1071 //const LPTSTR IDI_QUESTION = cast(LPTSTR)32514; | 1071 enum LPTSTR IDI_QUESTION = cast(LPTSTR)32514; |
1072 //const LPTSTR IDI_EXCLAMATION = cast(LPTSTR)32515; | 1072 enum LPTSTR IDI_EXCLAMATION = cast(LPTSTR)32515; |
1073 //const LPTSTR IDI_ASTERISK = cast(LPTSTR)32516; | 1073 enum LPTSTR IDI_ASTERISK = cast(LPTSTR)32516; |
1074 //const LPTSTR IDI_WINLOGO = cast(LPTSTR)32517; | 1074 enum LPTSTR IDI_WINLOGO = cast(LPTSTR)32517; |
1075 //const LPTSTR IDI_WARNING = IDI_EXCLAMATION; | 1075 enum LPTSTR IDI_WARNING = IDI_EXCLAMATION; |
1076 //const LPTSTR IDI_ERROR = IDI_HAND; | 1076 enum LPTSTR IDI_ERROR = IDI_HAND; |
1077 //const LPTSTR IDI_INFORMATION = IDI_ASTERISK; | 1077 enum LPTSTR IDI_INFORMATION = IDI_ASTERISK; |
1078 | 1078 |
1079 enum { | 1079 enum { |
1080 OIC_SAMPLE = 32512, | 1080 OIC_SAMPLE = 32512, |
1081 OIC_HAND = 32513, | 1081 OIC_HAND = 32513, |
1082 OIC_QUES = 32514, | 1082 OIC_QUES = 32514, |
1132 UINT type, | 1132 UINT type, |
1133 int cx, | 1133 int cx, |
1134 int cy, | 1134 int cy, |
1135 UINT fuLoad); | 1135 UINT fuLoad); |
1136 | 1136 |
1137 HICON CreateIconIndirect(PICONINFO piconinfo); | |
1138 | |
1137 HICON CreateIconFromResource( | 1139 HICON CreateIconFromResource( |
1138 BYTE* presbits, | 1140 BYTE* presbits, |
1139 DWORD dwResSize, | 1141 DWORD dwResSize, |
1140 BOOL fIcon, | 1142 BOOL fIcon, |
1141 DWORD dwVer); | 1143 DWORD dwVer); |
1144 | |
1145 BOOL GetIconInfo(HICON hIcon, PICONINFO piconinfo); | |
1142 | 1146 |
1143 enum { | 1147 enum { |
1144 SPI_GETNONCLIENTMETRICS = 0x0029, | 1148 SPI_GETNONCLIENTMETRICS = 0x0029, |
1145 SPI_GETWORKAREA = 0x0030, | 1149 SPI_GETWORKAREA = 0x0030, |
1146 SPI_GETWHEELSCROLLLINES = 0x0068 | 1150 SPI_GETWHEELSCROLLLINES = 0x0068 |
1751 LONG bmWidthBytes; | 1755 LONG bmWidthBytes; |
1752 WORD bmPlanes; | 1756 WORD bmPlanes; |
1753 WORD bmBitsPixel; | 1757 WORD bmBitsPixel; |
1754 VOID* bmBits; | 1758 VOID* bmBits; |
1755 } | 1759 } |
1760 | |
1761 struct ICONINFO { | |
1762 BOOL fIcon; | |
1763 DWORD xHotspot; | |
1764 DWORD yHotspot; | |
1765 HBITMAP hbmMask; | |
1766 HBITMAP hbmColor; | |
1767 } | |
1768 | |
1769 alias ICONINFO* PICONINFO; | |
1770 | |
1756 struct MSG { | 1771 struct MSG { |
1757 HWND hWnd; | 1772 HWND hWnd; |
1758 UINT message; | 1773 UINT message; |
1759 WPARAM wParam; | 1774 WPARAM wParam; |
1760 LPARAM lParam; | 1775 LPARAM lParam; |