Changeset 263 for trunk/src


Ignore:
Timestamp:
Oct 25, 2010, 11:36:59 PM (15 years ago)
Author:
lpino
Message:
  • Added pregress bar APIs definitions
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  
    3939        OS2_MINOR = sv[1];
    4040        OS2_REVISION = sv[2];
    41        
     41
    4242        IsWarp3 = (OS2_MAJOR == 20 && OS2_MINOR == 30);
    4343        IsWarp4 = (OS2_MAJOR == 20 && OS2_MINOR == 40);
     
    5858
    5959    /* Constants */
    60    
     60
    6161    public static final int FALSE =             0;
    6262    public static final int TRUE =              1;
    6363    public static final int NULLHANDLE =        0;
    64    
     64
    6565    /* indices for DosQuerySysInfo */
    6666//    public static final int QSV_MAX_PATH_LENGTH =   1;
     
    185185    public static final int BS_NOCURSORSELECT     = 0x2000;
    186186//    public static final int BS_AUTOSIZE           = 0x4000;
    187    
     187
    188188    /* WinAlarm Codes */
    189189    public static final int WA_WARNING =    0;
     
    191191    public static final int WA_ERROR =      2;
    192192    public static final int WA_CWINALARMS = 13;
    193    
     193
    194194    /* WinPeekMsg constants */
    195195    public static final int PM_REMOVE =     0x0001;
     
    241241    public static final int WM_APPTERMINATENOTIFY = 0x002e;
    242242    public static final int WM_PRESPARAMCHANGED =   0x002f;
    243    
     243
    244244    /* Control notification messages */
    245245    public static final int WM_CONTROL =            0x0030;
     
    261261//    public static final int WM_HELPTOP =            0x0FFF;
    262262    public static final int WM_USER =               0x1000;
    263    
     263
    264264    /* Frame window related messages */
    265265//    public static final int WM_FLASHWINDOW =        0x0040;
     
    300300    public static final int WM_CHAR =       0x007a;
    301301//    public static final int WM_VIOCHAR =    0x007b;
    302    
     302
    303303/*** 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;
    306306   public static final int WM_BUTTON1UP               = 0x0072;
    307307   public static final int WM_BUTTON1DBLCLK           = 0x0073;
     
    351351//    public static final int KC_DBCSRSRVD1 =     0x4000;
    352352//    public static final int KC_DBCSRSRVD2 =     0x8000;
    353    
     353
    354354    /* Virtual key values */
    355355    public static final int VK_BUTTON1 =    0x01;
     
    443443    public static final int BDS_DISABLED            = 0x0200;
    444444    public static final int BDS_DEFAULT             = 0x0400;
    445    
     445
    446446    /* Standard WinQueryWindowUShort/ULong() indices */
    447447    public static final int QWS_USER =      0;
     
    602602//    public static final int CVR_ALIGNTOP =      0x0008;
    603603    public static final int CVR_REDRAW =        0x0010;
    604    
     604
    605605    /* Frame window styles */
    606606    public static final int FCF_TITLEBAR =          0x00000001;
     
    670670    public static final int GPI_HITS =      2;
    671671    //public static final int GPI_ALTERROR =  (-1);
    672    
     672
    673673    /* return code to indicate type of region for GpiCombineRegion and others */
    674674    public static final int RGN_ERROR =     0;
     
    725725//    public static final int CAPS_GRAPHICS_SUBSET =          28;
    726726//    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;
    728728//    public static final int CAPS_DEVICE_WINDOWING =         31;
    729729    public static final int CAPS_ADDITIONAL_GRAPHICS =      32;
     
    741741//    public static final int CAPS_IO_SUPPORTS_OP =           2;
    742742//    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;
    744744    /* Constants for CAPS_TECHNOLOGY */
    745745//    public static final int CAPS_TECH_UNKNOWN =             0;
     
    804804//    public static final int CAPS_RASTER_FONTS =             32;
    805805//    public static final int CAPS_RASTER_FLOOD_FILL =        64;
    806    
     806
    807807    /* options for GpiCreateLogColorTable and others */
    808808//    public static final int LCOL_RESET =                    0x0001;
     
    837837//    public static final int FM_NOTMASKSRC =                 16;
    838838//    public static final int FM_ONE =                        17;
    839    
     839
    840840    /* background mixes */
    841841//    public static final int BM_ERROR =                      -1;
     
    919919    public static final int SYSCLR_WINDOWTEXT =             -17;
    920920//    public static final int SYSCLR_TITLETEXT =              -16;
    921 //    public static final int SYSCLR_ACTIVEBORDER =           -15;
     921    public static final int SYSCLR_ACTIVEBORDER =           -15;
    922922//    public static final int SYSCLR_INACTIVEBORDER =         -14;
    923923//    public static final int SYSCLR_APPWORKSPACE =           -13;
     
    10421042//    public static final int PP_HILITEFOREGROUNDCOLOR        = 5;
    10431043//    public static final int PP_HILITEFOREGROUNDCOLORINDEX   = 6;
    1044 //    public static final int PP_HILITEBACKGROUNDCOLOR        = 7;
     1044    public static final int PP_HILITEBACKGROUNDCOLOR        = 7;
    10451045//    public static final int PP_HILITEBACKGROUNDCOLORINDEX   = 8;
    10461046    public static final int PP_DISABLEDFOREGROUNDCOLOR      = 9;
     
    11491149    public static final int DLGC_TABONCLICK         = 0x0200;
    11501150    public static final int DLGC_MLE                = 0x0400;
    1151    
     1151
    11521152    /* DC type for DevOpenDC */
    11531153//    public static final int OD_SCREEN               = 0;
     
    12511251//    public static final int TA_STANDARD_VERT        = 0x0600;
    12521252
    1253     public static final int FACESIZE                = 32;   
    1254 
    1255 //@@TODO (dmik): remove!   
     1253    public static final int FACESIZE                = 32;
     1254
     1255//@@TODO (dmik): remove!
    12561256    /* FACENAMEDESC options for GpiQueryFaceString */
    12571257   public static final int FWEIGHT_DONT_CARE           = 0;
     
    13751375    public static final int CHS_UNDERSCORE      = 0x0200;
    13761376//    public static final int CHS_STRIKEOUT       = 0x0400;
    1377    
     1377
    13781378    /* WinDrawText()/WinDrawTabbedText() codes */
    13791379    public static final int DT_LEFT             = 0x00000000;
     
    14151415    public static final int HINI_USERPROFILE    = -1;
    14161416//    public static final int HINI_SYSTEMPROFILE  = -2;
    1417    
     1417
    14181418    /* Message box types */
    14191419    public static final int MB_OK               = 0x0000;
     
    14601460    public static final int MBID_ENTER          = 9;
    14611461    public static final int MBID_ERROR          = 0xffff;
    1462    
     1462
    14631463   /**********************************************************************/
    14641464   /* Font Dialog Style Flags                                            */
     
    14861486   public static final int FNTF_SCREENFONTSELECTED     = 4;
    14871487   public static final int FNTF_PRINTERFONTSELECTED    = 8;
    1488    
     1488
    14891489   /**********************************************************************/
    14901490   /* Filter List message string identifiers                             */
     
    14991499   public static final int FNTI_STYLENAME          = 0x0200;
    15001500   public static final int FNTI_POINTSIZE          = 0x0400;
    1501    
     1501
    15021502   /**********************************************************************/
    15031503   /* Error Return Codes from dialog (self defining)                     */
     
    15101510   public static final int FNTS_ERR_INVALID_VERSION                 = 10;
    15111511   public static final int FNTS_ERR_DIALOG_LOAD_ERROR               = 12;
    1512    
     1512
    15131513  /* default color table indices */
    15141514
    15151515   public static final int CLR_FALSE                    = -5;
    1516    public static final int CLR_TRUE                     = -4;   
     1516   public static final int CLR_TRUE                     = -4;
    15171517   public static final int CLR_ERROR                    = -255;
    15181518   public static final int CLR_DEFAULT                  = -3;
     
    15681568//   public static final int FDS_ERR_DIALOG_LOAD_ERROR        = 12;
    15691569//   public static final int FDS_ERR_DRIVE_ERROR              = 13;
    1570    
     1570
    15711571    /* Static control styles: */
    15721572   public static final int SS_TEXT                    =0x0001;
     
    15821582   public static final int SS_SYSICON                 =0x000b;
    15831583   public static final int SS_AUTOSIZE         =0x0040;
    1584    /* Static control messages */   
     1584   /* Static control messages */
    15851585   public static final int SM_SETHANDLE               =0x0100;
    15861586   public static final int SM_QUERYHANDLE             =0x0101;
    15871587
    15881588      /*** Scroll Bar controls Subsection */
    1589    
     1589
    15901590   /* Scroll Bar styles */
    1591    
     1591
    15921592   public static final int SBS_HORZ                   =0;
    15931593   public static final int SBS_VERT                   =1;
     
    15951595   public static final int SBS_AUTOTRACK              =4;
    15961596   public static final int SBS_AUTOSIZE        =0x2000;
    1597    
    1598    
    1599    
     1597
     1598
     1599
    16001600   /* Scroll Bar messages */
    1601    
     1601
    16021602   public static final int SBM_SETSCROLLBAR          = 0x01a0;
    16031603   public static final int SBM_SETPOS                 =0x01a1;
     
    16051605   public static final int SBM_QUERYRANGE             =0x01a3;
    16061606   public static final int SBM_SETTHUMBSIZE           =0x01a6;
    1607    
     1607
    16081608   /* Scroll Bar Commands */
    1609    
     1609
    16101610   public static final int SB_LINEUP                  =1;
    16111611   public static final int SB_LINEDOWN               = 2;
     
    16191619   public static final int SB_SLIDERPOSITION          =6;
    16201620   public static final int SB_ENDSCROLL               =7;
    1621    
     1621
    16221622   /*************************************************************************
    16231623   * MLE Window styles ( in addition to WS_* )
     
    16571657   public static final int MLM_SETREADONLY            = 0x01b8;
    16581658   public static final int MLM_QUERYREADONLY          = 0x01b9;
    1659    
     1659
    16601660   /* text content manipulation and queries messages */
    16611661   public static final int MLM_QUERYCHANGED           = 0x01ba;
     
    16661666   public static final int MLM_QUERYLINELENGTH        = 0x01bf;
    16671667   public static final int MLM_QUERYTEXTLENGTH        = 0x01c0;
    1668    
     1668
    16691669   /* text import and export messages */
    16701670   public static final int MLM_FORMAT                 = 0x01c1;
     
    16761676   public static final int MLM_QUERYFORMATTEXTLENGTH  = 0x01c8;
    16771677   public static final int MLM_INSERT                 = 0x01c9;
    1678    
     1678
    16791679   /* selection messages */
    16801680   public static final int MLM_SETSEL                 = 0x01ca;
    16811681   public static final int MLM_QUERYSEL               = 0x01cb;
    16821682   public static final int MLM_QUERYSELTEXT           = 0x01cc;
    1683    
     1683
    16841684   /* undo and redo messages */
    16851685   public static final int MLM_QUERYUNDO              = 0x01cd;
    16861686   public static final int MLM_UNDO                   = 0x01ce;
    16871687   public static final int MLM_RESETUNDO              = 0x01cf;
    1688    
     1688
    16891689   /* text attributes messages */
    16901690   public static final int MLM_QUERYFONT              = 0x01d0;
     
    16941694   public static final int MLM_SETBACKCOLOR           = 0x01d4;
    16951695   public static final int MLM_QUERYBACKCOLOR         = 0x01d5;
    1696    
     1696
    16971697   /* scrolling messages */
    16981698   public static final int MLM_QUERYFIRSTCHAR         = 0x01d6;
    16991699   public static final int MLM_SETFIRSTCHAR           = 0x01d7;
    1700    
     1700
    17011701   /* clipboard messages */
    17021702   public static final int MLM_CUT                    = 0x01d8;
     
    17041704   public static final int MLM_PASTE                  = 0x01da;
    17051705   public static final int MLM_CLEAR                  = 0x01db;
    1706    
     1706
    17071707   /* display manipulation messages */
    17081708   public static final int MLM_ENABLEREFRESH          = 0x01dc;
    17091709   public static final int MLM_DISABLEREFRESH         = 0x01dd;
    1710    
     1710
    17111711   /* search message */
    17121712   public static final int MLM_SEARCH                 = 0x01de;
    17131713   public static final int MLM_QUERYIMPORTEXPORT      = 0x01df;
    1714    
     1714
    17151715   /* notification messages */
    17161716   public static final int MLN_OVERFLOW               = 0x0001;
     
    17281728   public static final int MLN_UNDOOVERFLOW           = 0x000d;
    17291729   public static final int MLN_CLPBDFAIL              = 0x000f;
    1730    
     1730
    17311731   /*************************************************************************
    17321732   * MLM_QUERYSELECTION flags
     
    17471747
    17481748   /* Entry field  styles */
    1749    
     1749
    17501750   public static final int ES_LEFT                    = 0x00000000;
    17511751   public static final int ES_CENTER                  = 0x00000001;
     
    17621762   public static final int ES_DBCS                    = 0x00002000;
    17631763   public static final int ES_MIXED                   = 0x00003000;
    1764    
     1764
    17651765   /* Entry Field  messages */
    1766    
     1766
    17671767   public static final int EM_QUERYCHANGED            = 0x0140;
    17681768   public static final int EM_QUERYSEL                = 0x0141;
     
    17781778   public static final int EM_SETREADONLY             = 0x014b;
    17791779   public static final int EM_SETINSERTMODE           = 0x014c;
    1780    
     1780
    17811781   /* Entry Field notification messages */
    1782    
     1782
    17831783   public static final int EN_SETFOCUS                = 0x0001;
    17841784   public static final int EN_KILLFOCUS               = 0x0002;
     
    17901790
    17911791     /* List box styles */
    1792    
     1792
    17931793   public static final int LS_MULTIPLESEL             = 0x00000001;
    17941794   public static final int LS_OWNERDRAW               = 0x00000002;
     
    17961796   public static final int LS_HORZSCROLL              = 0x00000008;
    17971797   public static final int LS_EXTENDEDSEL             = 0x00000010;
    1798    
     1798
    17991799   /* List box messages */
    1800    
     1800
    18011801   public static final int LM_QUERYITEMCOUNT         = 0x0160;
    18021802   public static final int LM_INSERTITEM              =0x0161;
     
    18081808   public static final int LM_QUERYITEMTEXTLENGTH     = 0x0167;
    18091809   public static final int LM_QUERYITEMTEXT           = 0x0168;
    1810    
     1810
    18111811   public static final int LM_SETITEMHANDLE           = 0x0169;
    18121812   public static final int LM_QUERYITEMHANDLE         = 0x016a;
     
    18171817   public static final int LM_INSERTMULTITEMS         = 0x016f;
    18181818   public static final int LM_SETITEMWIDTH            = 0x0660;
    1819    
    1820    
     1819
     1820
    18211821   /* List box constants */
    1822    
     1822
    18231823   public static final int LIT_CURSOR          = -4;
    18241824   public static final int LIT_ERROR                  = -3;
     
    18261826   public static final int LIT_NONE                   = -1;
    18271827   public static final int LIT_FIRST                  = -1;
    1828    
     1828
    18291829   /* For LM_INSERTITEM msg */
    1830    
     1830
    18311831   public static final int LIT_END                    = -1;
    18321832   public static final int LIT_SORTASCENDING          = -2;
    18331833   public static final int LIT_SORTDESCENDING         = -3;
    1834    
     1834
    18351835   /* For LM_SEARCHSTRING msg */
    1836    
     1836
    18371837   public static final int LSS_SUBSTRING              = 0x0001;
    18381838   public static final int LSS_PREFIX                 = 0x0002;
     
    18401840
    18411841  /* List box notification messages */
    1842    
     1842
    18431843   public static final int LN_SELECT                  =1;
    18441844   public static final int LN_SETFOCUS              =2;
     
    18461846   public static final int LN_SCROLL                  =4;
    18471847   public static final int LN_ENTER                   =5;
    1848    
     1848
    18491849   /*  combo box styles*/
    18501850   public static final int CBS_SIMPLE                 = 0x0001;
     
    18551855   public static final int CBID_LIST                   = 0x029A;
    18561856   public static final int CBID_EDIT                   = 0x029B;
    1857    
     1857
    18581858   public static final int CBM_SHOWLIST               = 0x0170;
    18591859   public static final int CBM_HILITE                 = 0x0171;
    18601860   public static final int CBM_ISLISTSHOWING          = 0x0172;
    1861    
     1861
    18621862   public static final int CBN_EFCHANGE               = 1;
    18631863   public static final int CBN_EFSCROLL              = 2;
     
    18721872   /*                                                                    */
    18731873   /**********************************************************************/
    1874    
     1874
    18751875   /**********************************************************************/
    18761876   /* Message ids                                                        */
     
    19001900   public static final int BKM_SETTABCOLOR          = 0x0374;  /* Set book tab color        */
    19011901   public static final int BKM_SETNOTEBOOKBUTTONS   = 0x0375;  /* Set common pushbuttons    */
    1902    
     1902
    19031903   public static final int BKN_PAGESELECTED         = 130;     /* New page selected by user */
    19041904   public static final int BKN_NEWPAGESIZE          = 131;     /* App page size changed     */
     
    19061906   public static final int BKN_PAGEDELETED          = 133;     /* Page deleted notification */
    19071907   public static final int BKN_PAGESELECTEDPENDING  = 134;     /* New page selected by user */
    1908    
     1908
    19091909   /**********************************************************************/
    19101910   /* Page deletion flags (usDeleteFlag)                                 */
     
    19131913   public static final int BKA_SINGLE               = 0x0002;  /* single page               */
    19141914   public static final int BKA_TAB                  = 0x0004;  /* minor/major section       */
    1915    
     1915
    19161916   /**********************************************************************/
    19171917   /* Page insertion/query order (usPageOrder, usQueryOrder)             */
     
    19221922   public static final int BKA_PREV                 = 0x0010;  /* Insert/Query before page  */
    19231923   public static final int BKA_TOP                  = 0x0020;  /* Query topmost page        */
    1924    
     1924
    19251925   /**********************************************************************/
    19261926   /* Notebook region types (usBookRegion, usType)                       */
     
    19291929   public static final int BKA_MINORTAB             = 0x0002;  /* Minor Tab                 */
    19301930   public static final int BKA_PAGEBUTTON           = 0x0100;  /* Page Turning Button       */
    1931    
     1931
    19321932   /**********************************************************************/
    19331933   /* Page insertion/query styles (usPageStyle,usQueryEnd)               */
     
    19381938   public static final int BKA_AUTOPAGESIZE         = 0x0100;  /* Page window position/size */
    19391939   public static final int BKA_END                  = 0x0200;  /* Query to end of book      */
    1940    
     1940
    19411941   /**********************************************************************/
    19421942   /* Tab window contents (usTabDisplay)                                 */
     
    19441944   public static final int BKA_TEXT                 = 0x0400;  /* text data                 */
    19451945   public static final int BKA_BITMAP               = 0x0800;  /* bitmap                    */
    1946    
     1946
    19471947   /**********************************************************************/
    19481948   /* Tabbed dialog-specific constants                                   */
     
    19501950   public static final int BKA_AUTOCOLOR            = (-1);    /* Automatically color tabs  */
    19511951   public static final int BKA_MAXBUTTONID          = 7999;    /* Max id for common buttons */
    1952    
     1952
    19531953   /**********************************************************************/
    19541954   /* Notebook window styles (ulNotebookStyles)                          */
    19551955   /**********************************************************************/
    1956    
     1956
    19571957   /**********************************************************************/
    19581958   /* Backpage Orientation                                               */
     
    19621962   public static final int BKS_BACKPAGESTR          = 0x00000004;   /* Top right             */
    19631963   public static final int BKS_BACKPAGESTL          = 0x00000008;  /* Top left              */
    1964    
     1964
    19651965   /**********************************************************************/
    19661966   /* Major Tab Side                                                     */
     
    19701970   public static final int BKS_MAJORTABTOP          = 0x00000040;  /* Major tabs top        */
    19711971   public static final int BKS_MAJORTABBOTTOM       = 0x00000080;  /* Major tabs bottom     */
    1972    
     1972
    19731973   /**********************************************************************/
    19741974   /* Tab Type                                                           */
     
    19771977   public static final int BKS_ROUNDEDTABS          = 0x00000100;  /* Round edged tabs      */
    19781978   public static final int BKS_POLYGONTABS          = 0x00000200;  /* Polygon edged tabs    */
    1979    
     1979
    19801980   /**********************************************************************/
    19811981   /* Binding type                                                       */
     
    19831983   public static final int BKS_SOLIDBIND            = 0x00000000;  /* Solid binding         */
    19841984   public static final int BKS_SPIRALBIND           = 0x00000400;  /* Spiral binding        */
    1985    
     1985
    19861986   /**********************************************************************/
    19871987   /* Status line text justification                                     */
     
    19901990   public static final int BKS_STATUSTEXTRIGHT      = 0x00001000;  /* Right justify text    */
    19911991   public static final int BKS_STATUSTEXTCENTER     = 0x00002000;  /* Center text           */
    1992    
     1992
    19931993   /**********************************************************************/
    19941994   /* Tab text justification                                             */
     
    19971997   public static final int BKS_TABTEXTRIGHT         = 0x00004000;  /* Right justify tab text*/
    19981998   public static final int BKS_TABTEXTCENTER        = 0x00008000;  /* Center tab text       */
    1999    
     1999
    20002000   /**********************************************************************/
    20012001   /* Tabbed dialog styles                                               */
     
    20032003   public static final int BKS_TABBEDDIALOG         = 0x00000800;  /* Tabbed dialog         */
    20042004   public static final int BKS_BUTTONAREA           = 0x00000200;  /* Reserve space for     */
    2005    
     2005
    20062006   /**********************************************************************/
    20072007   /* Notebook color presentation param attributes                       */
     
    20192019
    20202020      /* Menu control styles */
    2021    
     2021
    20222022   public static final int MS_ACTIONBAR               = 0x00000001;
    20232023   public static final int MS_TITLEBUTTON            =  0x00000002;
    20242024   public static final int MS_VERTICALFLIP            = 0x00000004;
    2025    
     2025
    20262026   public static final int MS_CONDITIONALCASCADE      = 0x00000040;
    2027            
     2027
    20282028   /* Menu control messages */
    2029    
     2029
    20302030   public static final int MM_INSERTITEM              = 0x0180;
    20312031   public static final int MM_DELETEITEM              = 0x0181;
     
    20482048   public static final int MM_ISITEMVALID             = 0x0193;
    20492049   public static final int MM_QUERYITEMRECT           = 0x0194;
    2050    
     2050
    20512051   public static final int MM_QUERYDEFAULTITEMID      = 0x0431;
    20522052   public static final int MM_SETDEFAULTITEMID        = 0x0432;
     
    20582058   public static final int MIT_FIRST                  = -2;
    20592059   public static final int MIT_LAST                   = -3;
    2060 //   public static final int MID_NONE                   
     2060//   public static final int MID_NONE
    20612061   public static final int MID_ERROR                  = -1;
    2062    
     2062
    20632063   /* Menu item styles & attributes */
    2064    
     2064
    20652065   public static final int MIS_TEXT                   = 0x0001;
    2066    
     2066
    20672067   public static final int MIS_BITMAP                 = 0x0002;
    20682068   public static final int MIS_SEPARATOR              = 0x0004;
    2069    
     2069
    20702070   public static final int MIS_OWNERDRAW             =  0x0008;
    2071    
     2071
    20722072   public static final int MIS_SUBMENU                = 0x0010;
    20732073   public static final int MIS_MULTMENU               = 0x0020;      /* multiple choice submenu     */
     
    20822082   ** radiobutton.  Absence of this style defaults the item to a checkbox.       */
    20832083   public static final int MIS_SINGLE                 = 0x2000;
    2084    
     2084
    20852085   public static final int MIA_NODISMISS              = 0x0020;
    20862086   public static final int MIA_FRAMED                 = 0x1000;
     
    20902090
    20912091   public static final int PU_POSITIONONITEM          = 0x0001; /* Need idItem parameter */
    2092    
     2092
    20932093   public static final int PU_HCONSTRAIN              = 0x0002; /* Keep menu on left and right edge */
    20942094   public static final int PU_VCONSTRAIN              = 0x0004; /* Keep menu on top and bottom edge */
    2095    
     2095
    20962096   public static final int PU_NONE                    = 0x0000; /* If invoked by keyboard */
    20972097   public static final int PU_MOUSEBUTTON1DOWN        = 0x0008; /* If invoked by button 1 */
    20982098   public static final int PU_MOUSEBUTTON2DOWN        = 0x0010; /* If invoked by button 2 */
    20992099   public static final int PU_MOUSEBUTTON3DOWN        = 0x0018; /* If invoked by button 3 */
    2100    
     2100
    21012101   public static final int PU_SELECTITEM              = 0x0020; /* Set selected item (use with kbd) */
    2102    
     2102
    21032103   public static final int PU_MOUSEBUTTON1            = 0x0040; /* If button1 use allowed */
    21042104   public static final int PU_MOUSEBUTTON2            = 0x0080; /* If button2 use allowed */
     
    21162116  public static final int AF_SYSCOMMAND              = 0x0100;
    21172117  public static final int AF_HELP                    = 0x0200;
    2118  
     2118
    21192119/* Standard WM_SYSCOMMAND command values */
    21202120  public static final int SC_SIZE                    = 0x8000;
     
    21532153   /*                                                                    */
    21542154   /**********************************************************************/
    2155    
     2155
    21562156   /**********************************************************************/
    21572157   /* Define messages for the slider control                             */
     
    21952195   public static final int SLS_PRIMARYSCALE1    = 0x00000000; /* Scale 1 is primary scale  */
    21962196   public static final int SLS_PRIMARYSCALE2    = 0x00000400; /* Scale 2 is primary scale  */
    2197    
     2197
    21982198   /**********************************************************************/
    21992199   /* Message attributes for setting and querying slider components      */
     
    22082208   public static final int SMA_INCREMENTVALUE       = 0x0001;
    22092209   public static final int SMA_SETALLTICKS          = 0xFFFF;
    2210    
     2210
    22112211   /**********************************************************************/
    22122212   /* Ownerdraw flag definitions                                         */
     
    22162216   public static final int SDA_BACKGROUND           = 0x0003;
    22172217   public static final int SDA_SLIDERARM            = 0x0004;
    2218    
     2218
    22192219   /*** 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 */
     2233public static final int  RT_PNG     = 400;
     2234
     2235// Resource IDs of dialog frames
     2236public static final int ID_DLG_FRAME                    = 5000;
     2237public static final int ID_DLG_FRAME_NOMINBUTTON        = 5050;
     2238public static final int ID_DLG_NOFRAME                  = 5100;
     2239
     2240// Default IDs of the dialog controls
     2241public static final int ID_CAPTION_1            = 5201; // Caption 1
     2242public static final int ID_CAPTION_2           =  5202; // Caption 2
     2243public static final int ID_CAPTION_3            = 5203; // Caption 3
     2244public static final int ID_PROGRESS_BAR         = 5500; // Progress bar
     2245public static final int ID_PROGRESS_ICON        = 5501; // Progress icon
     2246
     2247public static final int ID_BUTTON_1                 = 3;
     2248public static final int ID_BUTTON_2                 = 4;
     2249public static final int ID_BUTTON_3                 = 5;
     2250public static final int ID_BUTTON_HELP              = 6;
     2251
     2252/* Constant to leave attributes unchanged. Used with prgSetuAttributes() call */
     2253public 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 */
     2259public static final int CAPTION_SET_TITLE                       = 0; // Progress dialog's title
     2260public static final int CAPTION_SET_DIALOG                      = 0; // Progress dialog
     2261public static final int CAPTION_SET_1                           = 1; // First (topmost) caption - top aligned
     2262public static final int CAPTION_SET_2                           = 2; // Second caption          - center aligned
     2263public static final int CAPTION_SET_3                           = 3; // Third caption           - bottom aligned
     2264public static final int CAPTION_SET_BUTTON                      = 4; // Cancel button
     2265public static final int CAPTION_SET_PROGRESS_BAR                = 5; // Progress Bar
     2266public static final int CAPTION_SET_PROGRESS_ICON               = 6; // Progress Icon
     2267public static final int CAPTION_SET_BUT_1                       = 7; // Ok button
     2268public static final int CAPTION_SET_BUT_2                       = 8; // Retry button
     2269public static final int CAPTION_SET_BUT_3                       = 4; // Cancel button
     2270public static final int CAPTION_SET_BUT_HELP                    = 9; // Ignore button
     2271
     2272/* Progress dialog creation flags
     2273 * Used with prgShowDlg() call
     2274 */
     2275public 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.
     2276public 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).
     2277public static final int PRS_ICON                = 0x0008;  // Progress icon exists
     2278public 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.
     2279public static final int PRS_BAR         = 0x0020;  // Progress bar exists.
     2280public 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.
     2281public 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.
     2284public static final int PRS_BUT_2      = 0x0100;   // 1st button present
     2285public static final int PRS_BUT_3      = 0x0200;   // 1st button present
     2286public static final int PRS_BUT_HELP   = 0x0400;   // Help button present
     2287public static final int PRS_DISMISS    = 0x1000;   // Dismiss dialog on a button click
     2288public static final int PRS_OWNLANGE   = 0x2000;   // Use own LANGE handle
     2289
     2290public static final int PRL_DISMISS     = 0x00000001;  // Dismiss dialog on a button click
     2291
     2292
     2293public static final int MB_BIGICON              = 0x00010000;      // "Big icon" flag
     2294public static final int MB_ANIMATED     = 0x00020000;  // "Animated" flag
     2295public static final int MB_COMMENT      = 0x00040000;  // "Comment" flag
     2296public static final int MB_OWNCAPTIONS  = 0x00080000;  // "Own captions" flag
     2297public static final int MB_OWNLANGE             = 0x00100000;  // "Own LANGE" flag
     2298public static final int MB_MINBUTTON    = 0x00200000;  // "Own LANGE" flag
     2299public static final int MB_NODEFBUTTON  = 0x00000300;      // No default button
     2300
     2301public static final int ID_ANIMATION    = 0xA1F2;  // Animation timer ID
     2302
     2303/* IDs of the button captions */
     2304public static final int LID_OK          = 0;
     2305public static final int LID_CANCEL      = 1;
     2306public static final int LID_YES         = 2;
     2307public static final int LID_NO          = 3;
     2308public static final int LID_ENTER       = 4;
     2309public static final int LID_ABORT       = 5;
     2310public static final int LID_RETRY       = 6;
     2311public static final int LID_IGNORE      = 7;
     2312public 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 */
     2318public static final int ID_PROGRESS_PNG_ICON_PERCENT    = 2000; // An image sequence, used to display icon with percentage. Minimum 2 images, maximum 101 image.
     2319public static final int ID_PROGRESS_PNG_ICON                    = 2100; // An image sequence used to display animated icon looop.
     2320public static final int ID_PROGRESS_PNG_ICON_STATIC     = 2111; // An image used to display one static icon.
     2321public static final int ID_PROGRESS_PNG_BAR             = 2500; // A pair of images, used to display graphical progress bar.
     2322
     2323public static final int IDP_ICON_ERROR_32               = 3000; // "Error" - "X" icon 32x32
     2324public static final int IDP_ICON_ERROR_40               = 3020; // "Error" - "X" icon 40x40
     2325public static final int IDP_ICON_ERROR_64               = 3040; // "Error" - "X" icon 64x64
     2326public static final int IDP_ICON_ERROR_80               = 3060; // "Error" - "X" icon 80x80
     2327
     2328public static final int IDP_ICON_INFO_32                = 3100; // "Information" - "i" icon 32x32
     2329public static final int IDP_ICON_INFO_40                = 3120; // "Information" - "i" icon 40x40
     2330public static final int IDP_ICON_INFO_64                = 3140; // "Information" - "i" icon 64x64
     2331public static final int IDP_ICON_INFO_80                = 3160; // "Information" - "i" icon 80x80
     2332
     2333public static final int IDP_ICON_QUERY_32               = 3200; // "Query" - "?" icon 32x32
     2334public static final int IDP_ICON_QUERY_40               = 3220; // "Query" - "?" icon 40x40
     2335public static final int IDP_ICON_QUERY_64               = 3240; // "Query" - "?" icon 64x64
     2336public static final int IDP_ICON_QUERY_80               = 3260; // "Query" - "?" icon 80x80
     2337
     2338public static final int IDP_ICON_WARNING_32             = 3300; // "Warning" - "!" icon 32x32
     2339public static final int IDP_ICON_WARNING_40             = 3320; // "Warning" - "!" icon 40x40
     2340public static final int IDP_ICON_WARNING_64             = 3340; // "Warning" - "!" icon 64x64
     2341public static final int IDP_ICON_WARNING_80             = 3360; // "Warning" - "!" icon 80x80
     2342
    22242343
    22252344   public static final int SPTR_ARROW                  = 1;
     
    24152534/* PM macros */
    24162535
    2417 public static final short SHORT1FROMMP (int mp) { return (short)mp; }   
     2536public static final short SHORT1FROMMP (int mp) { return (short)mp; }
    24182537public static final short SHORT2FROMMP (int mp) { return (short)(((mp & 0xFFFF0000)>>16) & 0xFFFF); }
    24192538//((pixels & 0xFFFF0000)>>16) & 0xFFFF
     
    24362555
    24372556/* Native<->Java Object copiers */
    2438    
    2439 public static final native void objcpy (int to, int[] from);   
     2557
     2558public static final native void objcpy (int to, int[] from);
    24402559public static final native void objcpy (int[] to, int from);
    24412560
     
    24462565public static final native void objcpy (TIB to, int from);
    24472566
    2448 public static final native void objcpy (int to, PIB from);   
     2567public static final native void objcpy (int to, PIB from);
    24492568public static final native void objcpy (PIB to, int from);
    24502569
    2451 public static final native void objcpy (int to, RECTL from);   
     2570public static final native void objcpy (int to, RECTL from);
    24522571public static final native void objcpy (RECTL to, int from);
    24532572
    2454 public static final native void objcpy (int to, SWP from);   
     2573public static final native void objcpy (int to, SWP from);
    24552574public static final native void objcpy (SWP to, int from);
    24562575
    2457 public static final native void objcpy (int to, OWNERITEM from);   
     2576public static final native void objcpy (int to, OWNERITEM from);
    24582577public static final native void objcpy (OWNERITEM to, int from);
    24592578
     
    25282647public static final native boolean WinMapWindowPoints (int hwndFrom, int hwndTo,
    25292648       int [] prgptl, int cwpt);
    2530        
     2649
    25312650public static final native boolean WinQueryWindowPos (int hwnd, SWP pswp);
    25322651public static final native boolean WinSetWindowPos (int hwnd, int hwndInsertBehind,
     
    25652684public static final native int WinBeginPaint (int hwnd, int hps, RECTL prclPaint);
    25662685public static final native boolean WinEndPaint (int hps);
    2567 public static final native boolean WinInvalidateRect (int hwnd, RECTL pwrc, 
     2686public static final native boolean WinInvalidateRect (int hwnd, RECTL pwrc,
    25682687    boolean fIncludeChildren);
    25692688public static final native boolean WinUpdateWindow (int hwnd);
     
    25862705public static final native int WinGetSysBitmap (int hwndDesktop, int ibm);
    25872706
    2588 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 
     2707public static final native boolean WinSetPresParam (int hwnd, int idAttrType,
    25892708    int cbAttrValueLen, int[] pAttrValue);
    2590 public static final native boolean WinSetPresParam (int hwnd, int idAttrType, 
     2709public static final native boolean WinSetPresParam (int hwnd, int idAttrType,
    25912710    int cbAttrValueLen, byte[] pAttrValue);
    25922711public static final native int WinQueryPresParam (int hwnd, int idAttrType1,
     
    26032722
    26042723public static final native int WinDrawText (int hps, int cchText,
    2605 //@@TODO (dmik): Unicode     
     2724//@@TODO (dmik): Unicode
    26062725//    char[] lpchText, RECTL prcl, int clrFore, int clrBack, int flCmd);
    26072726    byte[] lpchText, RECTL prcl, int clrFore, int clrBack, int flCmd);
    2608    
     2727
    26092728public static final native int WinGetKeyState (int hwndDesktop, int vkey);
    2610    
     2729
    26112730public static final native int WinMessageBox (int hwndParent, int hwndOwner,
    26122731    PSZ pszMessage, PSZ pszTitle, int ulWinId, int flStyle);
     
    26492768public static final native int PrfQueryProfileString (int hini, PSZ pszApp,
    26502769    PSZ pszKey, PSZ pszDefault, byte[] pBuffer, int ulBufferMax);
    2651    
     2770
    26522771// PM helpers
    26532772
     
    27382857public static final native boolean GpiSetAttrs (int hps, int lPrimType,
    27392858    int flAttrMask, int flDefMask, int[] ppbunAttrs);
    2740        
     2859
    27412860public static final native boolean GpiQueryDefaultViewMatrix (int hps, int lCount,
    27422861    int[] pmatlfArray);
     
    27632882public static final native boolean GpiSetTextAlignment (int hps, int lHoriz, int lVert);
    27642883public static final native int GpiCharStringAt (int hps, int[] pptlPoint, int lCount,
    2765 //@@TODO (dmik): Unicode     
     2884//@@TODO (dmik): Unicode
    27662885//    char[] pchString);
    27672886    byte[] pchString);
    27682887public static final native boolean GpiQueryTextBox (int hps, int lCount1,
    2769 //@@TODO (dmik): Unicode     
     2888//@@TODO (dmik): Unicode
    27702889//    char[] pchString, int lCount2, int[] aptlPoints);
    27712890    byte[] pchString, int lCount2, int[] aptlPoints);
     
    27772896    FATTRS pfatAttrs);
    27782897public static final native boolean GpiSetCharSet (int hps, int llcid);
    2779 public static final native boolean GpiSetCharBox (int hps, int[] psizfxBox);               
     2898public static final native boolean GpiSetCharBox (int hps, int[] psizfxBox);
    27802899public static final native boolean GpiQueryFontMetrics (int hps, int lMetricsLength, FONTMETRICS pfmMetrics);
     2900
     2901// Extended Controls eCo Toolkit
     2902public 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);
     2903public static final native boolean PrgSetupAttributes(int hwndDlg, int  ulControlIndex, int[] pulForegroundColor, int[] pulBackgroundColor, PSZ pszFontNameSize, boolean flUpdate);
     2904public static final native int PrgSetPercentage(int hwndProgress, short usPercent);
     2905//public static final native boolean PrgSetupCaption(int hwndDlg, int  ulControlIndex, PSZ pszText, boolean flUpdate);
    27812906}
    27822907
Note: See TracChangeset for help on using the changeset viewer.