Changeset 137 for Include/basic


Ignore:
Timestamp:
Mar 7, 2007, 5:36:31 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

#55#73#75とりあえず完了

Location:
Include/basic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Include/basic/function.sbp

    r133 r137  
    11171117Function _System_WideCharToMultiByte(ws As PCWSTR, size As Long, flag As DWord) As PSTR
    11181118    Dim sizeMBS = WideCharToMultiByte(CP_THREAD_ACP, flag, s, size, 0, 0, 0, 0)
    1119     Dim mbs = malloc(sizeMBS) As PSTR
     1119    Dim mbs = _System_malloc(sizeMBS) As PSTR
    11201120    WideCharToMultiByte(CP_THREAD_ACP, flag, s, size, mbs, sizeMBS, 0, 0)
    11211121    Return mbs
     
    11321132Function _System_MultiByteToWideChar(s As PCSTR, size As Long, flag As DWord) As PWSTR
    11331133    Dim sizeMBS = MultiByteToWideChar(CP_THREAD_ACP, flag, s, size, 0, 0)
    1134     Dim mbs = malloc(SizeOf (WCHAR) * sizeMBS) As PWSTR
     1134    Dim mbs = _System_malloc(SizeOf (WCHAR) * sizeMBS) As PWSTR
    11351135    MultiByteToWideChar(CP_THREAD_ACP, flag, s, size, mbs, sizeMBS)
    11361136    Return mbs
  • Include/basic/prompt.sbp

    r132 r137  
    2626End Type
    2727
    28 Dim _PromptSys_LogFont As LOGFONTA 'LOGFONT
     28Dim _PromptSys_LogFont As LOGFONT
    2929Dim _PromptSys_hFont As HFONT
    3030Dim _PromptSys_FontSize As SIZE
     
    257257            End With
    258258            ImmSetCompositionWindow(himc, CompForm)
    259             ImmSetCompositionFontA(himc, _PromptSys_LogFont)
     259            ImmSetCompositionFont(himc, _PromptSys_LogFont)
    260260        End If
    261261        ImmReleaseContext(hwnd, himc)
     
    407407        .lfQuality = DEFAULT_QUALITY
    408408        .lfPitchAndFamily = FIXED_PITCH
    409 #ifdef UNICODE
    410         WideCharToMultiByte(CP_ACP, 0, "MS 明朝", 5, .lfFaceName, LF_FACESIZE, 0, 0)
    411 #else
    412409        lstrcpy(.lfFaceName, "MS 明朝")
    413 #endif
    414     End With
    415 
    416     _PromptSys_hFont = CreateFontIndirectA(_PromptSys_LogFont)
     410    End With
     411
     412    _PromptSys_hFont = CreateFontIndirect(_PromptSys_LogFont)
    417413
    418414    'Critical Section
     
    436432
    437433    'Create Prompt Window
    438     _PromptSys_hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, atom As ULONG_PTR As PCSTR, "BASIC PROMPT",
     434    _PromptSys_hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, atom As ULONG_PTR As PCTSTR, "BASIC PROMPT",
    439435        WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
    440436        0, 0, wcl.hInstance, 0)
Note: See TracChangeset for help on using the changeset viewer.