Changeset 127 for Include/basic


Ignore:
Timestamp:
Mar 3, 2007, 6:14:57 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

#68デバック用コードの除去し忘れを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/basic/prompt.sbp

    r126 r127  
    1111Dim _PromptSys_hWnd As HWND
    1212Dim _PromptSys_dwThreadID As DWord
    13 Dim _PromptSys_bInitFinish As BOOL
     13Dim _PromptSys_hInitFinish As HANDLE
    1414
    1515'text
     
    4747Dim _PromptSys_GlobalPos As POINTAPI
    4848
    49 CreateEvent(0, FALSE, FALSE, 0)
    50 _PromptSys_bInitFinish = 0
     49_PromptSys_hInitFinish = CreateEvent(0, FALSE, FALSE, 0)
    5150CreateThread(0, 0, AddressOf(PromptMain) As LPTHREAD_START_ROUTINE, 0, 0, _PromptSys_dwThreadID)
    52 Do
    53     Sleep(20)
    54 Loop Until _PromptSys_bInitFinish
     51WaitForSingleObject(_PromptSys_hInitFinish, INFINITE)
    5552
    5653Sub DrawPromptBuffer(hDC As HDC, StartLine As Long, EndLine As Long)
     
    8582
    8683            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
    9185            GetTextExtentPoint32(hDC, _PromptSys_TextLine[i].Text, i3, sz)
    9286
     
    250244    DrawPromptBuffer(hdc, -1, 0)
    251245    EndPaint(hwnd, ps)
    252 
    253     _PromptSys_bInitFinish = TRUE
    254246End Sub
    255247
     
    447439    ShowWindow(_PromptSys_hWnd, SW_SHOW)
    448440    UpdateWindow(_PromptSys_hWnd)
    449 
     441    SetEvent(_PromptSys_hInitFinish)
    450442    Dim msg As MSG
    451443    Do
Note: See TracChangeset for help on using the changeset viewer.