- Timestamp:
- Oct 25, 2010, 11:36:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java
r251 r263 39 39 OS2_MINOR = sv[1]; 40 40 OS2_REVISION = sv[2]; 41 41 42 42 IsWarp3 = (OS2_MAJOR == 20 && OS2_MINOR == 30); 43 43 IsWarp4 = (OS2_MAJOR == 20 && OS2_MINOR == 40); … … 58 58 59 59 /* Constants */ 60 60 61 61 public static final int FALSE = 0; 62 62 public static final int TRUE = 1; 63 63 public static final int NULLHANDLE = 0; 64 64 65 65 /* indices for DosQuerySysInfo */ 66 66 // public static final int QSV_MAX_PATH_LENGTH = 1; … … 185 185 public static final int BS_NOCURSORSELECT = 0x2000; 186 186 // public static final int BS_AUTOSIZE = 0x4000; 187 187 188 188 /* WinAlarm Codes */ 189 189 public static final int WA_WARNING = 0; … … 191 191 public static final int WA_ERROR = 2; 192 192 public static final int WA_CWINALARMS = 13; 193 193 194 194 /* WinPeekMsg constants */ 195 195 public static final int PM_REMOVE = 0x0001; … … 241 241 public static final int WM_APPTERMINATENOTIFY = 0x002e; 242 242 public static final int WM_PRESPARAMCHANGED = 0x002f; 243 243 244 244 /* Control notification messages */ 245 245 public static final int WM_CONTROL = 0x0030; … … 261 261 // public static final int WM_HELPTOP = 0x0FFF; 262 262 public static final int WM_USER = 0x1000; 263 263 264 264 /* Frame window related messages */ 265 265 // public static final int WM_FLASHWINDOW = 0x0040; … … 300 300 public static final int WM_CHAR = 0x007a; 301 301 // public static final int WM_VIOCHAR = 0x007b; 302 302 303 303 /*** Mouse input messages ***********************************************/ 304 public static final int WM_MOUSEMOVE = 0x0070; 305 public static final int WM_BUTTON1DOWN = 0x0071; 304 public static final int WM_MOUSEMOVE = 0x0070; 305 public static final int WM_BUTTON1DOWN = 0x0071; 306 306 public static final int WM_BUTTON1UP = 0x0072; 307 307 public static final int WM_BUTTON1DBLCLK = 0x0073; … … 351 351 // public static final int KC_DBCSRSRVD1 = 0x4000; 352 352 // public static final int KC_DBCSRSRVD2 = 0x8000; 353 353 354 354 /* Virtual key values */ 355 355 public static final int VK_BUTTON1 = 0x01; … … 443 443 public static final int BDS_DISABLED = 0x0200; 444 444 public static final int BDS_DEFAULT = 0x0400; 445 445 446 446 /* Standard WinQueryWindowUShort/ULong() indices */ 447 447 public static final int QWS_USER = 0; … … 602 602 // public static final int CVR_ALIGNTOP = 0x0008; 603 603 public static final int CVR_REDRAW = 0x0010; 604 604 605 605 /* Frame window styles */ 606 606 public static final int FCF_TITLEBAR = 0x00000001; … … 670 670 public static final int GPI_HITS = 2; 671 671 //public static final int GPI_ALTERROR = (-1); 672 672 673 673 /* return code to indicate type of region for GpiCombineRegion and others */ 674 674 public static final int RGN_ERROR = 0; … … 725 725 // public static final int CAPS_GRAPHICS_SUBSET = 28; 726 726 // public static final int CAPS_GRAPHICS_VERSION = 29; 727 // public static final int CAPS_GRAPHICS_VECTOR_SUBSET = 30; 727 // public static final int CAPS_GRAPHICS_VECTOR_SUBSET = 30; 728 728 // public static final int CAPS_DEVICE_WINDOWING = 31; 729 729 public static final int CAPS_ADDITIONAL_GRAPHICS = 32; … … 741 741 // public static final int CAPS_IO_SUPPORTS_OP = 2; 742 742 // public static final int CAPS_IO_SUPPORTS_IP = 3; 743 // public static final int CAPS_IO_SUPPORTS_IO = 4; 743 // public static final int CAPS_IO_SUPPORTS_IO = 4; 744 744 /* Constants for CAPS_TECHNOLOGY */ 745 745 // public static final int CAPS_TECH_UNKNOWN = 0; … … 804 804 // public static final int CAPS_RASTER_FONTS = 32; 805 805 // public static final int CAPS_RASTER_FLOOD_FILL = 64; 806 806 807 807 /* options for GpiCreateLogColorTable and others */ 808 808 // public static final int LCOL_RESET = 0x0001; … … 837 837 // public static final int FM_NOTMASKSRC = 16; 838 838 // public static final int FM_ONE = 17; 839 839 840 840 /* background mixes */ 841 841 // public static final int BM_ERROR = -1; … … 919 919 public static final int SYSCLR_WINDOWTEXT = -17; 920 920 // public static final int SYSCLR_TITLETEXT = -16; 921 //public static final int SYSCLR_ACTIVEBORDER = -15;921 public static final int SYSCLR_ACTIVEBORDER = -15; 922 922 // public static final int SYSCLR_INACTIVEBORDER = -14; 923 923 // public static final int SYSCLR_APPWORKSPACE = -13; … … 1042 1042 // public static final int PP_HILITEFOREGROUNDCOLOR = 5; 1043 1043 // public static final int PP_HILITEFOREGROUNDCOLORINDEX = 6; 1044 //public static final int PP_HILITEBACKGROUNDCOLOR = 7;1044 public static final int PP_HILITEBACKGROUNDCOLOR = 7; 1045 1045 // public static final int PP_HILITEBACKGROUNDCOLORINDEX = 8; 1046 1046 public static final int PP_DISABLEDFOREGROUNDCOLOR = 9; … … 1149 1149 public static final int DLGC_TABONCLICK = 0x0200; 1150 1150 public static final int DLGC_MLE = 0x0400; 1151 1151 1152 1152 /* DC type for DevOpenDC */ 1153 1153 // public static final int OD_SCREEN = 0; … … 1251 1251 // public static final int TA_STANDARD_VERT = 0x0600; 1252 1252 1253 public static final int FACESIZE = 32; 1254 1255 //@@TODO (dmik): remove! 1253 public static final int FACESIZE = 32; 1254 1255 //@@TODO (dmik): remove! 1256 1256 /* FACENAMEDESC options for GpiQueryFaceString */ 1257 1257 public static final int FWEIGHT_DONT_CARE = 0; … … 1375 1375 public static final int CHS_UNDERSCORE = 0x0200; 1376 1376 // public static final int CHS_STRIKEOUT = 0x0400; 1377 1377 1378 1378 /* WinDrawText()/WinDrawTabbedText() codes */ 1379 1379 public static final int DT_LEFT = 0x00000000; … … 1415 1415 public static final int HINI_USERPROFILE = -1; 1416 1416 // public static final int HINI_SYSTEMPROFILE = -2; 1417 1417 1418 1418 /* Message box types */ 1419 1419 public static final int MB_OK = 0x0000; … … 1460 1460 public static final int MBID_ENTER = 9; 1461 1461 public static final int MBID_ERROR = 0xffff; 1462 1462 1463 1463 /**********************************************************************/ 1464 1464 /* Font Dialog Style Flags */ … … 1486 1486 public static final int FNTF_SCREENFONTSELECTED = 4; 1487 1487 public static final int FNTF_PRINTERFONTSELECTED = 8; 1488 1488 1489 1489 /**********************************************************************/ 1490 1490 /* Filter List message string identifiers */ … … 1499 1499 public static final int FNTI_STYLENAME = 0x0200; 1500 1500 public static final int FNTI_POINTSIZE = 0x0400; 1501 1501 1502 1502 /**********************************************************************/ 1503 1503 /* Error Return Codes from dialog (self defining) */ … … 1510 1510 public static final int FNTS_ERR_INVALID_VERSION = 10; 1511 1511 public static final int FNTS_ERR_DIALOG_LOAD_ERROR = 12; 1512 1512 1513 1513 /* default color table indices */ 1514 1514 1515 1515 public static final int CLR_FALSE = -5; 1516 public static final int CLR_TRUE = -4; 1516 public static final int CLR_TRUE = -4; 1517 1517 public static final int CLR_ERROR = -255; 1518 1518 public static final int CLR_DEFAULT = -3; … … 1568 1568 // public static final int FDS_ERR_DIALOG_LOAD_ERROR = 12; 1569 1569 // public static final int FDS_ERR_DRIVE_ERROR = 13; 1570 1570 1571 1571 /* Static control styles: */ 1572 1572 public static final int SS_TEXT =0x0001; … … 1582 1582 public static final int SS_SYSICON =0x000b; 1583 1583 public static final int SS_AUTOSIZE =0x0040; 1584 /* Static control messages */ 1584 /* Static control messages */ 1585 1585 public static final int SM_SETHANDLE =0x0100; 1586 1586 public static final int SM_QUERYHANDLE =0x0101; 1587 1587 1588 1588 /*** Scroll Bar controls Subsection */ 1589 1589 1590 1590 /* Scroll Bar styles */ 1591 1591 1592 1592 public static final int SBS_HORZ =0; 1593 1593 public static final int SBS_VERT =1; … … 1595 1595 public static final int SBS_AUTOTRACK =4; 1596 1596 public static final int SBS_AUTOSIZE =0x2000; 1597 1598 1599 1597 1598 1599 1600 1600 /* Scroll Bar messages */ 1601 1601 1602 1602 public static final int SBM_SETSCROLLBAR = 0x01a0; 1603 1603 public static final int SBM_SETPOS =0x01a1; … … 1605 1605 public static final int SBM_QUERYRANGE =0x01a3; 1606 1606 public static final int SBM_SETTHUMBSIZE =0x01a6; 1607 1607 1608 1608 /* Scroll Bar Commands */ 1609 1609 1610 1610 public static final int SB_LINEUP =1; 1611 1611 public static final int SB_LINEDOWN = 2; … … 1619 1619 public static final int SB_SLIDERPOSITION =6; 1620 1620 public static final int SB_ENDSCROLL =7; 1621 1621 1622 1622 /************************************************************************* 1623 1623 * MLE Window styles ( in addition to WS_* ) … … 1657 1657 public static final int MLM_SETREADONLY = 0x01b8; 1658 1658 public static final int MLM_QUERYREADONLY = 0x01b9; 1659 1659 1660 1660 /* text content manipulation and queries messages */ 1661 1661 public static final int MLM_QUERYCHANGED = 0x01ba; … … 1666 1666 public static final int MLM_QUERYLINELENGTH = 0x01bf; 1667 1667 public static final int MLM_QUERYTEXTLENGTH = 0x01c0; 1668 1668 1669 1669 /* text import and export messages */ 1670 1670 public static final int MLM_FORMAT = 0x01c1; … … 1676 1676 public static final int MLM_QUERYFORMATTEXTLENGTH = 0x01c8; 1677 1677 public static final int MLM_INSERT = 0x01c9; 1678 1678 1679 1679 /* selection messages */ 1680 1680 public static final int MLM_SETSEL = 0x01ca; 1681 1681 public static final int MLM_QUERYSEL = 0x01cb; 1682 1682 public static final int MLM_QUERYSELTEXT = 0x01cc; 1683 1683 1684 1684 /* undo and redo messages */ 1685 1685 public static final int MLM_QUERYUNDO = 0x01cd; 1686 1686 public static final int MLM_UNDO = 0x01ce; 1687 1687 public static final int MLM_RESETUNDO = 0x01cf; 1688 1688 1689 1689 /* text attributes messages */ 1690 1690 public static final int MLM_QUERYFONT = 0x01d0; … … 1694 1694 public static final int MLM_SETBACKCOLOR = 0x01d4; 1695 1695 public static final int MLM_QUERYBACKCOLOR = 0x01d5; 1696 1696 1697 1697 /* scrolling messages */ 1698 1698 public static final int MLM_QUERYFIRSTCHAR = 0x01d6; 1699 1699 public static final int MLM_SETFIRSTCHAR = 0x01d7; 1700 1700 1701 1701 /* clipboard messages */ 1702 1702 public static final int MLM_CUT = 0x01d8; … … 1704 1704 public static final int MLM_PASTE = 0x01da; 1705 1705 public static final int MLM_CLEAR = 0x01db; 1706 1706 1707 1707 /* display manipulation messages */ 1708 1708 public static final int MLM_ENABLEREFRESH = 0x01dc; 1709 1709 public static final int MLM_DISABLEREFRESH = 0x01dd; 1710 1710 1711 1711 /* search message */ 1712 1712 public static final int MLM_SEARCH = 0x01de; 1713 1713 public static final int MLM_QUERYIMPORTEXPORT = 0x01df; 1714 1714 1715 1715 /* notification messages */ 1716 1716 public static final int MLN_OVERFLOW = 0x0001; … … 1728 1728 public static final int MLN_UNDOOVERFLOW = 0x000d; 1729 1729 public static final int MLN_CLPBDFAIL = 0x000f; 1730 1730 1731 1731 /************************************************************************* 1732 1732 * MLM_QUERYSELECTION flags … … 1747 1747 1748 1748 /* Entry field styles */ 1749 1749 1750 1750 public static final int ES_LEFT = 0x00000000; 1751 1751 public static final int ES_CENTER = 0x00000001; … … 1762 1762 public static final int ES_DBCS = 0x00002000; 1763 1763 public static final int ES_MIXED = 0x00003000; 1764 1764 1765 1765 /* Entry Field messages */ 1766 1766 1767 1767 public static final int EM_QUERYCHANGED = 0x0140; 1768 1768 public static final int EM_QUERYSEL = 0x0141; … … 1778 1778 public static final int EM_SETREADONLY = 0x014b; 1779 1779 public static final int EM_SETINSERTMODE = 0x014c; 1780 1780 1781 1781 /* Entry Field notification messages */ 1782 1782 1783 1783 public static final int EN_SETFOCUS = 0x0001; 1784 1784 public static final int EN_KILLFOCUS = 0x0002; … … 1790 1790 1791 1791 /* List box styles */ 1792 1792 1793 1793 public static final int LS_MULTIPLESEL = 0x00000001; 1794 1794 public static final int LS_OWNERDRAW = 0x00000002; … … 1796 1796 public static final int LS_HORZSCROLL = 0x00000008; 1797 1797 public static final int LS_EXTENDEDSEL = 0x00000010; 1798 1798 1799 1799 /* List box messages */ 1800 1800 1801 1801 public static final int LM_QUERYITEMCOUNT = 0x0160; 1802 1802 public static final int LM_INSERTITEM =0x0161; … … 1808 1808 public static final int LM_QUERYITEMTEXTLENGTH = 0x0167; 1809 1809 public static final int LM_QUERYITEMTEXT = 0x0168; 1810 1810 1811 1811 public static final int LM_SETITEMHANDLE = 0x0169; 1812 1812 public static final int LM_QUERYITEMHANDLE = 0x016a; … … 1817 1817 public static final int LM_INSERTMULTITEMS = 0x016f; 1818 1818 public static final int LM_SETITEMWIDTH = 0x0660; 1819 1820 1819 1820 1821 1821 /* List box constants */ 1822 1822 1823 1823 public static final int LIT_CURSOR = -4; 1824 1824 public static final int LIT_ERROR = -3; … … 1826 1826 public static final int LIT_NONE = -1; 1827 1827 public static final int LIT_FIRST = -1; 1828 1828 1829 1829 /* For LM_INSERTITEM msg */ 1830 1830 1831 1831 public static final int LIT_END = -1; 1832 1832 public static final int LIT_SORTASCENDING = -2; 1833 1833 public static final int LIT_SORTDESCENDING = -3; 1834 1834 1835 1835 /* For LM_SEARCHSTRING msg */ 1836 1836 1837 1837 public static final int LSS_SUBSTRING = 0x0001; 1838 1838 public static final int LSS_PREFIX = 0x0002; … … 1840 1840 1841 1841 /* List box notification messages */ 1842 1842 1843 1843 public static final int LN_SELECT =1; 1844 1844 public static final int LN_SETFOCUS =2; … … 1846 1846 public static final int LN_SCROLL =4; 1847 1847 public static final int LN_ENTER =5; 1848 1848 1849 1849 /* combo box styles*/ 1850 1850 public static final int CBS_SIMPLE = 0x0001; … … 1855 1855 public static final int CBID_LIST = 0x029A; 1856 1856 public static final int CBID_EDIT = 0x029B; 1857 1857 1858 1858 public static final int CBM_SHOWLIST = 0x0170; 1859 1859 public static final int CBM_HILITE = 0x0171; 1860 1860 public static final int CBM_ISLISTSHOWING = 0x0172; 1861 1861 1862 1862 public static final int CBN_EFCHANGE = 1; 1863 1863 public static final int CBN_EFSCROLL = 2; … … 1872 1872 /* */ 1873 1873 /**********************************************************************/ 1874 1874 1875 1875 /**********************************************************************/ 1876 1876 /* Message ids */ … … 1900 1900 public static final int BKM_SETTABCOLOR = 0x0374; /* Set book tab color */ 1901 1901 public static final int BKM_SETNOTEBOOKBUTTONS = 0x0375; /* Set common pushbuttons */ 1902 1902 1903 1903 public static final int BKN_PAGESELECTED = 130; /* New page selected by user */ 1904 1904 public static final int BKN_NEWPAGESIZE = 131; /* App page size changed */ … … 1906 1906 public static final int BKN_PAGEDELETED = 133; /* Page deleted notification */ 1907 1907 public static final int BKN_PAGESELECTEDPENDING = 134; /* New page selected by user */ 1908 1908 1909 1909 /**********************************************************************/ 1910 1910 /* Page deletion flags (usDeleteFlag) */ … … 1913 1913 public static final int BKA_SINGLE = 0x0002; /* single page */ 1914 1914 public static final int BKA_TAB = 0x0004; /* minor/major section */ 1915 1915 1916 1916 /**********************************************************************/ 1917 1917 /* Page insertion/query order (usPageOrder, usQueryOrder) */ … … 1922 1922 public static final int BKA_PREV = 0x0010; /* Insert/Query before page */ 1923 1923 public static final int BKA_TOP = 0x0020; /* Query topmost page */ 1924 1924 1925 1925 /**********************************************************************/ 1926 1926 /* Notebook region types (usBookRegion, usType) */ … … 1929 1929 public static final int BKA_MINORTAB = 0x0002; /* Minor Tab */ 1930 1930 public static final int BKA_PAGEBUTTON = 0x0100; /* Page Turning Button */ 1931 1931 1932 1932 /**********************************************************************/ 1933 1933 /* Page insertion/query styles (usPageStyle,usQueryEnd) */ … … 1938 1938 public static final int BKA_AUTOPAGESIZE = 0x0100; /* Page window position/size */ 1939 1939 public static final int BKA_END = 0x0200; /* Query to end of book */ 1940 1940 1941 1941 /**********************************************************************/ 1942 1942 /* Tab window contents (usTabDisplay) */ … … 1944 1944 public static final int BKA_TEXT = 0x0400; /* text data */ 1945 1945 public static final int BKA_BITMAP = 0x0800; /* bitmap */ 1946 1946 1947 1947 /**********************************************************************/ 1948 1948 /* Tabbed dialog-specific constants */ … … 1950 1950 public static final int BKA_AUTOCOLOR = (-1); /* Automatically color tabs */ 1951 1951 public static final int BKA_MAXBUTTONID = 7999; /* Max id for common buttons */ 1952 1952 1953 1953 /**********************************************************************/ 1954 1954 /* Notebook window styles (ulNotebookStyles) */ 1955 1955 /**********************************************************************/ 1956 1956 1957 1957 /**********************************************************************/ 1958 1958 /* Backpage Orientation */ … … 1962 1962 public static final int BKS_BACKPAGESTR = 0x00000004; /* Top right */ 1963 1963 public static final int BKS_BACKPAGESTL = 0x00000008; /* Top left */ 1964 1964 1965 1965 /**********************************************************************/ 1966 1966 /* Major Tab Side */ … … 1970 1970 public static final int BKS_MAJORTABTOP = 0x00000040; /* Major tabs top */ 1971 1971 public static final int BKS_MAJORTABBOTTOM = 0x00000080; /* Major tabs bottom */ 1972 1972 1973 1973 /**********************************************************************/ 1974 1974 /* Tab Type */ … … 1977 1977 public static final int BKS_ROUNDEDTABS = 0x00000100; /* Round edged tabs */ 1978 1978 public static final int BKS_POLYGONTABS = 0x00000200; /* Polygon edged tabs */ 1979 1979 1980 1980 /**********************************************************************/ 1981 1981 /* Binding type */ … … 1983 1983 public static final int BKS_SOLIDBIND = 0x00000000; /* Solid binding */ 1984 1984 public static final int BKS_SPIRALBIND = 0x00000400; /* Spiral binding */ 1985 1985 1986 1986 /**********************************************************************/ 1987 1987 /* Status line text justification */ … … 1990 1990 public static final int BKS_STATUSTEXTRIGHT = 0x00001000; /* Right justify text */ 1991 1991 public static final int BKS_STATUSTEXTCENTER = 0x00002000; /* Center text */ 1992 1992 1993 1993 /**********************************************************************/ 1994 1994 /* Tab text justification */ … … 1997 1997 public static final int BKS_TABTEXTRIGHT = 0x00004000; /* Right justify tab text*/ 1998 1998 public static final int BKS_TABTEXTCENTER = 0x00008000; /* Center tab text */ 1999 1999 2000 2000 /**********************************************************************/ 2001 2001 /* Tabbed dialog styles */ … … 2003 2003 public static final int BKS_TABBEDDIALOG = 0x00000800; /* Tabbed dialog */ 2004 2004 public static final int BKS_BUTTONAREA = 0x00000200; /* Reserve space for */ 2005 2005 2006 2006 /**********************************************************************/ 2007 2007 /* Notebook color presentation param attributes */ … … 2019 2019 2020 2020 /* Menu control styles */ 2021 2021 2022 2022 public static final int MS_ACTIONBAR = 0x00000001; 2023 2023 public static final int MS_TITLEBUTTON = 0x00000002; 2024 2024 public static final int MS_VERTICALFLIP = 0x00000004; 2025 2025 2026 2026 public static final int MS_CONDITIONALCASCADE = 0x00000040; 2027 2027 2028 2028 /* Menu control messages */ 2029 2029 2030 2030 public static final int MM_INSERTITEM = 0x0180; 2031 2031 public static final int MM_DELETEITEM = 0x0181; … … 2048 2048 public static final int MM_ISITEMVALID = 0x0193; 2049 2049 public static final int MM_QUERYITEMRECT = 0x0194; 2050 2050 2051 2051 public static final int MM_QUERYDEFAULTITEMID = 0x0431; 2052 2052 public static final int MM_SETDEFAULTITEMID = 0x0432; … … 2058 2058 public static final int MIT_FIRST = -2; 2059 2059 public static final int MIT_LAST = -3; 2060 // public static final int MID_NONE 2060 // public static final int MID_NONE 2061 2061 public static final int MID_ERROR = -1; 2062 2062 2063 2063 /* Menu item styles & attributes */ 2064 2064 2065 2065 public static final int MIS_TEXT = 0x0001; 2066 2066 2067 2067 public static final int MIS_BITMAP = 0x0002; 2068 2068 public static final int MIS_SEPARATOR = 0x0004; 2069 2069 2070 2070 public static final int MIS_OWNERDRAW = 0x0008; 2071 2071 2072 2072 public static final int MIS_SUBMENU = 0x0010; 2073 2073 public static final int MIS_MULTMENU = 0x0020; /* multiple choice submenu */ … … 2082 2082 ** radiobutton. Absence of this style defaults the item to a checkbox. */ 2083 2083 public static final int MIS_SINGLE = 0x2000; 2084 2084 2085 2085 public static final int MIA_NODISMISS = 0x0020; 2086 2086 public static final int MIA_FRAMED = 0x1000; … … 2090 2090 2091 2091 public static final int PU_POSITIONONITEM = 0x0001; /* Need idItem parameter */ 2092 2092 2093 2093 public static final int PU_HCONSTRAIN = 0x0002; /* Keep menu on left and right edge */ 2094 2094 public static final int PU_VCONSTRAIN = 0x0004; /* Keep menu on top and bottom edge */ 2095 2095 2096 2096 public static final int PU_NONE = 0x0000; /* If invoked by keyboard */ 2097 2097 public static final int PU_MOUSEBUTTON1DOWN = 0x0008; /* If invoked by button 1 */ 2098 2098 public static final int PU_MOUSEBUTTON2DOWN = 0x0010; /* If invoked by button 2 */ 2099 2099 public static final int PU_MOUSEBUTTON3DOWN = 0x0018; /* If invoked by button 3 */ 2100 2100 2101 2101 public static final int PU_SELECTITEM = 0x0020; /* Set selected item (use with kbd) */ 2102 2102 2103 2103 public static final int PU_MOUSEBUTTON1 = 0x0040; /* If button1 use allowed */ 2104 2104 public static final int PU_MOUSEBUTTON2 = 0x0080; /* If button2 use allowed */ … … 2116 2116 public static final int AF_SYSCOMMAND = 0x0100; 2117 2117 public static final int AF_HELP = 0x0200; 2118 2118 2119 2119 /* Standard WM_SYSCOMMAND command values */ 2120 2120 public static final int SC_SIZE = 0x8000; … … 2153 2153 /* */ 2154 2154 /**********************************************************************/ 2155 2155 2156 2156 /**********************************************************************/ 2157 2157 /* Define messages for the slider control */ … … 2195 2195 public static final int SLS_PRIMARYSCALE1 = 0x00000000; /* Scale 1 is primary scale */ 2196 2196 public static final int SLS_PRIMARYSCALE2 = 0x00000400; /* Scale 2 is primary scale */ 2197 2197 2198 2198 /**********************************************************************/ 2199 2199 /* Message attributes for setting and querying slider components */ … … 2208 2208 public static final int SMA_INCREMENTVALUE = 0x0001; 2209 2209 public static final int SMA_SETALLTICKS = 0xFFFF; 2210 2210 2211 2211 /**********************************************************************/ 2212 2212 /* Ownerdraw flag definitions */ … … 2216 2216 public static final int SDA_BACKGROUND = 0x0003; 2217 2217 public static final int SDA_SLIDERARM = 0x0004; 2218 2218 2219 2219 /*** WM_HITTEST return codes ********************************************/ 2220 public static final int HT_NORMAL = 0; 2221 public static final int HT_TRANSPARENT = -1; 2222 public static final int HT_DISCARD =-2; 2223 public static final int HT_ERROR =-3; 2220 public static final int HT_NORMAL = 0; 2221 public static final int HT_TRANSPARENT = -1; 2222 public static final int HT_DISCARD = -2; 2223 public static final int HT_ERROR = -3; 2224 2225 /**********************************************************************/ 2226 /* Progress Bar Control from eCO Soft */ 2227 /**********************************************************************/ 2228 2229 /* Resource type for PNG inmage in the resource module 2230 * This type to be used to define sequences of the images 2231 * for progress animations 2232 */ 2233 public static final int RT_PNG = 400; 2234 2235 // Resource IDs of dialog frames 2236 public static final int ID_DLG_FRAME = 5000; 2237 public static final int ID_DLG_FRAME_NOMINBUTTON = 5050; 2238 public static final int ID_DLG_NOFRAME = 5100; 2239 2240 // Default IDs of the dialog controls 2241 public static final int ID_CAPTION_1 = 5201; // Caption 1 2242 public static final int ID_CAPTION_2 = 5202; // Caption 2 2243 public static final int ID_CAPTION_3 = 5203; // Caption 3 2244 public static final int ID_PROGRESS_BAR = 5500; // Progress bar 2245 public static final int ID_PROGRESS_ICON = 5501; // Progress icon 2246 2247 public static final int ID_BUTTON_1 = 3; 2248 public static final int ID_BUTTON_2 = 4; 2249 public static final int ID_BUTTON_3 = 5; 2250 public static final int ID_BUTTON_HELP = 6; 2251 2252 /* Constant to leave attributes unchanged. Used with prgSetuAttributes() call */ 2253 public static final int LEAVE_AS_IS = -1; 2254 2255 /* Constants, used to specify which caption is to be changed 2256 * in the progress dialog 2257 * Used with prgSetCaption() call 2258 */ 2259 public static final int CAPTION_SET_TITLE = 0; // Progress dialog's title 2260 public static final int CAPTION_SET_DIALOG = 0; // Progress dialog 2261 public static final int CAPTION_SET_1 = 1; // First (topmost) caption - top aligned 2262 public static final int CAPTION_SET_2 = 2; // Second caption - center aligned 2263 public static final int CAPTION_SET_3 = 3; // Third caption - bottom aligned 2264 public static final int CAPTION_SET_BUTTON = 4; // Cancel button 2265 public static final int CAPTION_SET_PROGRESS_BAR = 5; // Progress Bar 2266 public static final int CAPTION_SET_PROGRESS_ICON = 6; // Progress Icon 2267 public static final int CAPTION_SET_BUT_1 = 7; // Ok button 2268 public static final int CAPTION_SET_BUT_2 = 8; // Retry button 2269 public static final int CAPTION_SET_BUT_3 = 4; // Cancel button 2270 public static final int CAPTION_SET_BUT_HELP = 9; // Ignore button 2271 2272 /* Progress dialog creation flags 2273 * Used with prgShowDlg() call 2274 */ 2275 public static final int PRS_SHOW = 0x0001; // Show dialog. If not set progress dialog window will not be shown during creation. It must be shown later with WinShowIndow() call. 2276 public static final int PRS_NOMINBUTTON = 0x0004; // No minimize button will appear on the titlebar. Progress dialog will not appear in the window list. This flag is ignored, if progress dialog have no frame (pszTitle = NULL in the PrgShowDlg() call). 2277 public static final int PRS_ICON = 0x0008; // Progress icon exists 2278 public static final int PRS_ICONPERCENT = 0x0010; // Progress icon shows percentage. If this flag is not set, icon shows either looped animation or a single image. 2279 public static final int PRS_BAR = 0x0020; // Progress bar exists. 2280 public static final int PRS_IMAGE = 0x0040; // Progress bar displayed using a pair PNG images from the resource file. If PRS_BAR flag is not set, this flag is ignored. 2281 public static final int PRS_SEGMENTED = 0x0080; // Progress basr is segmented. If PRS_BAR flag is not set, this flag is ignored. 2282 // PRS_SEGMENTED and PRS_IMAGE are mutually exclusive. 2283 // If neither PRS_SEGMENTED nor PRS_IMAGE flag is not set, solid progress bar displayed. 2284 public static final int PRS_BUT_2 = 0x0100; // 1st button present 2285 public static final int PRS_BUT_3 = 0x0200; // 1st button present 2286 public static final int PRS_BUT_HELP = 0x0400; // Help button present 2287 public static final int PRS_DISMISS = 0x1000; // Dismiss dialog on a button click 2288 public static final int PRS_OWNLANGE = 0x2000; // Use own LANGE handle 2289 2290 public static final int PRL_DISMISS = 0x00000001; // Dismiss dialog on a button click 2291 2292 2293 public static final int MB_BIGICON = 0x00010000; // "Big icon" flag 2294 public static final int MB_ANIMATED = 0x00020000; // "Animated" flag 2295 public static final int MB_COMMENT = 0x00040000; // "Comment" flag 2296 public static final int MB_OWNCAPTIONS = 0x00080000; // "Own captions" flag 2297 public static final int MB_OWNLANGE = 0x00100000; // "Own LANGE" flag 2298 public static final int MB_MINBUTTON = 0x00200000; // "Own LANGE" flag 2299 public static final int MB_NODEFBUTTON = 0x00000300; // No default button 2300 2301 public static final int ID_ANIMATION = 0xA1F2; // Animation timer ID 2302 2303 /* IDs of the button captions */ 2304 public static final int LID_OK = 0; 2305 public static final int LID_CANCEL = 1; 2306 public static final int LID_YES = 2; 2307 public static final int LID_NO = 3; 2308 public static final int LID_ENTER = 4; 2309 public static final int LID_ABORT = 5; 2310 public static final int LID_RETRY = 6; 2311 public static final int LID_IGNORE = 7; 2312 public static final int LID_HELP = 8; 2313 2314 /* Constant for the resource IDs of the default image sequences 2315 * in the PROGRESS.DLL 2316 * Used with prgShowDlg() call 2317 */ 2318 public static final int ID_PROGRESS_PNG_ICON_PERCENT = 2000; // An image sequence, used to display icon with percentage. Minimum 2 images, maximum 101 image. 2319 public static final int ID_PROGRESS_PNG_ICON = 2100; // An image sequence used to display animated icon looop. 2320 public static final int ID_PROGRESS_PNG_ICON_STATIC = 2111; // An image used to display one static icon. 2321 public static final int ID_PROGRESS_PNG_BAR = 2500; // A pair of images, used to display graphical progress bar. 2322 2323 public static final int IDP_ICON_ERROR_32 = 3000; // "Error" - "X" icon 32x32 2324 public static final int IDP_ICON_ERROR_40 = 3020; // "Error" - "X" icon 40x40 2325 public static final int IDP_ICON_ERROR_64 = 3040; // "Error" - "X" icon 64x64 2326 public static final int IDP_ICON_ERROR_80 = 3060; // "Error" - "X" icon 80x80 2327 2328 public static final int IDP_ICON_INFO_32 = 3100; // "Information" - "i" icon 32x32 2329 public static final int IDP_ICON_INFO_40 = 3120; // "Information" - "i" icon 40x40 2330 public static final int IDP_ICON_INFO_64 = 3140; // "Information" - "i" icon 64x64 2331 public static final int IDP_ICON_INFO_80 = 3160; // "Information" - "i" icon 80x80 2332 2333 public static final int IDP_ICON_QUERY_32 = 3200; // "Query" - "?" icon 32x32 2334 public static final int IDP_ICON_QUERY_40 = 3220; // "Query" - "?" icon 40x40 2335 public static final int IDP_ICON_QUERY_64 = 3240; // "Query" - "?" icon 64x64 2336 public static final int IDP_ICON_QUERY_80 = 3260; // "Query" - "?" icon 80x80 2337 2338 public static final int IDP_ICON_WARNING_32 = 3300; // "Warning" - "!" icon 32x32 2339 public static final int IDP_ICON_WARNING_40 = 3320; // "Warning" - "!" icon 40x40 2340 public static final int IDP_ICON_WARNING_64 = 3340; // "Warning" - "!" icon 64x64 2341 public static final int IDP_ICON_WARNING_80 = 3360; // "Warning" - "!" icon 80x80 2342 2224 2343 2225 2344 public static final int SPTR_ARROW = 1; … … 2415 2534 /* PM macros */ 2416 2535 2417 public static final short SHORT1FROMMP (int mp) { return (short)mp; } 2536 public static final short SHORT1FROMMP (int mp) { return (short)mp; } 2418 2537 public static final short SHORT2FROMMP (int mp) { return (short)(((mp & 0xFFFF0000)>>16) & 0xFFFF); } 2419 2538 //((pixels & 0xFFFF0000)>>16) & 0xFFFF … … 2436 2555 2437 2556 /* Native<->Java Object copiers */ 2438 2439 public static final native void objcpy (int to, int[] from); 2557 2558 public static final native void objcpy (int to, int[] from); 2440 2559 public static final native void objcpy (int[] to, int from); 2441 2560 … … 2446 2565 public static final native void objcpy (TIB to, int from); 2447 2566 2448 public static final native void objcpy (int to, PIB from); 2567 public static final native void objcpy (int to, PIB from); 2449 2568 public static final native void objcpy (PIB to, int from); 2450 2569 2451 public static final native void objcpy (int to, RECTL from); 2570 public static final native void objcpy (int to, RECTL from); 2452 2571 public static final native void objcpy (RECTL to, int from); 2453 2572 2454 public static final native void objcpy (int to, SWP from); 2573 public static final native void objcpy (int to, SWP from); 2455 2574 public static final native void objcpy (SWP to, int from); 2456 2575 2457 public static final native void objcpy (int to, OWNERITEM from); 2576 public static final native void objcpy (int to, OWNERITEM from); 2458 2577 public static final native void objcpy (OWNERITEM to, int from); 2459 2578 … … 2528 2647 public static final native boolean WinMapWindowPoints (int hwndFrom, int hwndTo, 2529 2648 int [] prgptl, int cwpt); 2530 2649 2531 2650 public static final native boolean WinQueryWindowPos (int hwnd, SWP pswp); 2532 2651 public static final native boolean WinSetWindowPos (int hwnd, int hwndInsertBehind, … … 2565 2684 public static final native int WinBeginPaint (int hwnd, int hps, RECTL prclPaint); 2566 2685 public static final native boolean WinEndPaint (int hps); 2567 public static final native boolean WinInvalidateRect (int hwnd, RECTL pwrc, 2686 public static final native boolean WinInvalidateRect (int hwnd, RECTL pwrc, 2568 2687 boolean fIncludeChildren); 2569 2688 public static final native boolean WinUpdateWindow (int hwnd); … … 2586 2705 public static final native int WinGetSysBitmap (int hwndDesktop, int ibm); 2587 2706 2588 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 2707 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 2589 2708 int cbAttrValueLen, int[] pAttrValue); 2590 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 2709 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 2591 2710 int cbAttrValueLen, byte[] pAttrValue); 2592 2711 public static final native int WinQueryPresParam (int hwnd, int idAttrType1, … … 2603 2722 2604 2723 public static final native int WinDrawText (int hps, int cchText, 2605 //@@TODO (dmik): Unicode 2724 //@@TODO (dmik): Unicode 2606 2725 // char[] lpchText, RECTL prcl, int clrFore, int clrBack, int flCmd); 2607 2726 byte[] lpchText, RECTL prcl, int clrFore, int clrBack, int flCmd); 2608 2727 2609 2728 public static final native int WinGetKeyState (int hwndDesktop, int vkey); 2610 2729 2611 2730 public static final native int WinMessageBox (int hwndParent, int hwndOwner, 2612 2731 PSZ pszMessage, PSZ pszTitle, int ulWinId, int flStyle); … … 2649 2768 public static final native int PrfQueryProfileString (int hini, PSZ pszApp, 2650 2769 PSZ pszKey, PSZ pszDefault, byte[] pBuffer, int ulBufferMax); 2651 2770 2652 2771 // PM helpers 2653 2772 … … 2738 2857 public static final native boolean GpiSetAttrs (int hps, int lPrimType, 2739 2858 int flAttrMask, int flDefMask, int[] ppbunAttrs); 2740 2859 2741 2860 public static final native boolean GpiQueryDefaultViewMatrix (int hps, int lCount, 2742 2861 int[] pmatlfArray); … … 2763 2882 public static final native boolean GpiSetTextAlignment (int hps, int lHoriz, int lVert); 2764 2883 public static final native int GpiCharStringAt (int hps, int[] pptlPoint, int lCount, 2765 //@@TODO (dmik): Unicode 2884 //@@TODO (dmik): Unicode 2766 2885 // char[] pchString); 2767 2886 byte[] pchString); 2768 2887 public static final native boolean GpiQueryTextBox (int hps, int lCount1, 2769 //@@TODO (dmik): Unicode 2888 //@@TODO (dmik): Unicode 2770 2889 // char[] pchString, int lCount2, int[] aptlPoints); 2771 2890 byte[] pchString, int lCount2, int[] aptlPoints); … … 2777 2896 FATTRS pfatAttrs); 2778 2897 public static final native boolean GpiSetCharSet (int hps, int llcid); 2779 public static final native boolean GpiSetCharBox (int hps, int[] psizfxBox); 2898 public static final native boolean GpiSetCharBox (int hps, int[] psizfxBox); 2780 2899 public static final native boolean GpiQueryFontMetrics (int hps, int lMetricsLength, FONTMETRICS pfmMetrics); 2900 2901 // Extended Controls eCo Toolkit 2902 public static final native int PrgShowDlg (int hwndParent, int hwndOwner, short fsFlags, int hmodResource, int ulIcon, int ulBar, short usId, PSZ pszTitle, PSZ pszButton1, PSZ pszCaption1, PSZ pszCaption2, PSZ pszCaption3); 2903 public static final native boolean PrgSetupAttributes(int hwndDlg, int ulControlIndex, int[] pulForegroundColor, int[] pulBackgroundColor, PSZ pszFontNameSize, boolean flUpdate); 2904 public static final native int PrgSetPercentage(int hwndProgress, short usPercent); 2905 //public static final native boolean PrgSetupCaption(int hwndDlg, int ulControlIndex, PSZ pszText, boolean flUpdate); 2781 2906 } 2782 2907
Note:
See TracChangeset
for help on using the changeset viewer.