Changeset 1124 for trunk/include/win/commctrl.h
- Timestamp:
- Oct 4, 1999, 6:01:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/commctrl.h
r785 r1124 1 /* $Id: commctrl.h,v 1.1 2 1999-09-02 10:10:10 phallerExp $ */1 /* $Id: commctrl.h,v 1.13 1999-10-04 16:01:29 cbratschi Exp $ */ 2 2 /* 3 3 * Common controls definitions … … 544 544 #define HDS_DRAGDROP 0x0040 545 545 #define HDS_FULLDRAG 0x0080 546 #define HDS_FILTERBAR 0x0100 547 548 #define HDFT_ISSTRING 0x0000 // HD_ITEM.pvFilter points to a HD_TEXTFILTER 549 #define HDFT_ISNUMBER 0x0001 // HD_ITEM.pvFilter points to a INT 550 551 #define HDFT_HASNOVALUE 0x8000 // clear the filter, by setting this bit 546 552 547 553 #define HDI_WIDTH 0x0001 … … 554 560 #define HDI_DI_SETITEM 0x0040 555 561 #define HDI_ORDER 0x0080 562 #define HDI_FILTER 0x0100 556 563 557 564 #define HDF_LEFT 0x0000 … … 559 566 #define HDF_CENTER 0x0002 560 567 #define HDF_JUSTIFYMASK 0x0003 568 #define HDF_RTLREADING 0x0004 561 569 562 570 #define HDF_IMAGE 0x0800 … … 570 578 #define HHT_ONDIVIDER 0x0004 571 579 #define HHT_ONDIVOPEN 0x0008 580 #define HHT_ONFILTER 0x0010 581 #define HHT_ONFILTERBUTTON 0x0020 572 582 #define HHT_ABOVE 0x0100 573 583 #define HHT_BELOW 0x0200 … … 575 585 #define HHT_TOLEFT 0x0800 576 586 577 #define HDM_FIRST 0x1200 578 #define HDM_GETITEMCOUNT (HDM_FIRST+0) 579 #define HDM_INSERTITEMA (HDM_FIRST+1) 580 #define HDM_INSERTITEMW (HDM_FIRST+10) 581 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM) 582 #define HDM_DELETEITEM (HDM_FIRST+2) 583 #define HDM_GETITEMA (HDM_FIRST+3) 584 #define HDM_GETITEMW (HDM_FIRST+11) 585 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM) 586 #define HDM_SETITEMA (HDM_FIRST+4) 587 #define HDM_SETITEMW (HDM_FIRST+12) 588 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM) 589 #define HDM_LAYOUT (HDM_FIRST+5) 590 #define HDM_HITTEST (HDM_FIRST+6) 591 #define HDM_GETITEMRECT (HDM_FIRST+7) 592 #define HDM_SETIMAGELIST (HDM_FIRST+8) 593 #define HDM_GETIMAGELIST (HDM_FIRST+9) 594 595 #define HDM_ORDERTOINDEX (HDM_FIRST+15) 596 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16) 597 #define HDM_GETORDERARRAY (HDM_FIRST+17) 598 #define HDM_SETORDERARRAY (HDM_FIRST+18) 599 #define HDM_SETHOTDIVIDER (HDM_FIRST+19) 600 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT 601 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT 587 #define HDM_FIRST 0x1200 588 #define HDM_GETITEMCOUNT (HDM_FIRST+0) 589 #define HDM_INSERTITEMA (HDM_FIRST+1) 590 #define HDM_INSERTITEMW (HDM_FIRST+10) 591 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM) 592 #define HDM_DELETEITEM (HDM_FIRST+2) 593 #define HDM_GETITEMA (HDM_FIRST+3) 594 #define HDM_GETITEMW (HDM_FIRST+11) 595 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM) 596 #define HDM_SETITEMA (HDM_FIRST+4) 597 #define HDM_SETITEMW (HDM_FIRST+12) 598 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM) 599 #define HDM_LAYOUT (HDM_FIRST+5) 600 #define HDM_HITTEST (HDM_FIRST+6) 601 #define HDM_GETITEMRECT (HDM_FIRST+7) 602 #define HDM_SETIMAGELIST (HDM_FIRST+8) 603 #define HDM_GETIMAGELIST (HDM_FIRST+9) 604 605 #define HDM_ORDERTOINDEX (HDM_FIRST+15) 606 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16) 607 #define HDM_GETORDERARRAY (HDM_FIRST+17) 608 #define HDM_SETORDERARRAY (HDM_FIRST+18) 609 #define HDM_SETHOTDIVIDER (HDM_FIRST+19) 610 #define HDM_SETBITMAPMARGIN (HDM_FIRST+20) 611 #define HDM_GETBITMAPMARGIN (HDM_FIRST+21) 612 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT 613 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT 614 #define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22) 615 #define HDM_EDITFILTER (HDM_FIRST+23) 616 #define HDM_CLEARFILTER (HDM_FIRST+24) 602 617 603 618 #define HDN_FIRST (0U-300U) … … 632 647 #define HDN_BEGINDRACK (HDN_FIRST-10) 633 648 #define HDN_ENDDRACK (HDN_FIRST-11) 649 #define HDN_FILTERCHANGE (HDN_FIRST-12) 650 #define HDN_FILTERBTNCLICK (HDN_FIRST-13) 651 652 typedef struct _HD_TEXTFILTERA 653 { 654 LPSTR pszText; // [in] pointer to the buffer containing the filter (ANSI) 655 INT cchTextMax; // [in] max size of buffer/edit control buffer 656 } HD_TEXTFILTERA, *LPHD_TEXTFILTERA; 657 658 typedef struct _HD_TEXTFILTERW 659 { 660 LPWSTR pszText; // [in] pointer to the buffer contiaining the filter (UNICODE) 661 INT cchTextMax; // [in] max size of buffer/edit control buffer 662 } HD_TEXTFILTERW, *LPHD_TEXTFILTERW; 663 664 #define HD_TEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER) 634 665 635 666 typedef struct _HD_LAYOUT … … 645 676 UINT mask; 646 677 INT cxy; 647 LPSTR 678 LPSTR pszText; 648 679 HBITMAP hbm; 649 680 INT cchTextMax; 650 681 INT fmt; 651 LPARAM 682 LPARAM lParam; 652 683 INT iImage; 653 684 INT iOrder; 685 UINT type; // [in] filter type (defined what pvFilter is a pointer to) 686 LPVOID pvFilter; // [in] fillter data see above 654 687 } HDITEMA, *LPHDITEMA; 688 689 #define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA, lParam) 690 #define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW, lParam) 655 691 656 692 typedef struct _HD_ITEMW … … 658 694 UINT mask; 659 695 INT cxy; 660 LPWSTR 696 LPWSTR pszText; 661 697 HBITMAP hbm; 662 698 INT cchTextMax; 663 699 INT fmt; 664 LPARAM 700 LPARAM lParam; 665 701 INT iImage; 666 702 INT iOrder; 703 UINT type; // [in] filter type (defined what pvFilter is a pointer to) 704 LPVOID pvFilter; // [in] fillter data see above 667 705 } HDITEMW, *LPHDITEMW; 668 706 … … 686 724 typedef struct tagNMHEADERA 687 725 { 688 NMHDR 726 NMHDR hdr; 689 727 INT iItem; 690 728 INT iButton; … … 694 732 typedef struct tagNMHEADERW 695 733 { 696 NMHDR 734 NMHDR hdr; 697 735 INT iItem; 698 736 INT iButton; … … 706 744 typedef struct tagNMHDDISPINFOA 707 745 { 708 NMHDR 746 NMHDR hdr; 709 747 INT iItem; 710 748 UINT mask; 711 LPSTR 749 LPSTR pszText; 712 750 INT cchTextMax; 713 751 INT iImage; 714 LPARAM 752 LPARAM lParam; 715 753 } NMHDDISPINFOA, *LPNMHDDISPINFOA; 716 754 717 755 typedef struct tagNMHDDISPINFOW 718 756 { 719 NMHDR 757 NMHDR hdr; 720 758 INT iItem; 721 759 UINT mask; 722 LPWSTR 760 LPWSTR pszText; 723 761 INT cchTextMax; 724 762 INT iImage; 725 LPARAM 763 LPARAM lParam; 726 764 } NMHDDISPINFOW, *LPNMHDDISPINFOW; 727 765 728 766 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO) 729 767 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO) 768 769 typedef struct tagNMHDFILTERBTNCLICK 770 { 771 NMHDR hdr; 772 INT iItem; 773 RECT rc; 774 } NMHDFILTERBTNCLICK, *LPNMHDFILTERBTNCLICK; 775 730 776 731 777 #define Header_GetItemCount(hwndHD) \ … … 766 812 #define Header_SetHotDivider(hwnd,fPos,dw) \ 767 813 (INT)SendMessageA((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw) 814 #define Header_SetBitmapMargin(hwnd,iWidth) \ 815 (INT)SendMessageA((hwnd),HDM_SETBITMAPMARGIN,(WPARAM)iWidth,0) 816 #define Header_GetBitmapMargin(hwnd) \ 817 (INT)SendMessageA((hwnd),HDM_GETBITMAPMARGIN,0,0) 768 818 #define Header_SetUnicodeFormat(hwnd,fUnicode) \ 769 819 (BOOL)SendMessageA((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0) 770 820 #define Header_GetUnicodeFormat(hwnd) \ 771 821 (BOOL)SendMessageA((hwnd),HDM_GETUNICODEFORMAT,0,0) 772 822 #define Header_SetFilterChangeTimeout(hwnd,i) \ 823 (INT)SendMessageA((hwnd),HDM_SETFILTERCHANGETIMEOUT,0,(LPARAM)(i)) 824 #define Header_EditFilter(hwnd,i,fDiscardChanges) \ 825 (INT)SendMessageA((hwnd),HDM_EDITFILTER,(WPARAM)i,MAKELPARAM(fDiscardChanges,0)) 826 #define Header_ClearFilter(hwnd, i) \ 827 (INT)SendMessageA((hwnd),HDM_CLEARFILTER,(WPARAM)i,0) 828 #define Header_ClearAllFilters(hwnd) \ 829 (INT)SendMessageA((hwnd),HDM_CLEARFILTER,(WPARAM)-1,0) 773 830 774 831 /* Toolbar */ … … 3249 3306 3250 3307 #define DateTime_GetSystemtime(hdp, pst) \ 3251 (DWORD)SendMessageA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst)) 3308 (DWORD)SendMessageA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst)) 3252 3309 #define DateTime_SetSystemtime(hdp, gd, pst) \ 3253 3310 (BOOL)SendMessageA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst)) 3254 3311 #define DateTime_GetRange(hdp, rgst) \ 3255 (DWORD)SendMessageA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst)) 3312 (DWORD)SendMessageA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst)) 3256 3313 #define DateTime_SetRange(hdp, gd, rgst) \ 3257 3314 (BOOL)SendMessageA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
Note:
See TracChangeset
for help on using the changeset viewer.