Changeset 685 for trunk/ab5.0
- Timestamp:
- Mar 9, 2009, 9:33:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/basic/prompt.sbp
r684 r685 244 244 245 245 'Initialize for Win9x 246 Dim hOldBrush = SelectObject(_PromptSys_hMemDC, GetStockObject(BLACK_BRUSH)) As HBRUSH 247 With _PromptSys_ScreenSize 248 PatBlt(_PromptSys_hMemDC, 0, 0, .cx, .cy, PATCOPY) 249 End With 250 SelectObject(_PromptSys_hMemDC, hOldBrush) 246 ClearGraphicsScreen() 251 247 252 248 Dim tm As TEXTMETRIC … … 531 527 End Function 532 528 529 Sub ClearGraphicsScreen() 530 Dim rc As RECT 531 With rc 532 .left = 0 533 .top = 0 534 .right = _PromptSys_ScreenSize.cx 535 .bottom = _PromptSys_ScreenSize.cy 536 End With 537 SetBkColor(_PromptSys_hMemDC, 0) 538 ExtTextOut(_PromptSys_hMemDC, 0, 0, ETO_OPAQUE, rc, "", 0, 0) '矩形塗り潰しはExtTextOutが速いらしい 539 End Sub 540 533 541 'Prompt text command functoins 534 542 … … 555 563 If n = 2 Or n = 3 Then 556 564 'Clear the graphics screen 557 Dim hOldBrush = SelectObject(_PromptSys_hMemDC, GetStockObject(BLACK_BRUSH)) 558 With _PromptSys_ScreenSize 559 PatBlt(_PromptSys_hMemDC, 0, 0, .cx, .cy, PATCOPY) 560 End With 561 SelectObject(_PromptSys_hMemDC, hOldBrush) 565 ClearGraphicsScreen() 562 566 End If 563 567
Note:
See TracChangeset
for help on using the changeset viewer.