Changeset 127 for Include/basic
- Timestamp:
- Mar 3, 2007, 6:14:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/prompt.sbp
r126 r127 11 11 Dim _PromptSys_hWnd As HWND 12 12 Dim _PromptSys_dwThreadID As DWord 13 Dim _PromptSys_ bInitFinish As BOOL13 Dim _PromptSys_hInitFinish As HANDLE 14 14 15 15 'text … … 47 47 Dim _PromptSys_GlobalPos As POINTAPI 48 48 49 CreateEvent(0, FALSE, FALSE, 0) 50 _PromptSys_bInitFinish = 0 49 _PromptSys_hInitFinish = CreateEvent(0, FALSE, FALSE, 0) 51 50 CreateThread(0, 0, AddressOf(PromptMain) As LPTHREAD_START_ROUTINE, 0, 0, _PromptSys_dwThreadID) 52 Do 53 Sleep(20) 54 Loop Until _PromptSys_bInitFinish 51 WaitForSingleObject(_PromptSys_hInitFinish, INFINITE) 55 52 56 53 Sub DrawPromptBuffer(hDC As HDC, StartLine As Long, EndLine As Long) … … 85 82 86 83 Dim sz As SIZE 87 i3 = lstrlen(_PromptSys_TextLine[i].Text) '_PromptSys_TextLine[i].Length 88 If i3 <> 0 Then 89 OutputDebugString(Str$(i3) + ":" + Str$(_PromptSys_TextLine[i].Length) + Ex"\r\n") 90 End If 84 i3 = _PromptSys_TextLine[i].Length 91 85 GetTextExtentPoint32(hDC, _PromptSys_TextLine[i].Text, i3, sz) 92 86 … … 250 244 DrawPromptBuffer(hdc, -1, 0) 251 245 EndPaint(hwnd, ps) 252 253 _PromptSys_bInitFinish = TRUE254 246 End Sub 255 247 … … 447 439 ShowWindow(_PromptSys_hWnd, SW_SHOW) 448 440 UpdateWindow(_PromptSys_hWnd) 449 441 SetEvent(_PromptSys_hInitFinish) 450 442 Dim msg As MSG 451 443 Do
Note:
See TracChangeset
for help on using the changeset viewer.