Changeset 303 for trunk/Include/Classes
- Timestamp:
- Aug 24, 2007, 11:14:46 AM (17 years ago)
- Location:
- trunk/Include/Classes
- Files:
-
- 1 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/Windows/CriticalSection.ab
r297 r303 7 7 8 8 Namespace Detail 9 Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer( VarPtr(p) AsVoidPtr, x)9 Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer(ByVal VarPtr(p) As *VoidPtr, x) 10 10 End Namespace 11 11 … … 53 53 54 54 /*Override*/ Sub Dispose() 55 Dim pcs = Detail.InterlockedExchangeAnyPointer(pcs, 0) 56 If pcs <> 0 Then 57 LeaveCriticalSection(ByVal pcs) 55 ' Dim p = ActiveBasic.Windows.Detail.InterlockedExchangeAnyPointer(pcs, 0) 56 Dim p = InterlockedExchangePointer(pcs As VoidPtr, 0) As *CRITICAL_SECTION 57 If p <> 0 Then 58 LeaveCriticalSection(ByVal p) 58 59 End If 59 60 End Sub -
trunk/Include/Classes/ActiveBasic/Windows/WindowHandle.sbp
r302 r303 1 ' Windows/WindowHandle.sbp 2 3 #ifndef __WINDOWS_WINDOWHANDLE_SBP__ 4 #define __WINDOWS_WINDOWHANDLE_SBP__ 1 'Classes/ActiveBasic/Windows/WindowHandle.sbp 5 2 6 3 #ifdef _WIN64 … … 16 13 #endif 17 14 Declare Function _System_GetParent Lib "user32" Alias "GetParent" (hWnd As HWND) As HWND 18 Declare Function _System_SetParent Lib "user32" Alias "SetParent" (hWnd As HWND ) As HWND15 Declare Function _System_SetParent Lib "user32" Alias "SetParent" (hWnd As HWND, hwndParent As HWND) As HWND 19 16 Declare Function _System_GetMenu Lib "user32" Alias "GetMenu" (hWnd As HWND) As HMENU 20 Declare Function _System_SetMenu Lib "user32" Alias "SetMenu" (hWnd As HWND ) As HMENU17 Declare Function _System_SetMenu Lib "user32" Alias "SetMenu" (hWnd As HWND, hmenu As HMENU) As HMENU 21 18 Declare Function _System_InvalidateRect Lib "user32" Alias "InvalidateRect" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL 22 19 Declare Function _System_InvalidateRgn Lib "user32" Alias "InvalidateRgn" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL … … 33 30 Declare Function _System_GetWindowRect Lib "user32" Alias "DrawMenuBar" (hWnd As HWND, ByRef Rect As RECT) As BOOL 34 31 Declare Function _System_IsWindow Lib "user32" Alias "IsWindow" (hWnd As HWND) As BOOL 35 Declare Function _System_Is iconic Lib "user32" Alias "Isiconic" (hWnd As HWND) As BOOL32 Declare Function _System_IsIconic Lib "user32" Alias "IsIconic" (hWnd As HWND) As BOOL 36 33 Declare Function _System_GetClientRect Lib "user32" Alias "GetClientRect" (hWnd As HWND, ByRef Rect As RECT) As BOOL 37 34 Declare Function _System_GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE … … 41 38 Declare Function _System_SetScrollInfo Lib "user32" Alias "SetScrollInfo" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL 42 39 Declare Function _System_GetSystemMenu Lib "user32" Alias "GetSystemMenu" (hWnd As HWND, bRevert As BOOL) As HMENU 43 Declare Function _System_GetDC Lib "gdi32" Alias "GetDC" (hwnd As HWND) As HDC 44 Declare Function _System_ReleaseDC Lib "gdi32" Alias "ReleaseDC" (hwnd As HWND, hdc As HDC) As BOOL 40 Declare Function _System_GetDC Lib "user32" Alias "GetDC" (hwnd As HWND) As HDC 41 Declare Function _System_GetDCEx Lib "user32" Alias "GetDCEx" (hwnd As HWND, hrgnClip As HRGN, flags As DWord) As HDC 42 Declare Function _System_GetWindowDC Lib "user32" Alias "GetWindowDC" (hwnd As HWND) As HDC 43 Declare Function _System_ReleaseDC Lib "user32" Alias "ReleaseDC" (hwnd As HWND, hdc As HDC) As BOOL 44 Declare Function _System_SendMessage Lib "user32" Alias _FuncName_SendMessage (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As LRESULT 45 Declare Function _System_PostMessage Lib "user32" Alias _FuncName_PostMessage (hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As LRESULT 46 Declare Function _System_SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hwnd As HWND, id As DWord, msg As DWord, wp As WPARAM, lp As LPARAM) As LRESULT 47 Declare Function _System_GetWindowThreadProcessId Lib "user32" Alias "GetWindowThreadProcessId" (hwnd As HWND, pdwProcessId As *DWord) As DWord 48 49 Namespace ActiveBasic 50 Namespace Windows 45 51 46 52 Class WindowHandle … … 55 61 End Sub 56 62 57 Sub WindowHandle(wnd As WindowHandle)58 hwnd = wnd.hwnd59 End Sub60 61 Sub Operator =(hwndNew As HWND)62 hwnd = hwndNew63 End Sub64 65 63 Const Function HWnd() As HWND 66 64 Return hwnd … … 78 76 Return _System_BeginPaint(hwnd, ps) 79 77 End Function 80 78 /* 81 79 Const Function ChildFromPoint(x As Long, y As Long) As WindowHandle 82 80 Return New WindowHandle(ChildWindowFromPoint(hwnd, x, y)) … … 86 84 Return New WindowHandle(ChildWindowFromPointEx(hwnd, x, y, flags)) 87 85 End Function 88 86 */ 89 87 Const Function ClientToScreen(ByRef pt As POINTAPI) As Boolean 90 88 Return _System_ClientToScreen(hwnd, pt) As Boolean … … 101 99 102 100 Function CreateCaret(hbmp As HBITMAP, width As Long, height As Long) As Boolean 103 Return _System_CreateCaret(hwnd, hbmp, width, he giht) As Boolean101 Return _System_CreateCaret(hwnd, hbmp, width, height) As Boolean 104 102 End Function 105 103 … … 111 109 Return _System_DrawMenuBar(hwnd) As Boolean 112 110 End Function 113 111 /* 114 112 Function EnableScrollBar(SBFlags As DWord, arrows As DWord) As Boolean 115 113 Return EnableScrollBar(hwnd, SBFlags, arrows) As Boolean 116 114 End Function 117 115 */ 118 116 Function Enable(enable As Boolean) As Boolean 119 117 Return EnableWindow(hwnd, enable) As Boolean … … 137 135 138 136 Const Function GetClassName(className As PTSTR, maxCount As Long) As Long 139 Return _System_GetClassName( className, maxCount)137 Return _System_GetClassName(hwnd, className, maxCount) 140 138 End Function 141 139 … … 143 141 Return _System_GetClientRect(hwnd, rc) As Boolean 144 142 End Function 145 143 /* 146 144 Const Function GetContextHelpId() As DWord 147 145 Return GetWindowContextHelpId(hwnd) 148 146 End Function 149 147 */ 150 148 Function GetDC() As HDC 151 149 Return _System_GetDC(hwnd) … … 153 151 154 152 Function GetDCEx(hrgnClip As HRGN, flags As DWord) As HDC 155 Return GetDCEx(hwnd, hrgnClip, flags)156 End Function 157 153 Return _System_GetDCEx(hwnd, hrgnClip, flags) 154 End Function 155 /* 158 156 Const Function GetDlgCtrlID() As Long 159 157 Return GetDlgCtrlID(hwnd) … … 167 165 Return GetDlgItemText(hwnd, idDlgItem, ps, maxCount) 168 166 End Function 169 167 */ 170 168 Const Function GetMenu() As HMENU 171 169 Return _System_GetMenu(hwnd) 172 170 End Function 173 171 /* 174 172 Const Function GetParent() As WindowHandle 175 173 Return New WindowHandle(_System_GetParent(hwnd)) 176 174 End Function 177 175 */ 178 176 Const Function GetProp(str As String) As HANDLE 179 177 Return _System_GetProp(hwnd, ToTCStr(str)) … … 191 189 Return _System_GetScrollInfo(hwnd, fnBar, si) As Boolean 192 190 End Function 193 191 /* 194 192 Const Function GetSystemMenu(revert As Boolean) As HMENU 195 193 Return GetSystemMenu(hwnd, revert) … … 207 205 Return GetWindow(hwnd, cmd) 208 206 End Function 209 207 */ 210 208 Function GetWindowDC() As HDC 211 Return GetWindowDC(hwnd)209 Return _System_GetWindowDC(hwnd) 212 210 End Function 213 211 … … 215 213 Return _System_GetWindowLongPtr(hwnd, index) 216 214 End Function 217 215 /* 218 216 Const Function GetWindowPlasement(ByRef wndpl As WINDOWPLACEMENT) As Boolean 219 217 Return GetWindowPlasement(hwnd, wndpl) As Boolean 220 218 End Function 221 219 */ 222 220 Const Function GetWindowRect(ByRef rc As RECT) As Boolean 223 Return _System_GetWindowRect( rc) As Boolean221 Return _System_GetWindowRect(hwnd, rc) As Boolean 224 222 End Function 225 223 226 224 Const Function GetText(ps As PTSTR, maxCount As Long) As Boolean 227 Return GetWindowText( ps, maxCount) As Boolean225 Return GetWindowText(hwnd, ps, maxCount) As Boolean 228 226 End Function 229 227 … … 233 231 234 232 Const Function GetWindowThreadId() As DWord 235 Return GetWindowProcessThreadId(hwnd, 0)236 End Function 237 238 Const Function GetWindow ProcessThreadId(ByRef processId As DWord) As DWord239 Return GetWindowProcessThreadId(hwnd, VarPtr(processId))233 Return _System_GetWindowThreadProcessId(hwnd, 0) 234 End Function 235 236 Const Function GetWindowThreadProcessId(ByRef processId As DWord) As DWord 237 Return _System_GetWindowThreadProcessId(hwnd, VarPtr(processId)) 240 238 End Function 241 239 … … 267 265 Return _System_InvalidateRect(hwnd, ByVal 0, TRUE) As Boolean 268 266 End Function 269 267 /* 270 268 Const Function IsChild(hwnd As HWND) As Boolean 271 269 Return IsChild(This.hwnd, hwnd) As Boolean … … 275 273 Return IsDialogMessage(hwnd, msg) As Boolean 276 274 End Function 277 275 */ 278 276 Const Function IsIconic() As Boolean 279 277 Return _System_IsIconic(hwnd) As Boolean … … 295 293 Return IsWindowVisible(hwnd) As Boolean 296 294 End Function 297 295 /* 298 296 Const Function IsZoomed() As Boolean 299 297 Return IsZoomed(hwnd) As Boolean … … 303 301 Return KillTimer(idEvent) As Boolean 304 302 End Function 305 303 */ 306 304 Function LockUpdate() As Boolean 307 305 Return LockWindowUpdate(hwnd) As Boolean 308 306 End Function 309 307 /* 310 308 Function MapPoints(hwndTo As HWND, pPoints As *POINTAPI, cPoints As DWord) As Long 311 309 Return MapWindowPoints(hwnd, hwndTo, pPoints, cPoints) … … 327 325 Return MessageBox(hwnd, text, 0, MB_OK) 328 326 End Function 329 327 */ 330 328 Function Move(x As Long, y As Long, width As Long, height As Long, repaint As Boolean) As Boolean 331 329 Return MoveWindow(hwnd, x, y, width, height, repaint) As Boolean … … 336 334 End Function 337 335 338 Function Move(ByRef rc As RECT, rep eaint As Boolean) As Boolean336 Function Move(ByRef rc As RECT, repaint As Boolean) As Boolean 339 337 With rc 340 338 Return MoveWindow(hwnd, .left, .top, .right - .left, .bottom - .top, repaint) As Boolean … … 347 345 End With 348 346 End Function 349 347 /* 350 348 Function OpenClipboard() As Boolean 351 349 Return OpenClipboard(hwnd) As Boolean … … 355 353 Return OpenIcon(hwnd) As Boolean 356 354 End Function 357 355 */ 358 356 Function PostMessage(msg As DWord, wp As WPARAM, lp As LPARAM) As Boolean 359 Return PostMessage(hwnd, msg, wp, lp) As Boolean357 Return _System_PostMessage(hwnd, msg, wp, lp) As Boolean 360 358 End Function 361 359 362 360 Function PostMessage(msg As DWord) As Boolean 363 Return PostMessage(hwnd, msg, 0, 0) As Boolean364 End Function 365 361 Return _System_PostMessage(hwnd, msg, 0, 0) As Boolean 362 End Function 363 /* 366 364 Function RedrawWindow(ByRef rcUpdate As RECT, hrgnUpdate As HRGN, flags As DWord) As Boolean 367 365 Return RedrawWindow(hwnd, rcUpdatre, hrgnUpdate, flags) As Boolean 368 366 End Function 369 367 */ 370 368 Function ReleaseDC(hdc As HDC) As Boolean 371 369 Return _System_ReleaseDC(hwnd, hdc) As Boolean 372 370 End Function 373 371 /* 374 372 Function RemoveProp(str As String) As HANDLE 375 373 Return RemoveProp(hwnd, ToTCStr(str)) … … 383 381 Return RemoveProp(hwnd, atom As ULONG_PTR As PCTSTR) 384 382 End Function 385 383 */ 386 384 Const Function ScreenToClient(ByRef pt As POINTAPI) As Boolean 387 385 Return _System_ScreenToClient(hwnd, pt) As Boolean … … 398 396 399 397 Function SendDlgItemMessage(idDlgItem As Long, msg As DWord, wp As WPARAM, lp As LPARAM) As LRESULT 400 Return SendDlgItemMessage(hwnd, idDlgItem, wp, lp)398 Return _System_SendDlgItemMessage(hwnd, idDlgItem, msg, wp, lp) 401 399 End Function 402 400 403 401 Function SendDlgItemMessage(idDlgItem As Long, msg As DWord) As LRESULT 404 Return SendDlgItemMessage(hwnd, idDlgItem, 0, 0)402 Return _System_SendDlgItemMessage(hwnd, idDlgItem, msg, 0, 0) 405 403 End Function 406 404 407 405 Function SendMessage(msg As DWord, wp As WPARAM, lp As LPARAM) As LRESULT 408 Return SendMessage(hwnd, msg, wp, lp)406 Return _System_SendMessage(hwnd, msg, wp, lp) 409 407 End Function 410 408 411 409 Function SendMessage(msg As DWord) As LRESULT 412 Return SendMessage(hwnd, msg, 0, 0)413 End Function 414 410 Return _System_SendMessage(hwnd, msg, 0, 0) 411 End Function 412 /* 415 413 Function SetActiveWindow() As WindowHandle 416 414 Return New WindowHandle(SetActiveWindow(hwnd)) … … 424 422 Return New WindowHandle(SetCapture(hwnd)) 425 423 End Function 426 424 */ 427 425 Function SetClassLongPtr(index As Long, newLong As LONG_PTR) As LONG_PTR 428 426 Return _System_SetClassLongPtr(hwnd, index, newLong) 429 427 End Function 430 428 /* 431 429 Function SetFocus() As WindowHandle 432 430 Return New WindowHandle(SetFocus(hwnd)) 433 431 End Function 434 432 */ 435 433 Function SetForeground() As Boolean 436 434 Return SetForegroundWindow(hwnd) As Boolean … … 454 452 455 453 Function SetProp(atom As ATOM, hData As HANDLE) As Boolean 456 Return SetProp((atom As ULONG_PTR) As PCTSTR, hData) As Boolean454 Return This.SetProp((atom As ULONG_PTR) As PCTSTR, hData) As Boolean 457 455 End Function 458 456 … … 464 462 Return _System_SetScrollInfo(hwnd, fnBar, si, TRUE) As Boolean 465 463 End Function 466 464 /* 467 465 Function SetTimer(idEvent As ULONG_PTR, elapse As DWord, timerFunc As TIMERPROC) As ULONG_PTR 468 466 Return SetTmer(hwnd, idEvent, elapse, timerFunc) … … 470 468 471 469 Function SetTimer(idEvent As ULONG_PTR, elapse As DWord) As ULONG_PTR 472 Return SetTmer(hwnd, idEvent, elapse, 0)470 Return This.SetTmer(hwnd, idEvent, elapse, 0) 473 471 End Function 474 472 … … 476 474 Return SetContextHelpId(hwnd, contextHelpId) As Boolean 477 475 End Function 478 476 */ 479 477 Function SetWindowLongPtr(index As Long, newLong As LONG_PTR) As LONG_PTR 480 478 Return _System_SetWindowLongPtr(hwnd, index, newLong) 481 479 End Function 482 480 /* 483 481 Function SetWindowPlacement(ByRef wndpl As WINDOWPLACEMENT) As Boolean 484 482 Return SetWindowPlacement(hwnd, wndpl) As Boolean 485 483 End Function 486 484 */ 487 485 Function SetPos(hwndInsertAfter As HWND, x As Long, y As Long, cx As Long, cy As Long, flags As DWord) As Boolean 488 486 Return SetWindowPos(hwnd, hwndInsertAfter, x, y, cx, cy, flags) As Boolean … … 514 512 Return _System_ShowCaret(hwnd) As Boolean 515 513 End Function 516 514 /* 517 515 Function ShowScrollBar(bar As DWord, show As Boolean) As Boolean 518 516 Return ShowScrollBar(hwnd, bar, show) As Boolean … … 522 520 Return ShowScrollBar(hwnd, bar, TRUE) As Boolean 523 521 End Function 524 522 */ 525 523 Function Show(cmdShow As DWord) As Boolean 526 524 Return ShowWindow(hwnd, cmdShow) As Boolean … … 556 554 Return _System_GetWindowLongPtr(hwnd, GWL_STYLE) As DWord 557 555 End Function 558 556 #ifdef _UNDEF 559 557 Const Function GetWndProc() As WNDPROC 560 Return _System_GetWindowLongPtr(hwnd, GWLP_ HINSTANCE) As WNDPROC561 End Function 562 558 Return _System_GetWindowLongPtr(hwnd, GWLP_WNDPROC) As WNDPROC 559 End Function 560 #endif 563 561 Const Function GetInstance() As HINSTANCE 564 562 Return _System_GetWindowLongPtr(hwnd, GWLP_HINSTANCE) As HINSTANCE … … 576 574 Return _System_SetWindowLongPtr(hwnd, GWL_STYLE, style) As DWord 577 575 End Function 578 576 #ifdef _UNDEF 579 577 Function SetWndProc(wndProc As WNDPROC) As WNDPROC 580 Return _System_SetWindowLongPt R(hwnd, GWLP_WNDPROC, wndProc As WNDPROC) As WNDPROC581 End Function 582 578 Return _System_SetWindowLongPtr(hwnd, GWLP_WNDPROC, wndProc As WNDPROC) As WNDPROC 579 End Function 580 #endif 583 581 Function SetUserData(value As LONG_PTR) As LONG_PTR 584 Return _System_SetWindowLongPtr( value As LONG_PTR)582 Return _System_SetWindowLongPtr(hwnd, GWLP_USERDATA, value As LONG_PTR) 585 583 End Function 586 584 … … 592 590 Return rc 593 591 End Function 594 592 #ifdef _UNDEF 595 593 Sub ClientRect(ByRef rc As RECT) 596 594 Dim hasMenu As BOOL 597 If IsChild() = False And IsMenu() <> FalseThen595 If IsChild() = False And GetMenu() <> 0 Then 598 596 hasMenu = TRUE 599 597 Else … … 601 599 End If 602 600 AdjustWindowRectEx(rc, GetStyle(), hasMenu, GetExStyle()) 603 MoveWindow(rc) ' WindowRect = rc604 End Sub 605 601 This.Move(rc) ' WindowRect = rc 602 End Sub 603 #endif 606 604 Const Function WindowRect() As RECT 607 605 Dim rc As RECT … … 611 609 612 610 Sub WindowRect(ByRef rc As RECT) 613 MoveWindow(rc)614 End Sub 615 611 This.Move(rc) 612 End Sub 613 #ifdef _UNDEF 616 614 Const Function ContextHelpID() As DWord 617 615 Return GetContextHelpId(hwnd) … … 634 632 Return w 635 633 End Function 636 634 #endif 637 635 Const Function ExStyle() As DWord 638 636 Return _System_GetWindowLongPtr(hwnd, GWL_EXSTYLE) As DWord … … 640 638 641 639 Sub ExStyle(newExStyle As DWord) 642 _System_SetWindowLongPtr(hwnd, GWL P_EXSTYLE, newExStyle)640 _System_SetWindowLongPtr(hwnd, GWL_EXSTYLE, newExStyle) 643 641 End Sub 644 642 … … 648 646 649 647 Sub Style(newStyle As DWord) 650 _System_SetWindowLongPtr(hwnd, GWL P_STYLE, newStyle)648 _System_SetWindowLongPtr(hwnd, GWL_STYLE, newStyle) 651 649 End Sub 652 650 … … 660 658 661 659 Const Function Font() As HFONT 662 Return SendMessage(hwnd, WM_GETFONT, 0, 0) As HFONT660 Return _System_SendMessage(hwnd, WM_GETFONT, 0, 0) As HFONT 663 661 End Function 664 662 665 663 Sub Font(hfntNew As HFONT) 666 SendMessage(hwnd, WM_SETFONT, hfntNew As WPARAM, TRUE)664 _System_SendMessage(hwnd, WM_SETFONT, hfntNew As WPARAM, TRUE) 667 665 End Sub 668 666 … … 680 678 681 679 Const Function Minimized() As Boolean 682 Return IsIconic(hwnd) As Boolean680 Return _System_IsIconic(hwnd) As Boolean 683 681 End Function 684 682 … … 705 703 End Sub 706 704 707 Const Function ProcessI D() As DWord708 GetWindow ProcessThreadId(ProcessID)709 End Function 710 711 Const Function ThreadI D() As DWord712 Return GetWindow ProcessThreadId(ByVal 0)705 Const Function ProcessId() As DWord 706 GetWindowThreadProcessId(ProcessId) 707 End Function 708 709 Const Function ThreadId() As DWord 710 Return GetWindowThreadProcessId(ByVal 0) 713 711 End Function 714 712 … … 759 757 Return GetWindowTextLength(hwnd) 760 758 End Function 761 759 #ifdef _UNDEF 762 760 Const Function UserData() As LONG_PTR 763 761 Return _System_GetWindowLongPtr(hwnd, GWLP_USERDATA) … … 767 765 _System_SetWindowLongPtr(hwnd, GWLP_USERDATA, newValue) 768 766 End Sub 769 767 #endif 770 768 Const Function Visible() As Boolean 771 Return Is Visible(hwnd) As Boolean769 Return IsWindowVisible(hwnd) As Boolean 772 770 End Function 773 771 … … 779 777 EndIf 780 778 End Sub 781 779 #ifdef _UNDEF 782 780 Const Function WindowPlacement() As WINDOWPLACEMENT 783 781 WindowPlacement.length = Len(WindowPlacement) … … 796 794 _System_SetWindowLongPtr(hwnd, GWLP_WNDPROC, newWndProc As LONG_PTR) 797 795 End Sub 798 796 #endif 799 797 Protected 800 798 Sub SetHWnd(hwndNew As HWND) … … 803 801 End Class 804 802 805 #endif '__WINDOWS_WINDOWHANDLE_SBP__ 803 End Namespace 'Widnows 804 End Namespace 'ActiveBasic -
trunk/Include/Classes/ActiveBasic/Windows/Windows.ab
r269 r303 27 27 Return GetFolderPath(0, folder) 28 28 End Function 29 /* 30 Function MessageBox(hw As HWND, s As PCSTR, t As PCSTR, b As DWord) As DWord 31 Return MessageBoxA(hw, s, t, b) 32 End Function 33 34 Function MessageBox(hw As HWND, s As PCWSTR, t As PCWSTR, b As DWord) As DWord 35 Return MessageBoxW(hw, s, t, b) 36 End Function 37 */ 38 39 Namespace Detail 40 Function _System_MessageBox(hw As HWND, s As PCSTR, t As PCSTR, b As DWord) As DWord 41 Return MessageBoxA(hw, s, t, b) 42 End Function 43 44 Function _System_MessageBox(hw As HWND, s As PCWSTR, t As PCWSTR, b As DWord) As DWord 45 Return MessageBoxW(hw, s, t, b) 46 End Function 47 End Namespace 29 48 30 49 End Namespace 'Widnows -
trunk/Include/Classes/System/Drawing/Color.ab
r282 r303 69 69 Exit Sub ' パレットインデックス指定は無効 70 70 Else 71 argb = Color_MakeARGB(255, GetRValue(rgb), GetGValue(rgb), GetBValue(rgb))71 argb = MakeARGB(255, GetRValue(rgb) As Byte, GetGValue(rgb) As Byte, GetBValue(rgb) As Byte) 72 72 End If 73 73 End Sub … … 82 82 83 83 Static Function FromArgb(argb As ARGB) As Color 84 Dim c As Color(argb) 85 Rteurn c 84 Return New Color(argb) 86 85 End Function 87 86 88 87 Static Function FromArgb(a As Byte, base As Color) As Color 89 Dim c As Color(a, base.R, base.G, base.B) 90 Return c 88 Return New Color(a, base.R, base.G, base.B) 91 89 End Function 92 90 93 91 Static Function FromArgb(r As Byte, g As Byte, b As Byte) As Color 94 Dim c As Color(r, g, b) 95 Return c 92 Return New Color(r, g, b) 96 93 End Function 97 94 98 95 Static Function FromArgb(a As Byte, r As Byte, g As Byte, b As Byte) As Color 99 Dim c As Color(a, r, g, b) 100 Return c 96 Return New Color(a, r, g, b) 101 97 End Function 102 98 … … 119 115 d = max - min 120 116 If g = max Then 121 Return ( b - r) As Double / d * 60 + 120117 Return ((b - r) As Double / d * 60.0 + 120.0) As Single 122 118 ElseIf b = max Then 123 Return ( r - g) As Double / d * 60 + 240119 Return ((r - g) As Double / d * 60 + 240) As Single 124 120 ElseIf g < b Then 125 Return ( g - b) As Double / d * 60 + 360121 Return ((g - b) As Double / d * 60 + 360) As Single 126 122 Else 127 Return ( g - b) As Double / d * 60123 Return ((g - b) As Double / d * 60) As Single 128 124 EndIf 129 125 End Function 130 126 131 127 Function GetSaturation() As Single 132 Dim max As Long, min As Long133 128 Dim r = R 134 129 Dim g = G 135 130 Dim b = B 136 max = System.Math.Max(System.Math.Max(r, g), b)137 min = System.Math.Min(System.Math.Min(r, g), b)131 Dim max = System.Math.Max(System.Math.Max(r, g), b) As Long 132 Dim min = System.Math.Min(System.Math.Min(r, g), b) As Long 138 133 Return (max - min) / max 139 134 End Function 140 135 141 136 Function GetBrightness() As Single 142 Dim max As Long143 137 Dim r = R 144 138 Dim g = G 145 139 Dim b = B 146 max = System.Math.Max(System.Math.Max(r, g), b)140 Dim max = System.Math.Max(System.Math.Max(r, g), b) 147 141 Return max * (1 / 255) 148 142 End Function -
trunk/Include/Classes/System/Drawing/Point.ab
r223 r303 75 75 76 76 Static Function Add(pt1 As Point, pt2 As Point) As Point 77 Dim ret As Point(pt1.x + pt2.x, pt1.y + pt2.y) 78 Return ret 77 Return New Point(pt1.x + pt2.x, pt1.y + pt2.y) 79 78 End Function 80 79 81 80 Static Function Add(pt As Point, sz As Size) As Point 82 Dim ret As Point(pt.x + sz.Width, pt.y + sz.Height) 83 Return ret 81 Return New Point(pt.x + sz.Width, pt.y + sz.Height) 84 82 End Function 85 83 86 84 Function Offset(pt As Point) As Point 87 Dim ret As Point(x + pt.x, y + pt.y) 88 Return ret 85 Return New Point(x + pt.x, y + pt.y) 89 86 End Function 90 87 … … 95 92 96 93 Static Function Substract(pt1 As Point, pt2 As Point) As Point 97 Dim ret As Point(pt1.x - pt2.x, pt1.y - pt2.y) 98 Return ret 94 Return New Point(pt1.x - pt2.x, pt1.y - pt2.y) 99 95 End Function 100 96 101 97 Static Function Substract(pt As Point, sz As Size) As Point 102 Dim ret As Point(pt.x - sz.Width, pt.y - sz.Height) 103 Return ret 98 Return New Point(pt.x - sz.Width, pt.y - sz.Height) 104 99 End Function 105 100 … … 113 108 114 109 Static Function Ceiling(ptf As PointF) As Point 115 Dim pt As Size(Math.Ceiling(ptf.width), Math.Ceiling(ptf.height)) 116 Return pt 110 Return New Point(System.Math.Ceiling(ptf.X) As Long, System.Math.Ceiling(ptf.Y) As Long) 117 111 End Function 118 112 119 113 Static Function Round(ptf As PointF) As Point 120 Dim pt As Point(Math.Round(ptf.width), Math.Round(ptf.height)) 121 Return pt 114 Return New Point(System.Math.Round(ptf.X) As Long, System.Math.Round(ptf.Y) As Long) 122 115 End Function 123 116 124 117 Static Function Truncate(ptf As PointF) As Point 125 Dim pt As Point(Math.Truncate(ptf.width), Math.Truncate(ptf.height)) 126 Return pt 118 Return New Point(System.Math.Truncate(ptf.X) As Long, System.Math.Truncate(ptf.Y) As Long) 127 119 End Function 128 120 129 121 Function Operator () As PointF 130 Return ReturnPointF(X, Y)122 Return New PointF(X, Y) 131 123 End Function 132 124 -
trunk/Include/Classes/System/Drawing/PointF.ab
r212 r303 48 48 Return x = 0 And y = 0 49 49 End Function 50 /* 51 Sub Operator = (ByRef pt As PointF) 52 x = pt.x 53 y = pt.y 54 End Sub 55 */ 50 56 51 Function Operator + (pt As PointF) As PointF 57 52 Return Add(This, pt) -
trunk/Include/Classes/System/Drawing/Rectangle.ab
r223 r303 110 110 End Function 111 111 112 Function Operator == (rc As Rectangle) 112 Function Operator == (rc As Rectangle) As Boolean 113 113 Return Equals(rc) 114 114 End Function 115 115 116 Function Operator <> (rc As Rectangle) 117 Return Not Equals(rc)116 Function Operator <> (rc As Rectangle) As Boolean 117 Return (Not Equals(rc)) 118 118 End Function 119 119 … … 147 147 148 148 Sub Inflate(dx As Long, dy As Long) 149 X-= dx150 Y-= dy151 Width += dx + dx152 Height += dy + dy149 x -= dx 150 y -= dy 151 width += dx + dx 152 height += dy + dy 153 153 End Sub 154 154 … … 158 158 159 159 Static Function Inflate(rc As Rectangle, x As Long, y As Long) As Rectangle 160 Inflate = New Rectangle(rc )160 Inflate = New Rectangle(rc.X, rc.Y, rc.Width, rc.Height) 161 161 Inflate.Inflate(x, y) 162 162 End Function 163 163 164 164 Sub Intersect(rect As Rectangle) 165 This = Rectangle.Intersect(This, rect) 165 Dim r = Rectangle.Intersect(This, rect) 166 x = r.x 167 y = r.y 168 width = r.width 169 height = r.height 166 170 End Sub 167 171 168 172 Static Function Intersect(a As Rectangle, ByRef b As Rectangle) As Rectangle 169 173 Dim right As Long, bottom As Long, left As Long, top As Long 170 right = Math.Min(a.Right, b.Right)171 bottom = Math.Min(a.Bottom, b.Bottom)172 left = Math.Min(a.Left, b.Left)173 top = Math.Min(a.Top, b.Top)174 right = System.Math.Min(a.Right, b.Right) 175 bottom = System.Math.Min(a.Bottom, b.Bottom) 176 left = System.Math.Min(a.Left, b.Left) 177 top = System.Math.Min(a.Top, b.Top) 174 178 Return Rectangle.FromLTRB(left, top, right, bottom) 175 179 End Function … … 184 188 Static Function Union(a As Rectangle, b As Rectangle) As Rectangle 185 189 Dim right As Long, bottom As Long, left As Long, top As Long 186 right = Math.Max(a.Right(), b.Right())187 bottom = Math.Max(a.Bottom(), b.Bottom())188 left = Math.Max(a.Left(), b.Left())189 top = Math.Max(a.Top(), b.Top())190 right = System.Math.Max(a.Right(), b.Right()) 191 bottom = System.Math.Max(a.Bottom(), b.Bottom()) 192 left = System.Math.Max(a.Left(), b.Left()) 193 top = System.Math.Max(a.Top(), b.Top()) 190 194 Return FromLTRB(left, top, right, bottom) 191 195 End Function … … 196 200 197 201 Sub Offset(dx As Long, dy As Long) 198 X+= dx199 Y+= dy202 x += dx 203 y += dy 200 204 End Sub 201 205 202 206 Static Function Ceiling(rcf As RectangleF) As Rectangle 203 207 Dim r As Rectangle( 204 Math.Ceiling(rcf.X),205 Math.Ceiling(rcf.Y),206 Math.Ceiling(rcf.Width),207 Math.Ceiling(rcf.Height))208 System.Math.Ceiling(rcf.X) As Long, 209 System.Math.Ceiling(rcf.Y) As Long, 210 System.Math.Ceiling(rcf.Width) As Long, 211 System.Math.Ceiling(rcf.Height) As Long) 208 212 Return r 209 213 End Function … … 211 215 Static Function Round(rcf As RectangleF) As Rectangle 212 216 Dim r As Rectangle( 213 Math.Round(rcf.X),214 Math.Round(rcf.Y),215 Math.Round(rcf.Width),216 Math.Round(rcf.Height))217 System.Math.Round(rcf.X) As Long, 218 System.Math.Round(rcf.Y) As Long, 219 System.Math.Round(rcf.Width) As Long, 220 System.Math.Round(rcf.Height) As Long) 217 221 Return r 218 222 End Function … … 220 224 Static Function Truncate(rcf As RectangleF) As Rectangle 221 225 Dim r As Rectangle( 222 Math.Truncate(rcf.X),223 Math.Truncate(rcf.Y),224 Math.Truncate(rcf.Width),225 Math.Truncate(rcf.Height))226 System.Math.Truncate(rcf.X) As Long, 227 System.Math.Truncate(rcf.Y) As Long, 228 System.Math.Truncate(rcf.Width) As Long, 229 System.Math.Truncate(rcf.Height) As Long) 226 230 Return r 227 231 End Function -
trunk/Include/Classes/System/Drawing/RectangleF.ab
r212 r303 106 106 107 107 Function IsEmpty() As Boolean 108 If Width <= 0 Or Height <= 0 Then 109 IsEmpty = _System_TRUE 110 Else 111 IsEmpty = _System_FALSE 112 End If 113 End Function 114 /* 115 Function Operator =(ByRef rc As RectangleF) 116 With rc 117 x = .x 118 y = .y 119 width = .width 120 height = .height 121 End With 122 End Function 123 */ 124 Function Operator ==(rc As RectangleF) 108 Return Width <= 0 Or Height <= 0 109 End Function 110 111 Function Operator ==(rc As RectangleF) As Boolean 125 112 Return Equals(rc) 126 113 End Function 127 114 128 Function Operator <>(rc As RectangleF) 115 Function Operator <>(rc As RectangleF) As Boolean 129 116 Return Not Equals(rc) 130 117 End Function 131 118 132 119 Function Equals(rc As RectangleF) As Boolean 133 If X = rc.X And Y = rc.Y And Width = rc.Width And Height = rc.Height Then 134 Return True 135 Else 136 Return False 137 End If 120 Equals = (X = rc.X And Y = rc.Y And Width = rc.Width And Height = rc.Height) 138 121 End Function 139 122 … … 147 130 148 131 Function Contains(x As Single, y As Single) As Boolean 149 If x >= X And x < X + Width And y >= Y And y < Y + Height Then 150 Contains = _System_TRUE 151 Else 152 Contains = _System_FALSE 153 End If 132 Contains = (x >= X And x < X + Width And y >= Y And y < Y + Height) 154 133 End Function 155 134 … … 159 138 160 139 Function Contains(rc As RectangleF) As Boolean 161 If X <= rc.X And rc.Right <= Right And Y <= rc.Y And rc.Bottom <= Bottom Then 162 Return True 163 Else 164 Return False 165 End If 140 Contains = (X <= rc.X And rc.Right <= Right And Y <= rc.Y And rc.Bottom <= Bottom) 166 141 End Function 167 142 168 143 Sub Inflate(dx As Single, dy As Single) 169 X-= dx170 Y-= dy171 Width += dx + dx172 Height += dy + dy144 x -= dx 145 y -= dy 146 width += dx + dx 147 height += dy + dy 173 148 End Sub 174 149 … … 178 153 179 154 Static Function Inflate(rc As RectangleF, x As Single, y As Single) As RectangleF 180 Inflate = New Rectangle (rc)155 Inflate = New RectangleF(rc.X, rc.Y, rc.Width, rc.Height) 181 156 Inflate.Inflate(x, y) 182 157 End Function 183 158 184 159 Sub Intersect(rect As RectangleF) 185 This = RectangleF.Intersect(This, rect) 160 Dim r = RectangleF.Intersect(This, rect) 161 x = r.x 162 y = r.y 163 width = r.width 164 height = r.height 186 165 End Sub 187 166 188 167 Static Function Intersect(a As RectangleF, b As RectangleF) As RectangleF 189 168 Dim right As Single, bottom As Single, left As Single, top As Single 190 right = Math.Min(a.Right, b.Right)191 bottom = Math.Min(a.Bottom, b.Bottom)192 left = Math.Min(a.Left, b.Left)193 top = Math.Min(a.Top, b.Top)169 right = System.Math.Min(a.Right, b.Right) 170 bottom = System.Math.Min(a.Bottom, b.Bottom) 171 left = System.Math.Min(a.Left, b.Left) 172 top = System.Math.Min(a.Top, b.Top) 194 173 Return FromLTRB(left, top, right, bottom) 195 174 End Function … … 200 179 Right > rc.Left And _ 201 180 Bottom > rc.Top Then 202 IntersectsWith = _System_TRUE181 IntersectsWith = True 203 182 Else 204 IntersectsWith = _System_FALSE183 IntersectsWith = False 205 184 End If 206 185 End Function … … 208 187 Static Function Union(a As RectangleF, b As RectangleF) As RectangleF 209 188 Dim right As Single, bottom As Single, left As Single, top As Single 210 right = Math.Max(a.Right(), b.Right())211 bottom = Math.Max(a.Bottom(), b.Bottom())212 left = Math.Max(a.Left(), b.Left())213 top = Math.Max(a.Top(), b.Top())189 right = System.Math.Max(a.Right(), b.Right()) 190 bottom = System.Math.Max(a.Bottom(), b.Bottom()) 191 left = System.Math.Max(a.Left(), b.Left()) 192 top = System.Math.Max(a.Top(), b.Top()) 214 193 Return FromLTRB(left, top, right, bottom) 215 194 End Function … … 220 199 221 200 Sub Offset(dx As Single, dy As Single) 222 X+= dx223 Y+= dy201 x += dx 202 y += dy 224 203 End Sub 225 204 -
trunk/Include/Classes/System/Drawing/Size.ab
r223 r303 70 70 Function Equals(sz As Size) As Boolean 71 71 If width = sz.width And height = sz.height Then 72 Equals = _System_TRUE72 Equals = True 73 73 Else 74 Equals = _System_FALSE74 Equals = False 75 75 End If 76 76 End Function … … 93 93 94 94 Static Function Ceiling(szf As SizeF) As Size 95 Dim sz As Size( Math.Ceiling(szf.width), Math.Ceiling(szf.height))95 Dim sz As Size(System.Math.Ceiling(szf.Width) As Long, System.Math.Ceiling(szf.Height) As Long) 96 96 Return sz 97 97 End Function 98 98 99 99 Static Function Round(szf As SizeF) As Size 100 Dim sz As Size( Math.Round(szf.width), Math.Round(szf.height))100 Dim sz As Size(System.Math.Round(szf.Width) As Long, System.Math.Round(szf.Height) As Long) 101 101 Return sz 102 102 End Function 103 103 104 104 Static Function Truncate(szf As SizeF) As Size 105 Dim sz As Size( Math.Truncate(szf.width), Math.Truncate(szf.height))105 Dim sz As Size(System.Math.Truncate(szf.Width) As Long, System.Math.Truncate(szf.Height) As Long) 106 106 Return sz 107 107 End Function -
trunk/Include/Classes/System/Drawing/SizeF.ab
r223 r303 68 68 69 69 Override Function GetHashCode() As Long 70 Return VarPtr(GetDWord(width)) Xor _System_BSwap(VarPtr(GetDWord(height)))70 Return GetDWord(VarPtr(width)) Xor _System_BSwap(GetDWord(VarPtr(height))) 71 71 End Function 72 72 … … 75 75 End Function 76 76 77 Function Add(sz As Size ) As Size77 Function Add(sz As SizeF) As SizeF 78 78 Return This + sz 79 79 End Function -
trunk/Include/Classes/System/Media/SystemSound.ab
r116 r303 15 15 Public 16 16 Sub Play() 17 PlaySound(SoundID ,GetModuleHandle(NULL),SND_ALIAS_ID)17 PlaySound(SoundID As LPCTSTR, GetModuleHandle(NULL), SND_ALIAS_ID) 18 18 End Sub 19 19 -
trunk/Include/Classes/System/Threading/Thread.ab
r249 r303 281 281 For i=0 To ELM(ThreadNum) 282 282 283 If currentThread.Equals( ByVal ppobj_Thread[i]) Then283 If currentThread.Equals( ppobj_Thread[i] As Object ) Then 284 284 Continue 285 285 End If … … 298 298 For i=0 To ELM(ThreadNum) 299 299 300 If currentThread.Equals( ByVal ppobj_Thread[i]) Then300 If currentThread.Equals( ppobj_Thread[i] As Object ) Then 301 301 Continue 302 302 End If -
trunk/Include/Classes/System/Windows/Forms/Control.ab
r285 r303 4 4 #define __SYSTEM_WINDOWS_FORMS_CONTROL_AB__ 5 5 6 #require <windows/WindowHandle.sbp>7 6 #require <Classes/System/Windows/Forms/misc.ab> 8 7 #require <Classes/System/Windows/Forms/CreateParams.ab> … … 17 16 #require <Classes/System/Drawing/Rectangle.ab> 18 17 #require <Classes/System/Runtime/InteropServices/GCHandle.ab> 18 #require <Classes/ActiveBasic/Windows/WindowHandle.sbp> 19 19 #require <Classes/ActiveBasic/Strings/Strings.ab> 20 20 … … 44 44 45 45 Override Function CompletedSynchronously() As Boolean 46 Return F ALSE46 Return False 47 47 End Function 48 48 … … 74 74 75 75 Class Control 76 76 77 ' Inherits IWin32Window 77 78 Public … … 80 81 Function AllowDrop() As Boolean 81 82 End Function 83 84 'Anchor 85 'AutoScrollOffset 86 'AutoSize 87 'BackColor下 88 'BackgroundImage 89 'BackgroundImageLayout 90 '-BindingContext 91 'Bottom 下 92 'Bounds 下 93 'CanFocus 94 'CanSelect 95 'Capture 96 '-CausesValidation 97 'CheckForIllegalCrossThreadCalls 82 98 83 99 /*Override*/ Function Handle() As HWND … … 201 217 Return b.Top + b.Height 202 218 End Function 203 219 /* 204 220 Const Function PointToScreen(p As Point) As Point 205 221 PointToScreen = New Point 206 ret.X = p.X207 ret.Y = p.Y208 wnd.ClientToScreen(ByVal VarPtr(PointToScreen) As *POINTAPI)222 PointToScreen.X = p.X 223 PointToScreen.Y = p.Y 224 wnd.ClientToScreen(ByVal ObjPtr(PointToScreen) As *POINTAPI) 209 225 End Function 210 226 211 227 Const Function PointToClient(p As Point) As Point 212 228 PointToScreen = New Point 213 ret.X = p.X214 ret.Y = p.Y215 wnd.ScreenToClient(ByVal VarPtr(PointToScreen) As *POINTAPI)216 End Function 217 229 PointToClient.X = p.X 230 PointToClient.Y = p.Y 231 wnd.ScreenToClient(ByVal ObjPtr(PointToClient) As *POINTAPI) 232 End Function 233 */ 218 234 Const Function RectangleToScreen(r As Rectangle) As Rectangle 219 235 Dim rc = r.ToRECT … … 223 239 224 240 Const Function RectangleToClient(r As Rectangle) As Rectangle 225 Dim rc As RECT 226 rc = r.ToRECT() 241 Dim rc = r.ToRECT() 227 242 wnd.ScreenToClient(rc) 228 243 Return New Rectangle(rc) … … 230 245 231 246 Const Function InvokeRequired() As Boolean 232 Return wnd.ThreadI D<> GetCurrentThreadId()247 Return wnd.ThreadId <> GetCurrentThreadId() 233 248 End Function 234 249 … … 239 254 Virtual Sub BackColor(c As Color) 240 255 c = bkColor 241 Dim e As EventArgs 242 OnBackColorChanged(e) 256 OnBackColorChanged(New EventArgs) 243 257 End Sub 244 258 … … 248 262 249 263 Const Function IsHandleCreated() As Boolean 250 Return wnd.HWnd <> 0 264 Return wnd.HWnd <> 0 Or IsWindow(wnd.HWnd) <> FALSE 251 265 End Function 252 266 … … 259 273 260 274 Sub Control() 275 Debug 261 276 Dim sz = DefaultSize() 262 277 Control("", 100, 100, sz.Width, sz.Height) … … 279 294 280 295 Sub Control(parent As Control, text As String, left As Long, top As Long, width As Long, height As Long) 281 This.parent = VarPtr(parent)296 This.parent = parent 282 297 Control(text, left, top, width, height) 283 298 End Sub … … 296 311 '--------------------------------------------------------------------------- 297 312 ' Public Methods 298 313 /* 299 314 ' 同期関数呼出、Controlが作成されたスレッドで関数を実行する。 300 315 ' 関数は同期的に呼び出されるので、関数が終わるまでInvokeは制御を戻さない。 … … 317 332 Dim gch = System.Runtime.InteropServices.GCHandle.Alloc(asyncInvokeData) 318 333 wnd.PostMessage(WM_CONTROL_BEGININVOKE, 0, System.Runtime.InteropServices.GCHandle.ToIntPtr(gch)) 319 Return pAsyncResult334 Return asyncResult 320 335 End Function 321 336 … … 327 342 Return arInvoke.Result 328 343 End Function 329 344 */ 330 345 ' 与えられたウィンドウハンドルがControl(若しくはその派生クラス)の 331 346 ' インスタンスに対応するものであった場合、 … … 360 375 361 376 Sub Show() 377 Debug 362 378 wnd.Show(SW_SHOW) 363 379 End Sub … … 396 412 Virtual Sub CreateHandle() 397 413 Dim createParams = CreateParams() 398 Dim gch = GCHandle.Alloc(This)399 TlsSetValue(tlsIndex, GCHandle.ToIntPtr(gch) As VoidPtr)414 Dim gch = System.Runtime.InteropServices.GCHandle.Alloc(This) 415 TlsSetValue(tlsIndex, System.Runtime.InteropServices.GCHandle.ToIntPtr(gch) As VoidPtr) 400 416 With createParams 401 417 Dim hwndParent = 0 As HWND … … 516 532 Private 517 533 ' Member variables 518 wnd As WindowHandle534 wnd As ActiveBasic.Windows.WindowHandle 519 535 text As String 520 536 parent As Control … … 590 606 ExitThread(-1) 591 607 End If 592 rThis.wnd = New WindowHandle(hwnd)608 rThis.wnd = New ActiveBasic.Windows.WindowHandle(hwnd) 593 609 SetWindowLongPtr(hwnd, GWLP_THIS, gchValue) 594 610 End If -
trunk/Include/Classes/System/Windows/Forms/Message.ab
r282 r303 55 55 Return hwnd = x.hwnd And _ 56 56 msg = x.msg And _ 57 wp = .wp And _58 lp = .lp And _59 lr = .lr57 wp = x.wp And _ 58 lp = x.lp And _ 59 lr = x.lr 60 60 End Function 61 61 -
trunk/Include/Classes/System/Windows/Forms/index.ab
r223 r303 9 9 #require <Classes/System/Windows/Forms/CreateParams.ab> 10 10 #require <Classes/System/Windows/Forms/PaintEventArgs.ab> 11 #require <Classes/System/Windows/Forms/MessageBox.ab> 11 12 12 13 #endif '__SYSTEM_WINDOWS_FORMS_INDEX_AB__ -
trunk/Include/Classes/System/Windows/Forms/misc.ab
r282 r303 1 ' 1 'Classes/System/Windows/Forms/misc.ab 2 2 3 3 #ifndef __SYSTEM_WINDOWS_FORMS_MISC_AB__ … … 197 197 End Enum 198 198 199 Enum DialogResult 200 None = 0 201 OK = IDOK 202 Abort = IDABORT 203 Cancel = IDCANCEL 204 Retry = IDRETRY 205 Ignore = IDIGNORE 206 Yes = IDYES 207 No = IDNO 208 End Enum 209 199 210 End Namespace 'Forms 200 211 End Namespace 'Widnows
Note:
See TracChangeset
for help on using the changeset viewer.