EnglishРусский  

   ..

   addustr.g

   app.g

   btn.g

   btnpic.g

   comp.g

   ctrl.g

   dialogs.g

   edit.g

   events.g

   fonts.g

   form.g

   gray.g

   grey.g

   images.g

   label.g

   labeled.g

   locustr.g

   menu.g

   panel.g

   picture.g

   s.txt

   styles.g

   tab.g

   tabitem.g

   tabpage.g

   toolbar.g

   tray.g

   url.g

   vis.g

   viswin.g

Ads

Perfect Automation tool
All-In-One: Script editor, Launcher, Scheduler, Keyboard & Mouse Recorder. Try now!

CreateInstall
Freeware and commercial installers.

Cell Phone Batteries
Batteries Plus offers batteries for laptop, camcorder, cell phone, camera.

Gentee needs your help!
How to advertise with us
 
laptop battery

source\lib\vis\viswin.g
   1 
   2 type WNDCLASSEX { 
   3    uint    cbSize 
   4    uint    style 
   5    uint    lpfnWndProc 
   6    int     cbClsExtra 
   7    int     cbWndExtra 
   8    uint    hInstance 
   9    uint    hIcon 
  10    uint    hCursor 
  11    uint    hbrBackground 
  12    uint    lpszMenuName 
  13    uint    lpszClassName 
  14    uint    hIconSm 
  15 } 
  16 
  17 type POINT {
  18    int  x 
  19    int  y
  20 }
  21 
  22 type MSG {    
  23    uint  hwnd     
  24    uint  msg//message 
  25    uint  wpar//wParam 
  26    uint  lpar//lParam 
  27 //   uint  time 
  28 //   POINT pt 
  29 } 
  30 
  31 type RECT { 
  32   int  left
  33   int  top
  34   int  right
  35   int  bottom
  36 }
  37 
  38 type WINDOWPOS {   
  39     uint hwnd                     
  40     uint hwndInsertAfter          
  41     int  x                        
  42     int  y                        
  43     int  cx                       
  44     int  cy                       
  45     uint flags                    
  46 } 
  47 
  48 
  49 type PAINTSTRUCT {
  50    uint        hdc
  51    uint        fErase
  52    RECT        rcPaint
  53    uint        fRestore
  54    uint        fIncUpdate
  55    reserved    rgbReserved[32]
  56 }
  57 
  58 type DRAWITEMSTRUCT {
  59     uint        CtlType
  60     uint        CtlID
  61     uint        itemID
  62     uint        itemAction
  63     uint        itemState
  64     uint        hwndItem
  65     uint        hDC
  66     RECT        rcItem
  67     uint        itemData
  68 } 
  69 
  70 type MEASUREITEMSTRUCT {
  71     uint CtlType
  72     uint CtlID
  73     uint itemID
  74     uint itemWidth
  75     uint itemHeight
  76     uint itemData
  77 } 
  78 
  79 type NMHDR 
  80 { 
  81    uint   hwndFrom
  82    uint   idFrom 
  83    uint   code 
  84 }
  85 
  86 type SCROLLINFO { 
  87     uint cbSize 
  88     uint fMask 
  89     int  nMin 
  90     int  nMax 
  91     uint nPage 
  92     int  nPos 
  93     int  nTrackPos 
  94 } 
  95 
  96 type MENUITEMINFO {
  97     uint    cbSize 
  98     uint    fMask 
  99     uint    fType 
 100     uint    fState 
 101     uint    wID 
 102     uint    hSubMenu 
 103     uint    hbmpChecked 
 104     uint    hbmpUnchecked 
 105     uint    dwItemData 
 106     uint    dwTypeData 
 107     uint    cch 
 108     uint    hbmpItem
 109 }
 110 
 111 type TCITEM {
 112    uint mask
 113    uint dwState
 114    uint dwStateMask
 115    uint pszText
 116    int  cchTextMax
 117    int  iImage
 118    uint lParam
 119 } 
 120 
 121 type ACCEL {
 122    byte   fVirt 
 123    ushort key 
 124    ushort cmd
 125 }
 126 //ACCEL.fVirt
 127 define {
 128 FVIRTKEY  = 0x01
 129 FNOINVERT = 0x02
 130 FSHIFT    = 0x04
 131 FCONTROL  = 0x08
 132 FALT      = 0x10
 133 }
 134 
 135 type STYLESTRUCT {  
 136     uint styleOld 
 137     uint styleNew 
 138 }
 139 
 140 type TEXTMETRIC
 141 {
 142     uint        tmHeight
 143     uint        tmAscent
 144     uint        tmDescent
 145     uint        tmInternalLeading
 146     uint        tmExternalLeading
 147     uint        tmAveCharWidth
 148     uint        tmMaxCharWidth
 149     uint        tmWeight
 150     uint        tmOverhang
 151     uint        tmDigitizedAspectX
 152     uint        tmDigitizedAspectY
 153     ushort      tmFirstChar
 154     ushort      tmLastChar
 155     ushort      tmDefaultChar
 156     ushort      tmBreakChar
 157     ubyte       tmItalic
 158     ubyte       tmUnderlined
 159     ubyte       tmStruckOut
 160     ubyte       tmPitchAndFamily
 161     ubyte       tmCharSet
 162 }
 163 
 164 
 165 type LOGFONT {  
 166    int lfHeight 
 167    int lfWidth 
 168    int lfEscapement 
 169    int lfOrientation 
 170    int lfWeight 
 171    byte lfItalic 
 172    byte lfUnderline 
 173    byte lfStrikeOut 
 174    byte lfCharSet 
 175    byte lfOutPrecision 
 176    byte lfClipPrecision 
 177    byte lfQuality 
 178    byte lfPitchAndFamily 
 179    reserved lfFaceName[64] 
 180 }
 181 
 182 type LOGBRUSH {
 183    uint lbStyle 
 184    uint lbColor 
 185    uint lbHatch
 186 }
 187 
 188 type SIZE {  
 189     int cx 
 190     int cy 
 191 }  
 192 
 193 type WINDOWPLACEMENT {     
 194     uint  length
 195     uint  flags
 196     uint  showCmd
 197     POINT ptMinPosition
 198     POINT ptMaxPosition
 199     RECT  rcNormalPosition
 200 } 
 201 
 202 type ICONINFO {  
 203    uint   fIcon 
 204    uint   xHotspot 
 205    uint   yHotspot 
 206    uint   hbmMask 
 207    uint   hbmColor 
 208 }
 209 
 210 type BITMAP
 211 {
 212     uint        bmType
 213     uint        bmWidth
 214     uint        bmHeight
 215     uint        bmWidthBytes
 216     ushort      bmPlanes
 217     ushort      bmBitsPixel
 218     uint        bmBits
 219 }
 220 
 221 
 222 type TRACKMOUSEEVENT {
 223     uint cbSize
 224     uint dwFlags
 225     uint hwndTrack
 226     uint dwHoverTime
 227 } 
 228 
 229 define {
 230 SRCCOPY             =0x00CC0020
 231 SRCPAINT            =0x00EE0086
 232 SRCAND              =0x008800C6
 233 SRCINVERT           =0x00660046
 234 SRCERASE            =0x00440328
 235 NOTSRCCOPY          =0x00330008
 236 NOTSRCERASE         =0x001100A6
 237 MERGECOPY           =0x00C000CA
 238 MERGEPAINT          =0x00BB0226
 239 PATCOPY             =0x00F00021
 240 PATPAINT            =0x00FB0A09
 241 PATINVERT           =0x005A0049
 242 DSTINVERT           =0x00550009
 243 BLACKNESS           =0x00000042
 244 WHITENESS           =0x00FF0062
 245 
 246 
 247 
 248 }
 249 
 250 import "gdi32"
 251 {
 252    uint CreateBitmap( int, int, uint, uint, uint )
 253    uint CreateBrushIndirect( LOGBRUSH )
 254    uint CreateCompatibleBitmap( uint, uint, uint )
 255    uint CreateCompatibleDC( uint )
 256    uint CreateFontIndirectW( LOGFONT ) -> CreateFontIndirect
 257    uint CreatePatternBrush( uint )
 258    uint CreatePen( uint, uint, uint )
 259    uint CreateSolidBrush( uint )
 260    uint DeleteDC( uint )
 261    uint DeleteObject( uint )
 262    uint ExtTextOutW( uint, int, int, uint, RECT, uint, uint, uint ) -> ExtTextOut
 263    uint FillRgn( uint, uint, uint )
 264    //uint GetBitmapDimensionEx( uint, SIZE )
 265    int  GetClipRgn( uint, uint )   
 266    uint GetBrushOrgEx( uint, POINT )
 267    uint GetCurrentObject( uint, uint )
 268    int  GetDeviceCaps( uint, int )
 269    uint GetObjectW( uint, uint, uint ) -> GetObject
 270    uint GetPixel( uint, uint, uint )
 271    uint GetStockObject( uint )
 272    uint GetTextExtentPoint32W( uint, uint, uint, SIZE ) -> GetTextExtentPoint32
 273    uint GetTextMetricsW( uint, TEXTMETRIC ) -> GetTextMetrics
 274    uint LineTo( uint, int, int )
 275    uint MoveToEx( uint, int, int, POINT )
 276    uint PatBlt( uint, int, int, int, int, uint )
 277    uint RemoveFontResourceW( uint ) -> RemoveFontResource
 278    //uint ReleaseDC( uint, uint )
 279    uint SelectObject( uint, uint )   
 280    uint SetBkMode( uint, uint )
 281    uint SetBkColor( uint, uint )
 282    uint SetBrushOrgEx( uint, int, int, POINT )
 283    uint SetTextColor( uint, uint )
 284    uint SetROP2( uint, uint )
 285    uint StretchBlt( uint, uint, uint, uint, uint, uint, uint, uint, uint, uint, uint )
 286    uint TextOutW( uint, uint, uint, uint, uint ) -> TextOut
 287    uint BitBlt( uint, uint, uint, uint, uint, uint, uint, uint, uint )
 288    uint CreateRectRgn( uint, uint, uint, uint )
 289    int CombineRgn( uint, uint, uint, uint )
 290    uint SetRectRgn( uint, int, int, int, int )
 291    int SelectClipRgn( uint, uint )   
 292    uint GetTextMetricsW( uint, TEXTMETRIC) -> GetTextMetrics
 293 }
 294 define
 295 {
 296    HWND_TOP        = 0
 297    HWND_BOTTOM     = 1
 298    HWND_TOPMOST    = -1
 299    HWND_NOTOPMOST  = -2
 300 
 301    DCX_WINDOW           = 0x00000001
 302    DCX_CACHE            = 0x00000002
 303    DCX_NORESETATTRS     = 0x00000004
 304    DCX_CLIPCHILDREN     = 0x00000008
 305    DCX_CLIPSIBLINGS     = 0x00000010
 306    DCX_PARENTCLIP       = 0x00000020
 307    
 308    DCX_EXCLUDERGN       = 0x00000040
 309    DCX_INTERSECTRGN     = 0x00000080
 310    
 311    DCX_EXCLUDEUPDATE    = 0x00000100
 312    DCX_INTERSECTUPDATE  = 0x00000200
 313    
 314    DCX_LOCKWINDOWUPDATE = 0x00000400
 315    
 316    DCX_VALIDATE         = 0x00200000
 317 
 318 }
 319 import "user32"
 320 {
 321    uint BeginPaint( uint, PAINTSTRUCT )
 322    uint BringWindowToTop( uint )
 323    uint CallWindowProcW( uint, uint, uint, uint, uint ) -> CallWindowProc
 324    uint CheckDlgButton( uint, uint, uint )
 325    uint CheckMenuItem( uint, uint, uint )
 326    uint CheckMenuRadioItem( uint, uint, uint, uint, uint )
 327    uint ClientToScreen( uint, POINT )
 328    uint CreateAcceleratorTableW( uint, uint ) -> CreateAcceleratorTable
 329    uint CreateIconIndirect( ICONINFO )      
 330    uint CreateMenu()
 331    uint CreatePopupMenu()
 332    uint CreateWindowExW( uint, uint, uint, uint, uint, uint, uint, 
 333        uint, uint, uint, uint, uint ) -> CreateWindowEx
 334    uint DefWindowProcW( uint, uint, uint, uint ) -> DefWindowProc   
 335    uint DestroyAcceleratorTable( uint )
 336    uint DestroyIcon( uint )
 337    uint DestroyMenu( uint )
 338    uint DestroyWindow( uint )
 339    uint DispatchMessageW( uint ) -> DispatchMessage
 340    uint DrawFocusRect( uint, RECT )
 341    uint DrawFrameControl( uint, RECT, uint, uint )
 342    uint DrawIcon( uint, int, int, uint )
 343    uint DrawIconEx( uint, int, int, uint, int, int, uint, uint, uint )
 344    uint DrawMenuBar( uint )   
 345    uint DrawTextW( uint, uint, int, RECT, uint ) -> DrawText
 346    uint EnumThreadWindows( uint, uint, uint )
 347    uint EnableMenuItem( uint, uint, uint )
 348    uint EnableWindow( uint, uint )
 349    uint EndDialog( uint, uint )
 350    uint EndPaint( uint, PAINTSTRUCT )
 351    uint FillRect( uint, RECT, uint )   
 352    uint FindWindowExW( uint, uint, uint, uint ) -> FindWindowEx
 353    uint FrameRect( uint, RECT, uint )
 354    uint GetActiveWindow()
 355    uint GetClassInfoExW( uint, uint, WNDCLASSEX ) -> GetClassInfo
 356    uint GetClassNameW( uint, uint, uint ) -> GetClassName
 357    uint GetClientRect( uint, RECT )
 358    uint GetCursorPos( POINT )
 359    uint GetIconInfo( uint, ICONINFO )
 360    uint GetDC( uint )
 361    uint GetDCEx( uint, uint, uint )
 362    uint GetDlgItem( uint, uint )
 363    uint GetDlgItemTextW( uint, uint, uint, uint ) -> GetDlgItemText
 364    uint GetFocus( )
 365    uint GetKeyState( uint )
 366    uint GetMenuItemCount( uint )   
 367    uint GetMenuItemID( uint, uint )
 368    uint GetMenuItemInfoW(  uint, uint, uint, 
 369                            MENUITEMINFO ) -> GetMenuItemInfo
 370    uint GetMenuItemRect( uint, uint, uint, RECT )
 371    uint GetMenuDefaultItem( uint, uint, uint )
 372    //uint GetMenuPosFromID( uint, uint )
 373    uint GetMenuState(uint, uint, uint )
 374    uint GetMessageW( uint, uint, uint, uint ) -> GetMessage
 375    uint GetParent( uint )
 376    uint GetScrollInfo( uint, uint, SCROLLINFO ) 
 377    uint GetSysColor( uint )
 378    uint GetSysColorBrush( uint )
 379    uint GetSystemMetrics( uint )
 380    uint GetTopWindow( uint )
 381    uint GetWindow( uint, uint )   
 382    uint GetWindowDC( uint )
 383    uint GetWindowuintW( uint, uint ) -> GetWindowuint
 384    uint GetWindowLongW( uint, uint ) -> GetWindowLong
 385    uint GetWindowPlacement( uint, WINDOWPLACEMENT )
 386    uint GetWindowRect( uint, RECT )
 387    int  GetWindowRgn( uint, uint )
 388    uint GetWindowTextW( uint, uint, uint ) -> GetWindowText
 389    uint GetWindowTextLengthW( uint ) -> GetWindowTextLength        
 390    uint InsertMenuItemW( uint, uint, uint, MENUITEMINFO ) -> InsertMenuItem
 391    uint InvalidateRect( uint, RECT, uint )
 392    uint InvalidateRgn( uint, uint, uint )
 393    uint IsDlgButtonChecked( uint, uint )
 394    uint IsIconic( uint )
 395    uint IsWindow( uint )
 396    uint IsWindowEnabled( uint )
 397    uint IsWindowVisible( uint )
 398    uint IsZoomed( uint )    
 399    uint LoadBitmapW( uint, uint ) -> LoadBitmap
 400    uint LoadCursorW( uint, uint ) -> LoadCursor
 401    uint LoadIconW( uint, uint ) -> LoadIcon
 402    uint LoadImageW( uint, uint, uint, uint, uint, uint ) -> LoadImage
 403    int  MenuItemFromPoint( uint, uint, int, int )
 404    uint MessageBoxW( uint, uint, uint, uint ) -> MessageBox
 405    uint ModifyMenuW( uint, uint, uint, uint, uint ) -> ModifyMenu
 406    uint MoveWindow( uint, int, int, int, int, uint )
 407    uint PostMessageW( uint, uint, uint, uint ) -> PostMessage
 408         PostQuitMessage( uint )
 409    uint PtInRect( RECT, uint, uint )
 410    uint RegisterClassExW( uint ) -> RegisterClassEx
 411    uint ReleaseCapture()
 412    uint ReleaseDC( uint, uint )
 413    uint RemoveMenu( uint, uint, uint )
 414    uint ScreenToClient( uint, POINT )
 415    uint SendDlgItemMessageW( uint, uint, uint, uint, uint ) -> SendDlgItemMessage
 416    uint SendMessageW( uint, uint, uint, uint ) -> SendMessage
 417    uint SendNotifyMessageW( uint, uint, uint, uint ) -> SendNotifyMessage
 418    uint SetActiveWindow( uint )
 419    uint SetClassuintW( uint, int, uint ) -> SetClassuint
 420    uint SetCapture( uint )
 421    uint SetCursor( uint )
 422    uint SetDlgItemTextw( uint, uint, uint ) -> SetDlgItemText
 423    uint SetFocus( uint )
 424    uint SetForegroundWindow( uint )
 425    uint SetMenu( uint, uint )
 426    uint SetMenuItemInfoW( uint, uint, uint, MENUITEMINFO ) -> SetMenuItemInfo
 427    uint SetParent( uint, uint )
 428    int  SetScrollInfo( uint, uint, SCROLLINFO, uint )
 429    //int SetScrollPos( uint, int, int, uint )
 430    uint SetScrollRange( uint, int, int, int, uint )
 431    uint SetWindowuintW( uint, int, uint ) -> SetWindowuint
 432    uint SetWindowLongW( uint, uint, uint ) -> SetWindowLong
 433    uint SetWindowPos( uint, uint, int, int, int, int, uint )
 434    uint SetWindowTextW( uint, uint ) -> SetWindowText
 435    uint ShowScrollBar( uint, int, uint )
 436    uint ShowWindow( uint, uint )      
 437    uint TrackMouseEvent( TRACKMOUSEEVENT )
 438    uint TrackPopupMenuEx( uint, uint, int, int, uint, uint )   
 439    uint TranslateAcceleratorW( uint, uint, uint ) -> TranslateAccelerator
 440    uint TranslateMessage( uint )
 441    uint UpdateWindow( uint )
 442 	uint SetScrollPos( uint, uint, uint, uint )
 443 	uint ScrollWindowEx( uint, uint, uint, uint, uint, uint, uint, uint )
 444 	uint GetClientRect( uint, uint )   
 445    uint ChildWindowFromPointEx( uint, int, int, uint )
 446    uint WindowFromPoint( int, int )   
 447    uint GetDesktopWindow() 
 448    uint ClipCursor( RECT )       
 449    int  SetWindowRgn( uint, uint, uint )      
 450    uint RedrawWindow( uint, RECT, uint, uint )
 451    uint ReleaseCapture()
 452    uint DrawEdge( uint, RECT, uint, uint )
 453 }
 454 
 455 type INITCOMMONCONTROLSEX {
 456     uint dwSize
 457     uint dwICC
 458 } 
 459 
 460 import "comctl32" {
 461    uint ImageList_Create( uint, uint, uint, uint, uint )
 462    uint ImageList_Destroy( uint )
 463    uint ImageList_Duplicate( uint )
 464    uint ImageList_GetIcon( uint, int, uint )
 465    uint ImageList_GetIconSize( uint, uint, uint )
 466    int  ImageList_ReplaceIcon( uint, int, uint )
 467 
 468         InitCommonControls()
 469    uint InitCommonControlsEx( INITCOMMONCONTROLSEX )
 470 }
 471 
 472 /*import "shell32"
 473 {
 474 uint ExtractIconW( uint, uint, uint ) -> ExtractIcon
 475 }*/
 476 
 477 import "kernel32"
 478 {
 479    Sleep( uint )
 480    FreeConsole()
 481    AllocConsole()
 482    uint GetCurrentThreadId()
 483 }
 484 define {
 485 
 486 GWL_WNDPROC      = -4
 487 GWL_HINSTANCE    = -6
 488 GWL_HWNDPARENT   = -8
 489 GWL_STYLE        = -16
 490 GWL_EXSTYLE      = -20
 491 GWL_USERDATA     = -21
 492 GWL_ID           = -12
 493 
 494    
 495 SW_HIDE            = 0
 496 SW_SHOWNORMAL      = 1
 497 SW_NORMAL          = 1
 498 SW_SHOWMINIMIZED   = 2
 499 SW_SHOWMAXIMIZED   = 3
 500 SW_MAXIMIZE        = 3
 501 SW_SHOWNOACTIVATE  = 4
 502 SW_SHOW            = 5
 503 SW_MINIMIZE        = 6
 504 SW_SHOWMINNOACTIVE = 7
 505 SW_SHOWNA          = 8
 506 SW_RESTORE         = 9
 507 SW_SHOWDEFAULT     = 10
 508 SW_MAX             = 10
 509 
 510 SIZE_RESTORED      = 0
 511 SIZE_MINIMIZED     = 1
 512 SIZE_MAXIMIZED     = 2
 513 SIZE_MAXSHOW       = 3
 514 SIZE_MAXHIDE       = 4
 515 
 516 SWP_NOSIZE         = 0x0001
 517 SWP_NOMOVE         = 0x0002
 518 SWP_NOZORDER       = 0x0004
 519 SWP_NOREDRAW       = 0x0008
 520 SWP_NOACTIVATE     = 0x0010
 521 
 522 SWP_FRAMECHANGED   = 0x0020
 523 SWP_SHOWWINDOW     = 0x0040
 524 SWP_HIDEWINDOW     = 0x0080
 525 SWP_NOCOPYBITS     = 0x0100
 526 SWP_NOOWNERZORDER  = 0x0200
 527 SWP_NOSENDCHANGING = 0x0400
 528 
 529 
 530 MK_LBUTTON =         0x0001
 531 MK_RBUTTON =         0x0002
 532 MK_SHIFT   =         0x0004
 533 MK_CONTROL =         0x0008
 534 MK_MBUTTON =         0x0010
 535 
 536 VK_LBUTTON         = 0x01
 537 VK_RBUTTON         = 0x02
 538 VK_CANCEL          = 0x03
 539 VK_MBUTTON         = 0x04
 540 VK_BACK            = 0x08
 541 VK_TAB             = 0x09
 542 VK_RETURN          = 0x0D
 543 VK_SHIFT           = 0x10
 544 VK_CONTROL         = 0x11
 545 VK_MENU            = 0x12
 546 VK_ESCAPE          = 0x1B
 547 VK_SPACE           = 0x20
 548 VK_END             = 0x23
 549 VK_HOME            = 0x24
 550 VK_LEFT            = 0x25
 551 VK_UP              = 0x26
 552 VK_RIGHT           = 0x27
 553 VK_DOWN            = 0x28
 554 VK_INSERT          = 0x2D
 555 VK_DELETE          = 0x2E
 556 
 557 VK_F1              = 0x70
 558 VK_F2              = 0x71
 559 VK_F3              = 0x72
 560 VK_F4              = 0x73
 561 VK_F5              = 0x74
 562 VK_F6              = 0x75
 563 VK_F7              = 0x76
 564 VK_F8              = 0x77
 565 VK_F9              = 0x78
 566 VK_F10             = 0x79
 567 VK_F11             = 0x7A
 568 VK_F12             = 0x7B
 569 
 570 
 571 WS_EX_DLGMODALFRAME  = 0x00000001
 572 WS_EX_NOPARENTNOTIFY = 0x00000004
 573 WS_EX_TOPMOST        = 0x00000008
 574 WS_EX_ACCEPTFILES    = 0x00000010
 575 WS_EX_TRANSPARENT    = 0x00000020
 576 WS_EX_MDICHILD       = 0x00000040
 577 WS_EX_TOOLWINDOW     = 0x00000080
 578 WS_EX_WINDOWEDGE     = 0x00000100
 579 WS_EX_CLIENTEDGE     = 0x00000200
 580 WS_EX_CONTEXTHELP    = 0x00000400
 581 WS_EX_RIGHT          = 0x00001000
 582 WS_EX_RTLREADING     = 0x00002000
 583 WS_EX_LEFTSCROLLBAR  = 0x00004000
 584 WS_EX_CONTROLPARENT  = 0x00010000
 585 WS_EX_STATICEDGE     = 0x00020000
 586 WS_EX_APPWINDOW      = 0x00040000
 587 
 588 WS_OVERLAPPED  =     0x00000000
 589 WS_POPUP       =     0x80000000
 590 WS_CHILD       =     0x40000000
 591 WS_MINIMIZE    =     0x20000000
 592 WS_VISIBLE     =     0x10000000
 593 WS_DISABLED    =     0x08000000
 594 WS_CLIPSIBLINGS  =   0x04000000
 595 WS_CLIPCHILDREN  =   0x02000000
 596 WS_MAXIMIZE    =     0x01000000
 597 WS_BORDER      =     0x00800000
 598 WS_DLGFRAME    =     0x00400000
 599 WS_CAPTION     =     $WS_BORDER | $WS_DLGFRAME  
 600 WS_VSCROLL     =     0x00200000
 601 WS_HSCROLL     =     0x00100000
 602 WS_SYSMENU     =     0x00080000
 603 WS_THICKFRAME  =     0x00040000
 604 WS_GROUP       =     0x00020000
 605 WS_TABSTOP     =     0x00010000
 606 
 607 WS_MINIMIZEBOX  =    0x00020000
 608 WS_MAXIMIZEBOX  =    0x00010000
 609 
 610 WS_OVERLAPPEDWINDOW  = $WS_OVERLAPPED | $WS_CAPTION | $WS_SYSMENU | $WS_THICKFRAME | $WS_MINIMIZEBOX | $WS_MAXIMIZEBOX 
 611 
 612 CCS_TOP                 = 0x00000001
 613 CCS_NOMOVEY             = 0x00000002
 614 CCS_BOTTOM              = 0x00000003
 615 CCS_NORESIZE            = 0x00000004
 616 CCS_NOPARENTALIGN       = 0x00000008
 617 CCS_ADJUSTABLE          = 0x00000020
 618 CCS_NODIVIDER           = 0x00000040
 619 CCS_VERT                = 0x00000080
 620 
 621 
 622 MB_OK                       = 0x00000000
 623 MB_OKCANCEL                 = 0x00000001
 624 MB_ABORTRETRYIGNORE         = 0x00000002
 625 MB_YESNOCANCEL              = 0x00000003
 626 MB_YESNO                    = 0x00000004
 627 MB_RETRYCANCEL              = 0x00000005
 628 MB_CANCELTRYCONTINUE        = 0x00000006
 629 MB_ICONHAND                 = 0x00000010
 630 MB_ICONERROR                = $MB_ICONHAND
 631 MB_ICONQUESTION             = 0x00000020
 632 MB_ICONEXCLAMATION          = 0x00000030
 633 MB_ICONASTERISK             = 0x00000040
 634 MB_USERICON                 = 0x00000080
 635 MB_DEFBUTTON1               = 0x00000000
 636 MB_DEFBUTTON2               = 0x00000100
 637 MB_DEFBUTTON3               = 0x00000200
 638 MB_DEFBUTTON4               = 0x00000300
 639 MB_APPLMODAL                = 0x00000000
 640 MB_SYSTEMMODAL              = 0x00001000
 641 MB_TASKMODAL                = 0x00002000
 642 MB_HELP                     = 0x00004000
 643 MB_NOFOCUS                  = 0x00008000
 644 MB_SETFOREGROUND            = 0x00010000
 645 MB_DEFAULT_DESKTOP_ONLY     = 0x00020000
 646 MB_TOPMOST                  = 0x00040000
 647 MB_RIGHT                    = 0x00080000
 648 MB_RTLREADING               = 0x00100000
 649 
 650 IDOK         = 1
 651 IDCANCEL     = 2
 652 IDABORT      = 3
 653 IDRETRY      = 4
 654 IDIGNORE     = 5
 655 IDYES        = 6
 656 IDNO         = 7
 657 IDCLOSE      = 8
 658 IDHELP       = 9
 659 IDTRYAGAIN   = 10
 660 IDCONTINUE   = 11
 661 
 662 WA_INACTIVE    = 0
 663 WA_ACTIVE      = 1
 664 WA_CLICKACTIVE = 2
 665 
 666 SM_CXMENUCHECK = 71
 667 
 668 ETO_OPAQUE  = 0x0002
 669 ETO_CLIPPED = 0x0004
 670 
 671 }
 672 
 673 define <export>{
 674    WM_CREATE          = 0x0001
 675    WM_DESTROY         = 0x0002
 676    WM_MOVE            = 0x0003
 677    WM_SIZE            = 0x0005
 678    WM_ACTIVATE        = 0x0006
 679    WM_SETFOCUS        = 0x0007
 680    WM_KILLFOCUS       = 0x0008
 681    WM_ENABLE          = 0x000A
 682    WM_SETREDRAW       = 0x000B
 683    WM_SETTEXT         = 0x000C
 684    WM_GETTEXT         = 0x000D
 685    WM_GETTEXTLENGTH   = 0x000E
 686    WM_PAINT           = 0x000F
 687    WM_CLOSE           = 0x0010
 688    WM_QUERYENDSESSION = 0x0011
 689    WM_QUIT            = 0x0012
 690    WM_ERASEBKGND      = 0x0014
 691    WM_SYSCOLORCHANGE  = 0x0015
 692 
 693    WM_SHOWWINDOW      = 0x0018
 694    WM_SETTINGCHANGE   = 0x001A
 695    WM_ACTIVATEAPP     = 0x001C
 696    WM_FONTCHANGE      = 0x001D
 697 
 698    WM_SETCURSOR       = 0x0020
 699    WM_GETMINMAXINFO   = 0x0024
 700    WM_DRAWITEM        = 0x002B
 701    WM_MEASUREITEM     = 0x002C
 702    WM_VKEYTOITEM      = 0x002E
 703    WM_CHARTOITEM      = 0x002F
 704    WM_SETFONT         = 0x0030
 705    WM_GETFONT         = 0x0031
 706 
 707    WM_WINDOWPOSCHANGING = 0x0046
 708    WM_WINDOWPOSCHANGED  = 0x0047
 709 
 710    WM_NOTIFY          = 0x004E
 711    WM_GETICON         = 0x007F
 712    WM_CONTEXTMENU     = 0x007B
 713    WM_SETICON         = 0x0080
 714    WM_NCCREATE        = 0x0081
 715    WM_NCDESTROY       = 0x0082
 716    WM_NCCALCSIZE      = 0x0083
 717    WM_NCHITTEST       = 0x0084
 718    WM_NCPAINT         = 0x0085
 719    WM_NCACTIVATE      = 0x0086
 720    WM_GETDLGCODE      = 0x0087
 721    WM_SYNCPAINT       = 0x0088
 722    WM_NCMOUSEMOVE     = 0x00A0
 723    WM_NCLBUTTONDOWN   = 0x00A1
 724    WM_NCLBUTTONUP     = 0x00A2
 725    WM_NCLBUTTONDBLCLK = 0x00A3
 726    WM_NCRBUTTONDOWN   = 0x00A4
 727    WM_NCRBUTTONUP     = 0x00A5
 728    WM_NCRBUTTONDBLCLK = 0x00A6
 729    WM_NCMBUTTONDOWN   = 0x00A7
 730    WM_NCMBUTTONUP     = 0x00A8
 731    WM_NCMBUTTONDBLCLK = 0x00A9
 732 
 733    WM_GETDLGCODE      = 0x0087
 734 
 735    WM_KEYDOWN         = 0x0100
 736    WM_KEYUP           = 0x0101
 737    WM_CHAR            = 0x0102
 738    WM_SYSKEYDOWN      = 0x0104
 739    WM_SYSKEYUP        = 0x0105
 740    WM_SYSCHAR         = 0x0106
 741    WM_COMMAND         = 0x0111
 742    WM_HSCROLL         = 0x0114
 743    WM_VSCROLL         = 0x0115
 744    WM_INITMENU        = 0x0116
 745    WM_INITMENUPOPUP   = 0x0117
 746    WM_MENUSELECT      = 0x011F
 747    WM_ENTERIDLE       = 0x0121
 748    
 749    WM_CTLCOLORMSGBOX    = 0x0132
 750    WM_CTLCOLOREDIT      = 0x0133
 751    WM_CTLCOLORLISTBOX   = 0x0134
 752    WM_CTLCOLORBTN       = 0x0135
 753    WM_CTLCOLORDLG       = 0x0136
 754    WM_CTLCOLORSCROLLBAR = 0x0137
 755    WM_CTLCOLORSTATIC    = 0x0138   
 756    
 757    WM_MOUSEMOVE       = 0x0200
 758    WM_LBUTTONDOWN     = 0x0201
 759    WM_LBUTTONUP       = 0x0202
 760    WM_LBUTTONDBLCLK   = 0x0203
 761    WM_RBUTTONDOWN     = 0x0204
 762    WM_RBUTTONUP       = 0x0205   
 763    WM_RBUTTONDBLCLK   = 0x0206
 764    WM_MBUTTONDOWN     = 0x0207
 765    WM_MBUTTONUP       = 0x0208
 766    WM_MBUTTONDBLCLK   = 0x0209
 767    WM_MOUSEWHEEL      = 0x020A
 768    WM_MOUSELEAVE      = 0x02A3
 769    
 770    WM_SIZING          = 0x0214
 771    WM_CAPTURECHANGED  = 0x0215
 772    WM_MOVING          = 0x0216
 773    
 774    WM_USER            = 0x0400
 775 }
 776 
 777 
 778 define {
 779 DEFAULT_GUI_FONT = 17
 780 }
 781 
 782 define {
 783    CS_VREDRAW         = 0x0001
 784    CS_HREDRAW         = 0x0002
 785    CS_DBLCLKS         = 0x0008
 786    WS_OVERLAPPEDWINDOW  = 0x00CF0000
 787    
 788    CWP_SKIPTRANSPARENT =0x0004
 789    CWP_SKIPINVISIBLE = 0x0001
 790    //WM_DESTROY         = 0x0002
 791 }
 792 
 793 define {
 794 BLACK_BRUSH       =  4
 795 
 796    OEM_FIXED_FONT    =  10
 797    ANSI_FIXED_FONT   =  11
 798 
 799    DEFAULT_GUI_FONT  =  17
 800    DEFAULT_CHARSET = 1
 801 
 802    FW_BOLD         = 700
 803 
 804    LF_FACESIZE   = 32
 805    LOGPIXELSY    = 90
 806    
 807    PATINVERT = 0x005A0049 
 808    
 809    TRANSPARENT   = 1
 810    OPAQUE        = 2
 811 
 812    PS_SOLID      = 0
 813    PS_DASH       = 1       /* -------  */
 814    PS_DOT        = 2       /* .......  */
 815    PS_INSIDEFRAME	 = 6
 816    R2_NOT  =    6
 817    RGN_OR=2
 818    RGN_DIFF=4
 819 
 820 
 821 }
 822 
 823 operator RECT =( RECT left right )
 824 {
 825    left.left = right.left
 826    left.top = right.top
 827    left.right = right.right
 828    left.bottom = right.bottom
 829    return left
 830 }
 831 operator POINT =( POINT left right )
 832 {
 833    left.x = right.x 
 834    left.y = right.y
 835    return left
 836 }
 837 
 838 define {
 839 IMAGE_BITMAP       = 0
 840 IMAGE_ICON         = 1
 841 IMAGE_CURSOR       = 2
 842 
 843 
 844 BM_GETCHECK        = 0x00F0
 845 BM_SETCHECK        = 0x00F1
 846 BM_GETSTATE        = 0x00F2
 847 BM_SETSTATE        = 0x00F3
 848 BM_SETSTYLE        = 0x00F4
 849 BM_CLICK           = 0x00F5
 850 BM_GETIMAGE        = 0x00F6
 851 BM_SETIMAGE        = 0x00F7
 852 
 853 
 854 BN_CLICKED   = 0
 855 
 856 
 857 BS_TEXT            = 0x00000000
 858 BS_DEFPUSHBUTTON   = 0x00000001
 859 BS_CHECKBOX        = 0x00000002
 860 BS_AUTOCHECKBOX    = 0x00000003
 861 BS_RADIOBUTTON     = 0x00000004
 862 BS_3STATE          = 0x00000005
 863 BS_AUTO3STATE      = 0x00000006
 864 BS_GROUPBOX        = 0x00000007
 865 BS_USERBUTTON      = 0x00000008
 866 BS_AUTORADIOBUTTON = 0x00000009
 867 BS_OWNERDRAW       = 0x0000000B
 868 BS_ICON            = 0x00000040
 869 BS_BITMAP          = 0x00000080
 870 BS_LEFT            = 0x00000100
 871 BS_RIGHT           = 0x00000200
 872 BS_CENTER          = 0x00000300
 873 BS_TOP             = 0x00000400
 874 BS_BOTTOM          = 0x00000800
 875 BS_VCENTER         = 0x00000C00
 876 BS_PUSHLIKE        = 0x00001000
 877 BS_MULTILINE       = 0x00002000
 878 BS_NOTIFY          = 0x00004000
 879 BS_FLAT            = 0x00008000
 880 BS_PUSHLIKE        = 0x00001000
 881 
 882 
 883 
 884 BST_UNCHECKED      = 0x0000
 885 BST_CHECKED        = 0x0001
 886 BST_INDETERMINATE  = 0x0002
 887 BST_PUSHED         = 0x0004
 888 BST_FOCUS          = 0x0008
 889 }
 890 
 891 define {
 892 
 893 ES_MULTILINE   = 0x0004
 894 ES_PASSWORD    = 0x0020
 895 ES_AUTOVSCROLL = 0x0040
 896 ES_AUTOHSCROLL = 0x0080
 897 ES_READONLY    = 0x0800
 898 ES_WANTRETURN  = 0x1000
 899 
 900 EN_CHANGE      = 0x0300
 901 EN_UPDATE      = 0x0400
 902 
 903 EM_GETLIMITTEXT     = 0x00D5
 904 EM_LIMITTEXT        = 0x00C5
 905 EM_SETSEL           = 0x00B1
 906 EM_GETSEL           = 0x00B0
 907 EM_SETPASSWORDCHAR  = 0x00CC
 908 EM_GETPASSWORDCHAR  = 0x00D2
 909 EM_SETREADONLY      = 0x00CF
 910 EM_SETMODIFY        = 0x00B9
 911 }
 912 
 913 
 914 //Menu
 915 define {
 916  MF_INSERT           = 0x00000000
 917  MF_CHANGE           = 0x00000080
 918  MF_APPEND           = 0x00000100
 919  MF_DELETE           = 0x00000200
 920  MF_REMOVE           = 0x00001000
 921 
 922  MF_BYCOMMAND        = 0x00000000
 923  MF_BYPOSITION       = 0x00000400
 924 
 925  MF_SEPARATOR        = 0x00000800
 926 
 927  MF_ENABLED          = 0x00000000
 928  MF_GRAYED           = 0x00000001
 929  MF_DISABLED         = 0x00000002
 930 
 931  MF_UNCHECKED        = 0x00000000
 932  MF_CHECKED          = 0x00000008
 933  MF_USECHECKBITMAPS  = 0x00000200
 934 
 935  MF_STRING           = 0x00000000
 936  MF_BITMAP           = 0x00000004
 937  MF_OWNERDRAW        = 0x00000100
 938 
 939  MF_POPUP            = 0x00000010
 940  MF_MENUBARBREAK     = 0x00000020
 941  MF_MENUBREAK        = 0x00000040
 942 
 943  MF_UNHILITE         = 0x00000000
 944  MF_HILITE           = 0x00000080
 945 
 946 
 947  MF_DEFAULT          = 0x00001000
 948 
 949  MF_SYSMENU          = 0x00002000
 950  MF_HELP             = 0x00004000
 951 
 952  MF_RIGHTJUSTIFY     = 0x00004000
 953 
 954 
 955  MF_MOUSESELECT      = 0x00008000
 956  MF_END              = 0x00000080
 957 
 958  MFT_STRING          =$MF_STRING
 959  MFT_BITMAP          =$MF_BITMAP
 960  MFT_MENUBARBREAK    =$MF_MENUBARBREAK
 961  MFT_MENUBREAK       =$MF_MENUBREAK
 962  MFT_OWNERDRAW       =$MF_OWNERDRAW
 963  MFT_RADIOCHECK      =0x00000200
 964  MFT_SEPARATOR       =$MF_SEPARATOR
 965  MFT_RIGHTORDER      =0x00002000
 966  MFT_RIGHTJUSTIFY    =$MF_RIGHTJUSTIFY
 967  
 968  
 969 MIIM_STATE       = 0x00000001
 970 MIIM_ID          = 0x00000002
 971 MIIM_SUBMENU     = 0x00000004
 972 MIIM_CHECKMARKS  = 0x00000008
 973 MIIM_TYPE        = 0x00000010
 974 MIIM_DATA        = 0x00000020
 975 MIIM_BITMAP      = 0x00000080
 976 
 977 MFS_GRAYED        = 0x00000003
 978 MFS_DISABLED      =  $MFS_GRAYED
 979 MFS_CHECKED       =  $MF_CHECKED
 980 MFS_HILITE        =  $MF_HILITE
 981 MFS_ENABLED       =  $MF_ENABLED
 982 MFS_UNCHECKED     =  $MF_UNCHECKED
 983 MFS_UNHILITE      =  $MF_UNHILITE
 984 MFS_DEFAULT       =  $MF_DEFAULT
 985 
 986 TPM_LEFTBUTTON  = 0x0000
 987 TPM_RIGHTBUTTON = 0x0002
 988 TPM_LEFTALIGN   = 0x0000
 989 TPM_CENTERALIGN = 0x0004
 990 TPM_RIGHTALIGN  = 0x0008
 991 
 992 TPM_TOPALIGN        = 0x0000
 993 TPM_VCENTERALIGN    = 0x0010
 994 TPM_BOTTOMALIGN     = 0x0020
 995 
 996 TPM_HORIZONTAL      = 0x0000
 997 TPM_VERTICAL        = 0x0040
 998 TPM_NONOTIFY        = 0x0080
 999 TPM_RETURNCMD       = 0x0100
1000 
1001 
1002 }
1003 
1004 
1005 
1006 define {
1007    IDC_ARROW    =32512
1008    IDC_IBEAM    =32513
1009    IDC_WAIT     =32514
1010    IDC_CROSS    =32515
1011    IDC_UPARROW  =32516
1012    IDC_SIZE     =32640
1013    IDC_ICON     =32641
1014    IDC_SIZENWSE =32642
1015    IDC_SIZENESW =32643
1016    IDC_SIZEWE   =32644
1017    IDC_SIZENS   =32645
1018    IDC_SIZEALL  =32646
1019    IDC_NO       =32648
1020    IDC_HAND        =32649
1021    IDC_APPSTARTING =32650
1022    IDC_HELP        =32651
1023 }
1024 
1025  
1026 
1027 define {
1028 TCM_FIRST        =      0x1300
1029 //TCM_INSERTITEMA  =  ($TCM_FIRST + 7)
1030 TCM_INSERTITEMW  =  ($TCM_FIRST + 62)
1031 TCM_DELETEITEM   =  ($TCM_FIRST + 8)
1032 //TCM_GETITEMA     =  ($TCM_FIRST + 5)
1033 TCM_GETITEMW     =  ($TCM_FIRST + 60)
1034 //TCM_SETITEMA     =  ($TCM_FIRST + 6)
1035 TCM_SETITEMW     =  ($TCM_FIRST + 61)
1036 TCM_ADJUSTRECT   =  ($TCM_FIRST + 40)
1037 TCM_GETCURSEL    =  ($TCM_FIRST + 11)
1038 TCM_SETCURSEL    =  ($TCM_FIRST + 12)
1039 TCM_GETTOOLTIPS  =  ($TCM_FIRST + 45)
1040 TCM_SETTOOLTIPS  =  ($TCM_FIRST + 46)
1041 TCM_GETITEMW     =  ($TCM_FIRST + 60)
1042 
1043 TCIF_TEXT        =       0x0001
1044 TCIF_IMAGE       =       0x0002
1045 TCIF_RTLREADING  =       0x0004
1046 TCIF_PARAM       =       0x0008
1047 TCIF_STATE       =       0x0010
1048 
1049 //TCN_FIRST -550 0xFFFFFDD9//
1050 TCN_SELCHANGE    = -551//(TCN_FIRST - 1)
1051 
1052 }
1053 
1054 //vComboBox
1055 define {
1056 CB_GETEDITSEL               = 0x0140
1057 CB_LIMITTEXT                = 0x0141
1058 CB_SETEDITSEL               = 0x0142
1059 CB_ADDSTRING                = 0x0143
1060 CB_DELETESTRING             = 0x0144
1061 CB_DIR                      = 0x0145
1062 CB_GETCOUNT                 = 0x0146
1063 CB_GETCURSEL                = 0x0147
1064 CB_GETLBTEXT                = 0x0148
1065 CB_GETLBTEXTLEN             = 0x0149
1066 CB_INSERTSTRING             = 0x014A
1067 CB_RESETCONTENT             = 0x014B
1068 CB_FINDSTRING               = 0x014C
1069 CB_SELECTSTRING             = 0x014D
1070 CB_SETCURSEL                = 0x014E
1071 CB_SHOWDROPDOWN             = 0x014F
1072 CB_GETITEMDATA              = 0x0150
1073 CB_SETITEMDATA              = 0x0151
1074 CB_GETDROPPEDCONTROLRECT    = 0x0152
1075 CB_SETITEMHEIGHT            = 0x0153
1076 CB_GETITEMHEIGHT            = 0x0154
1077 CB_SETEXTENDEDUI            = 0x0155
1078 CB_GETEXTENDEDUI            = 0x0156
1079 CB_GETDROPPEDSTATE          = 0x0157
1080 CB_FINDSTRINGEXACT          = 0x0158
1081 CB_SETLOCALE                = 0x0159
1082 CB_GETLOCALE                = 0x015A
1083 CB_GETTOPINDEX              = 0x015b
1084 CB_SETTOPINDEX              = 0x015c
1085 CB_GETHORIZONTALEXTENT      = 0x015d
1086 CB_SETHORIZONTALEXTENT      = 0x015e
1087 CB_GETDROPPEDWIDTH          = 0x015f
1088 CB_SETDROPPEDWIDTH          = 0x0160
1089 CB_INITSTORAGE              = 0x0161
1090 CB_MSGMAX                   = 0x0162
1091 CB_MSGMAX                   = 0x015B
1092 
1093 CBS_SIMPLE            = 0x0001
1094 CBS_DROPDOWN          = 0x0002
1095 CBS_DROPDOWNLIST      = 0x0003
1096 CBS_OWNERDRAWFIXED    = 0x0010
1097 CBS_OWNERDRAWVARIABLE = 0x0020
1098 CBS_AUTOHSCROLL       = 0x0040
1099 CBS_OEMCONVERT        = 0x0080
1100 CBS_SORT              = 0x0100
1101 CBS_HASSTRINGS        = 0x0200
1102 CBS_NOINTEGRALHEIGHT  = 0x0400
1103 CBS_DISABLENOSCROLL   = 0x0800
1104 CBS_UPPERCASE         = 0x2000
1105 CBS_LOWERCASE         = 0x4000
1106 
1107 CBN_ERRSPACE        =-1
1108 CBN_SELCHANGE       =1
1109 CBN_DBLCLK          =2
1110 CBN_SETFOCUS        =3
1111 CBN_KILLFOCUS       =4
1112 CBN_EDITCHANGE      =5
1113 CBN_EDITUPDATE      =6
1114 CBN_DROPDOWN        =7
1115 CBN_CLOSEUP         =8
1116 CBN_SELENDOK        =9
1117 CBN_SELENDCANCEL    =10
1118 
1119 }
1120 
1121 //Border
1122 define {
1123 BDR_RAISEDOUTER =0x0001
1124 BDR_SUNKENOUTER =0x0002
1125 BDR_RAISEDINNER =0x0004
1126 BDR_SUNKENINNER =0x0008
1127 
1128 BDR_OUTER       =0x0003
1129 BDR_INNER       =0x000c
1130 
1131 EDGE_RAISED     =($BDR_RAISEDOUTER | $BDR_RAISEDINNER)
1132 EDGE_SUNKEN     =($BDR_SUNKENOUTER | $BDR_SUNKENINNER)
1133 EDGE_ETCHED     =($BDR_SUNKENOUTER | $BDR_RAISEDINNER)
1134 EDGE_BUMP       =($BDR_RAISEDOUTER | $BDR_SUNKENINNER)
1135 
1136 BF_LEFT         =0x0001
1137 BF_TOP          =0x0002
1138 BF_RIGHT        =0x0004
1139 BF_BOTTOM       =0x0008
1140 
1141 BF_TOPLEFT      =($BF_TOP | $BF_LEFT)
1142 BF_TOPRIGHT     =($BF_TOP | $BF_RIGHT)
1143 BF_BOTTOMLEFT   =($BF_BOTTOM | $BF_LEFT)
1144 BF_BOTTOMRIGHT  =($BF_BOTTOM | $BF_RIGHT)
1145 BF_RECT         =($BF_LEFT | $BF_TOP | $BF_RIGHT | $BF_BOTTOM)
1146 
1147 BF_DIAGONAL     =0x0010
1148 
1149 BF_DIAGONAL_ENDTOPRIGHT     =($BF_DIAGONAL | $BF_TOP | $BF_RIGHT)
1150 BF_DIAGONAL_ENDTOPLEFT      =($BF_DIAGONAL | $BF_TOP | $BF_LEFT)
1151 BF_DIAGONAL_ENDBOTTOMLEFT   =($BF_DIAGONAL | $BF_BOTTOM | $BF_LEFT)
1152 BF_DIAGONAL_ENDBOTTOMRIGHT  =($BF_DIAGONAL | $BF_BOTTOM | $BF_RIGHT)
1153 
1154 
1155 BF_MIDDLE       =0x0800  /* Fill in the middle */
1156 BF_SOFT         =0x1000  /* For softer buttons */
1157 BF_ADJUST       =0x2000  /* Calculate the space left over */
1158 BF_FLAT         =0x4000  /* For flat rather than 3D borders */
1159 BF_MONO         =0x8000  /* For monochrome borders */
1160 }
1161 
1162 //DrawText() Format Flags
1163 define {
1164 DT_TOP              = 0x00000000
1165 DT_LEFT             = 0x00000000
1166 DT_CENTER           = 0x00000001
1167 DT_RIGHT            = 0x00000002
1168 DT_VCENTER          = 0x00000004
1169 DT_BOTTOM           = 0x00000008
1170 DT_WORDBREAK        = 0x00000010
1171 DT_SINGLELINE       = 0x00000020
1172 DT_EXPANDTABS       = 0x00000040
1173 DT_TABSTOP          = 0x00000080
1174 DT_NOCLIP           = 0x00000100
1175 DT_EXTERNALLEADING  = 0x00000200
1176 DT_CALCRECT         = 0x00000400
1177 DT_NOPREFIX         = 0x00000800
1178 DT_INTERNAL         = 0x00001000
1179 
1180 
1181 DT_EDITCONTROL      = 0x00002000
1182 DT_PATH_ELLIPSIS    = 0x00004000
1183 DT_END_ELLIPSIS     = 0x00008000
1184 DT_MODIFYSTRING     = 0x00010000
1185 DT_RTLREADING       = 0x00020000
1186 DT_WORD_ELLIPSIS    = 0x0004000
1187 }
1188 
1189 //Scroll Bar 
1190 define { 
1191 SB_HORZ           =  0
1192 SB_VERT           =  1
1193 SB_CTL            =  2
1194 SB_BOTH           =  3
1195 
1196 SB_LINEUP         =  0
1197 SB_LINELEFT       =  0
1198 SB_LINEDOWN       =  1
1199 SB_LINERIGHT      =  1
1200 SB_PAGEUP         =  2
1201 SB_PAGELEFT       =  2
1202 SB_PAGEDOWN       =  3
1203 SB_PAGERIGHT      =  3
1204 SB_THUMBPOSITION  =  4
1205 SB_THUMBTRACK     =  5
1206 SB_TOP            =  6
1207 SB_LEFT           =  6
1208 SB_BOTTOM         =  7
1209 SB_RIGHT          =  7
1210 SB_ENDSCROLL      =  8
1211 
1212 
1213 SBM_SETPOS                  = 0x00E0 
1214 SBM_GETPOS                  = 0x00E1 
1215 SBM_SETRANGE                = 0x00E2 
1216 SBM_SETRANGEREDRAW          = 0x00E6 
1217 SBM_GETRANGE                = 0x00E3 
1218 SBM_ENABLE_ARROWS           = 0x00E4 
1219 
1220 SBM_SETSCROLLINFO           = 0x00E9
1221 SBM_GETSCROLLINFO           = 0x00EA
1222 
1223 SIF_RANGE           = 0x0001
1224 SIF_PAGE            = 0x0002
1225 SIF_POS             = 0x0004
1226 SIF_DISABLENOSCROLL = 0x0008
1227 SIF_TRACKPOS        = 0x0010
1228 SIF_ALL             =($SIF_RANGE | $SIF_PAGE | $SIF_POS | $SIF_TRACKPOS)
1229 }
1230 
1231 //syscolors
1232 define {
1233 COLOR_SCROLLBAR         =0
1234 COLOR_BACKGROUND        =1
1235 COLOR_ACTIVECAPTION     =2
1236 COLOR_INACTIVECAPTION   =3
1237 COLOR_MENU              =4
1238 COLOR_WINDOW            =5
1239 COLOR_WINDOWFRAME       =6
1240 COLOR_MENUTEXT          =7
1241 COLOR_WINDOWTEXT        =8
1242 COLOR_CAPTIONTEXT       =9
1243 COLOR_ACTIVEBORDER      =10
1244 COLOR_INACTIVEBORDER    =11
1245 COLOR_APPWORKSPACE      =12
1246 COLOR_HIGHLIGHT         =13
1247 COLOR_HIGHLIGHTTEXT     =14
1248 COLOR_BTNFACE           =15
1249 COLOR_BTNSHADOW         =16
1250 COLOR_GRAYTEXT          =17
1251 COLOR_BTNTEXT           =18
1252 COLOR_INACTIVECAPTIONTEXT =19
1253 COLOR_BTNHIGHLIGHT      =20
1254 
1255 
1256 COLOR_3DDKSHADOW        =21
1257 COLOR_3DLIGHT           =22
1258 COLOR_INFOTEXT          =23
1259 COLOR_INFOBK            =24
1260 }
1261 
1262 
1263 
1264 define {
1265 OFN_READONLY                 = 0x00000001
1266 OFN_OVERWRITEPROMPT          = 0x00000002
1267 OFN_HIDEREADONLY             = 0x00000004
1268 OFN_NOCHANGEDIR              = 0x00000008
1269 OFN_SHOWHELP                 = 0x00000010
1270 OFN_ENABLEHOOK               = 0x00000020
1271 OFN_ENABLETEMPLATE           = 0x00000040
1272 OFN_ENABLETEMPLATEHANDLE     = 0x00000080
1273 OFN_NOVALIDATE               = 0x00000100
1274 OFN_ALLOWMULTISELECT         = 0x00000200
1275 OFN_EXTENSIONDIFFERENT       = 0x00000400
1276 OFN_PATHMUSTEXIST            = 0x00000800
1277 OFN_FILEMUSTEXIST            = 0x00001000
1278 OFN_CREATEPROMPT             = 0x00002000
1279 OFN_SHAREAWARE               = 0x00004000
1280 OFN_NOREADONLYRETURN         = 0x00008000
1281 OFN_NOTESTFILECREATE         = 0x00010000
1282 OFN_NONETWORKBUTTON          = 0x00020000
1283 OFN_NOLONGNAMES              = 0x00040000
1284 OFN_EXPLORER                 = 0x00080000
1285 OFN_NODEREFERENCELINKS       = 0x00100000
1286 OFN_LONGNAMES                = 0x00200000
1287 OFN_ENABLEINCLUDENOTIFY      = 0x00400000
1288 OFN_ENABLESIZING             = 0x00800000
1289 }
1290 
1291 
1292 type OPENFILENAME{  
1293     uint       lStructSize 
1294     uint       hwndOwner 
1295     uint       hInstance 
1296     uint       lpstrFilter 
1297     uint       lpstrCustomFilter 
1298     uint       nMaxCustFilter 
1299     uint       nFilterIndex 
1300     uint       lpstrFile 
1301     uint       nMaxFile 
1302     uint       lpstrFileTitle 
1303     uint       nMaxFileTitle 
1304     uint       lpstrInitialDir 
1305     uint       lpstrTitle 
1306     uint       Flags 
1307     ushort     nFileOffset 
1308     ushort     nFileExtension 
1309     uint       lpstrDefExt 
1310     uint       lCustData 
1311     uint       lpfnHook 
1312     uint       lpTemplateName 
1313 } 
1314 
1315 import "comdlg32"{
1316    uint GetOpenFileNameW( OPENFILENAME ) -> GetOpenFileName
1317    uint GetSaveFileNameW( OPENFILENAME ) -> GetSaveFileName
1318 }
1319 
1320 
1321 import "comctl32"{   
1322    uint ImageList_Add( uint, uint, uint )
1323    uint ImageList_AddMasked( uint, uint, uint )
1324    uint ImageList_BeginDrag( uint, uint, uint, uint )
1325    uint ImageList_EndDrag()
1326    uint ImageList_DragShowNolock( uint )
1327    uint ImageList_DragEnter( uint, uint, uint )
1328    uint ImageList_DragLeave( uint )
1329    uint ImageList_DragMove( uint, uint )
1330    uint ImageList_SetOverlayImage( uint, uint, uint )
1331    
1332 }
1333 
1334 //--------------------------------------------------
1335 //Static
1336 define {
1337 SS_LEFT             = 0x00000000
1338 SS_CENTER           = 0x00000001
1339 SS_RIGHT            = 0x00000002
1340 SS_ICON             = 0x00000003
1341 SS_BLACKRECT        = 0x00000004
1342 SS_GRAYRECT         = 0x00000005
1343 SS_WHITERECT        = 0x00000006
1344 SS_BLACKFRAME       = 0x00000007
1345 SS_GRAYFRAME        = 0x00000008
1346 SS_WHITEFRAME       = 0x00000009
1347 SS_USERITEM         = 0x0000000A
1348 SS_SIMPLE           = 0x0000000B
1349 SS_LEFTNOWORDWRAP   = 0x0000000C
1350 SS_OWNERDRAW        = 0x0000000D
1351 SS_BITMAP           = 0x0000000E
1352 SS_ENHMETAFILE      = 0x0000000F
1353 SS_ETCHEDHORZ       = 0x00000010
1354 SS_ETCHEDVERT       = 0x00000011
1355 SS_ETCHEDFRAME      = 0x00000012
1356 SS_TYPEMASK         = 0x0000001F
1357 SS_REALSIZECONTROL  = 0x00000040
1358 SS_NOPREFIX         = 0x00000080
1359 SS_NOTIFY           = 0x00000100
1360 SS_CENTERIMAGE      = 0x00000200
1361 SS_RIGHTJUST        = 0x00000400
1362 SS_REALSIZEIMAGE    = 0x00000800
1363 SS_SUNKEN           = 0x00001000
1364 SS_EDITCONTROL      = 0x00002000
1365 SS_ENDELLIPSIS      = 0x00004000
1366 SS_PATHELLIPSIS     = 0x00008000
1367 SS_WORDELLIPSIS     = 0x0000C000
1368 SS_ELLIPSISMASK     = 0x0000C000
1369 }
1370 
1371 
1372 //--------------------------------------------------
1373 //TreeView
1374 
1375 type TVITEM {
1376     uint    mask