Changeset 1118 for trunk/include/win/windowsx.h
- Timestamp:
- Oct 4, 1999, 11:56:04 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/windowsx.h
r874 r1118 1 /* $Id: windowsx.h,v 1. 5 1999-09-08 12:12:28sandervl Exp $ */1 /* $Id: windowsx.h,v 1.6 1999-10-04 09:55:51 sandervl Exp $ */ 2 2 3 3 /* Copyright (C) 1999 Corel Corporation (Paul Quinn) */ … … 30 30 #define GET_WM_CTLCOLOR_MSG(type) (WORD)(WM_CTLCOLORMSGBOX+(type)) 31 31 #define GET_WM_CTLCOLOR_MPS(hdc, hwnd, type) (WPARAM)(hdc), (LONG)(hwnd) 32 #define GET_WM_MENUSELECT_CMD(wp, lp) LOWORD(wp) 33 #define GET_WM_MENUSELECT_FLAGS(wp, lp) (UINT)(int)(short)HIWORD(wp) 34 #define GET_WM_MENUSELECT_HMENU(wp, lp) (HMENU)(lp) 35 #define GET_WM_MENUSELECT_MPS(cmd, f, hmenu) (WPARAM)MAKELONG(cmd, f), (LONG)(hmenu) 32 36 33 37 #define GET_WM_VKEYTOITEM_CODE(wp, lp) (int)(short)LOWORD(wp) … … 944 948 ((int)(DWORD)SendMessage((hwndCtl), CB_GETLBTEXTLEN, (WPARAM)(int)(index), 0L)) 945 949 950 #define ComboBox_GetLBText(hwndCtl, index, lpszBuffer) ((int)(DWORD)SendMessage((hwndCtl), CB_GETLBTEXT, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpszBuffer))) 951 #define ComboBox_GetItemData(hwndCtl, index) ((LRESULT)(DWORD)SendMessage((hwndCtl), CB_GETITEMDATA, (WPARAM)(int)(index), 0L)) 952 #define ComboBox_SetItemData(hwndCtl, index, data) ((int)(DWORD)SendMessage((hwndCtl), CB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data))) 953 946 954 #define ComboBox_DeleteString(hwndCtl, index) \ 947 955 ((int)(DWORD)SendMessage((hwndCtl), CB_DELETESTRING, (WPARAM)(int)(index), 0L)) … … 960 968 ((int)(DWORD)SendMessage((hwndCtl), CB_GETLBTEXT, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpszBuffer))) 961 969 970 #define ComboBox_ShowDropdown(hwndCtl, fShow) ((BOOL)(DWORD)SendMessage((hwndCtl), CB_SHOWDROPDOWN, (WPARAM)(BOOL)(fShow), 0L)) 971 #define ComboBox_GetEditSel(hwndCtl) ((DWORD)SendMessage((hwndCtl), CB_GETEDITSEL, 0L, 0L)) 972 #define ComboBox_SetEditSel(hwndCtl, ichStart, ichEnd) ((int)(DWORD)SendMessage((hwndCtl), CB_SETEDITSEL, 0L, MAKELPARAM((ichStart), (ichEnd)))) 973 962 974 #define ComboBox_GetDroppedState(hwndCtl) \ 963 975 ((BOOL)(DWORD)SendMessage((hwndCtl), CB_GETDROPPEDSTATE, 0L, 0L)) … … 1038 1050 #define Edit_GetTextLength(hwndCtl) GetWindowTextLength(hwndCtl) 1039 1051 #define Edit_SetText(hwndCtl, lpsz) SetWindowText((hwndCtl), (lpsz)) 1052 1053 #define Edit_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) 1054 #define Edit_SetReadOnly(hwndCtl, fReadOnly) ((BOOL)(DWORD)SendMessage((hwndCtl), EM_SETREADONLY, (WPARAM)(BOOL)(fReadOnly), 0L)) 1040 1055 1041 1056 #define Edit_GetModify(hwndCtl) \
Note:
See TracChangeset
for help on using the changeset viewer.