diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-25 15:09:01 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-25 15:09:01 -0400 |
| commit | 51469fffb57cef9624f53a744409475fc14c6208 (patch) | |
| tree | 363dddc89fe09cbbd7a88031bb5213480a256aaf /common_windows.go | |
| parent | e7327f237867157955657a781be148a559f4bd52 (diff) | |
Removed constants from common_windows.go. Almost done!
Diffstat (limited to 'common_windows.go')
| -rw-r--r-- | common_windows.go | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/common_windows.go b/common_windows.go index f9289cb..65f8451 100644 --- a/common_windows.go +++ b/common_windows.go @@ -20,12 +20,6 @@ type _HWND _HANDLE type _HBRUSH _HANDLE type _HMENU _HANDLE -const ( - _NULL = 0 - _FALSE = 0 // from windef.h - _TRUE = 1 // from windef.h -) - // In MSDN, _LPARAM and _LRESULT are listed as signed pointers, however their interpretation is message-specific. Ergo, just cast them yourself; it'll be the same. (Thanks to Tv` in #go-nuts for helping me realize this.) type _WPARAM uintptr type _LPARAM uintptr @@ -45,11 +39,6 @@ func _LPARAMFromString(str string) _LPARAM { return _LPARAM(unsafe.Pointer(syscall.StringToUTF16Ptr(str))) } -// microsoft's header files do this -func _MAKEINTRESOURCE(what uint16) uintptr { - return uintptr(what) -} - func (l _LPARAM) X() int32 { // according to windowsx.h loword := uint16(l & 0xFFFF) @@ -81,37 +70,3 @@ type _RECT struct { func negConst(c int) uintptr { return uintptr(c) } - -// Predefined cursor resource IDs. -const ( - _IDC_APPSTARTING = 32650 - _IDC_ARROW = 32512 - _IDC_CROSS = 32515 - _IDC_HAND = 32649 - _IDC_HELP = 32651 - _IDC_IBEAM = 32513 -// _IDC_ICON = 32641 // [Obsolete for applications marked version 4.0 or later.] - _IDC_NO = 32648 -// _IDC_SIZE = 32640 // [Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.] - _IDC_SIZEALL = 32646 - _IDC_SIZENESW = 32643 - _IDC_SIZENS = 32645 - _IDC_SIZENWSE = 32642 - _IDC_SIZEWE = 32644 - _IDC_UPARROW = 32516 - _IDC_WAIT = 32514 -) - -// Predefined icon resource IDs. -const ( - _IDI_APPLICATION = 32512 - _IDI_ASTERISK = 32516 - _IDI_ERROR = 32513 - _IDI_EXCLAMATION = 32515 - _IDI_HAND = 32513 - _IDI_INFORMATION = 32516 - _IDI_QUESTION = 32514 - _IDI_SHIELD = 32518 - _IDI_WARNING = 32515 - _IDI_WINLOGO = 32517 -) |
