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.

25 lines
1.5 KiB

  1. #ifndef _ComboBoxEx_h_
  2. #define _ComboBoxEx_h_
  3. //#include <windowsx.h>
  4. struct MEMBER_CHANNEL_ID;
  5. #define ComboBoxEx_GetCount(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETCOUNT, 0L, 0L))
  6. #define ComboBoxEx_GetCurSel(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETCURSEL, 0L, 0L))
  7. #define ComboBoxEx_SetCurSel(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETCURSEL, (WPARAM)(int)(index), 0L))
  8. #define ComboBoxEx_GetComboControl( hHWND ) (HWND)SNDMSG( hHWND, CBEM_GETCOMBOCONTROL, 0, 0 )
  9. #define ComboBoxEx_SetImageList( hHWND, iIMAGELIST ) SNDMSG(hHWND,CBEM_SETIMAGELIST,0,(LPARAM)iIMAGELIST)
  10. #define ComboBoxEx_InsertItem( hHWND, lpcCBItem ) (int)SNDMSG( hHWND, CBEM_INSERTITEM, 0, (LPARAM)(const COMBOBOXEXITEM FAR *) lpcCBItem )
  11. #define ComboBoxEx_GetItem( hHWND, lpcCBItem ) (int)SNDMSG( hHWND, CBEM_GETITEM, 0, (LPARAM) lpcCBItem )
  12. #define ComboBoxEx_DeleteItem( hHWND, iIndex ) (int)SNDMSG( hHWND, CBEM_DELETEITEM, (WPARAM)(int) iIndex, 0 )
  13. #define ComboBoxEx_GetItemHeight( hHWND, iIndex ) (int)SNDMSG( hHWND, CB_GETITEMHEIGHT, (WPARAM)(int)iIndex, 0 )
  14. #define CBEIF_ALL (CBEIF_IMAGE | CBEIF_INDENT | CBEIF_LPARAM | CBEIF_OVERLAY | CBEIF_SELECTEDIMAGE | CBEIF_TEXT )
  15. T120NodeID ComboBoxEx_GetNodeIDFromSendID( HWND hwnd, T120UserID userID );
  16. T120NodeID ComboBoxEx_GetNodeIDFromPrivateSendID( HWND hwnd, T120UserID userID);
  17. int ComboBoxEx_FindMember( HWND hwnd, int iStart, MEMBER_CHANNEL_ID *pMemberID );
  18. void ComboBoxEx_SetHeight( HWND hwnd, int iHeight );
  19. #endif