Ignore:
Timestamp:
Apr 9, 2000, 1:09:12 PM (25 years ago)
Author:
sandervl
Message:

YD: header changes/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/windowsx.h

    r2694 r3354  
    1 /* $Id: windowsx.h,v 1.8 2000-02-09 13:40:23 sandervl Exp $ */
     1/* $Id: windowsx.h,v 1.9 2000-04-09 11:09:11 sandervl Exp $ */
    22
    33/* Copyright (C) 1999 Corel Corporation (Paul Quinn) */
     
    951951                ((int)(DWORD)SendMessage((hwndCtl), CB_SETCURSEL, (WPARAM)(int)(index), 0L))
    952952
     953#define ComboBox_SelectString(hwndCtl, indexStart, lpszSelect)  ((int)(DWORD)SendMessage((hwndCtl), CB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszSelect)))
     954
    953955#define ComboBox_GetLBTextLen(hwndCtl, index) \
    954956                ((int)(DWORD)SendMessage((hwndCtl), CB_GETLBTEXTLEN, (WPARAM)(int)(index), 0L))
     
    994996        ((LRESULT)(DWORD)SendMessage((hwndCtl), LB_GETITEMDATA, (WPARAM)(int)(index), 0L))
    995997
     998#define ListBox_SetItemData(hwndCtl, index, data)   ((int)(DWORD)SendMessage((hwndCtl), LB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data)))
     999
    9961000#define ListBox_GetCurSel(hwndCtl)        \
    9971001        ((int)(DWORD)SendMessage((hwndCtl), LB_GETCURSEL, 0L, 0L))
     
    10591063#define Edit_GetTextLength(hwndCtl)             GetWindowTextLength(hwndCtl)
    10601064#define Edit_SetText(hwndCtl, lpsz)             SetWindowText((hwndCtl), (lpsz))
     1065#define Edit_LimitText(hwndCtl, cchMax)         ((void)SendMessage((hwndCtl), EM_LIMITTEXT, (WPARAM)(cchMax), 0L))
    10611066
    10621067#define Edit_Enable(hwndCtl, fEnable)           EnableWindow((hwndCtl), (fEnable))
Note: See TracChangeset for help on using the changeset viewer.