Changeset 137 for Include/basic
- Timestamp:
- Mar 7, 2007, 5:36:31 PM (18 years ago)
- Location:
- Include/basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/function.sbp
r133 r137 1117 1117 Function _System_WideCharToMultiByte(ws As PCWSTR, size As Long, flag As DWord) As PSTR 1118 1118 Dim sizeMBS = WideCharToMultiByte(CP_THREAD_ACP, flag, s, size, 0, 0, 0, 0) 1119 Dim mbs = malloc(sizeMBS) As PSTR1119 Dim mbs = _System_malloc(sizeMBS) As PSTR 1120 1120 WideCharToMultiByte(CP_THREAD_ACP, flag, s, size, mbs, sizeMBS, 0, 0) 1121 1121 Return mbs … … 1132 1132 Function _System_MultiByteToWideChar(s As PCSTR, size As Long, flag As DWord) As PWSTR 1133 1133 Dim sizeMBS = MultiByteToWideChar(CP_THREAD_ACP, flag, s, size, 0, 0) 1134 Dim mbs = malloc(SizeOf (WCHAR) * sizeMBS) As PWSTR1134 Dim mbs = _System_malloc(SizeOf (WCHAR) * sizeMBS) As PWSTR 1135 1135 MultiByteToWideChar(CP_THREAD_ACP, flag, s, size, mbs, sizeMBS) 1136 1136 Return mbs -
Include/basic/prompt.sbp
r132 r137 26 26 End Type 27 27 28 Dim _PromptSys_LogFont As LOGFONT A 'LOGFONT28 Dim _PromptSys_LogFont As LOGFONT 29 29 Dim _PromptSys_hFont As HFONT 30 30 Dim _PromptSys_FontSize As SIZE … … 257 257 End With 258 258 ImmSetCompositionWindow(himc, CompForm) 259 ImmSetCompositionFont A(himc, _PromptSys_LogFont)259 ImmSetCompositionFont(himc, _PromptSys_LogFont) 260 260 End If 261 261 ImmReleaseContext(hwnd, himc) … … 407 407 .lfQuality = DEFAULT_QUALITY 408 408 .lfPitchAndFamily = FIXED_PITCH 409 #ifdef UNICODE410 WideCharToMultiByte(CP_ACP, 0, "MS 明朝", 5, .lfFaceName, LF_FACESIZE, 0, 0)411 #else412 409 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) 417 413 418 414 'Critical Section … … 436 432 437 433 'Create Prompt Window 438 _PromptSys_hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, atom As ULONG_PTR As PC STR, "BASIC PROMPT",434 _PromptSys_hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, atom As ULONG_PTR As PCTSTR, "BASIC PROMPT", 439 435 WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 440 436 0, 0, wcl.hInstance, 0)
Note:
See TracChangeset
for help on using the changeset viewer.