diff --git a/Import/GacUI.cpp b/Import/GacUI.cpp index 70d7263f..15dd32d2 100644 --- a/Import/GacUI.cpp +++ b/Import/GacUI.cpp @@ -37821,7 +37821,7 @@ GuiGraphicsHost } else if (VKEY_NUMPAD0 <= info.code && info.code <= VKEY_NUMPAD9) { - if (EnterAltKey('0' + (info.code - VKEY_NUMPAD0))) + if (EnterAltKey((wchar_t)(L'0' + (info.code - VKEY_NUMPAD0)))) { supressAltKey = info.code; return; @@ -39054,7 +39054,7 @@ GuiColorizedTextElement line.contextFinalState = -1; for (vint j = 0; j < line.dataLength; j++) { - line.att[j].colorIndex = index; + line.att[j].colorIndex = (vuint32_t)index; } } } diff --git a/Import/GacUICompiler.cpp b/Import/GacUICompiler.cpp index 027da5e4..c5c8c85b 100644 --- a/Import/GacUICompiler.cpp +++ b/Import/GacUICompiler.cpp @@ -7705,7 +7705,7 @@ WorkflowReferenceNamesVisitor + L"\" of type \"" + propertyInfo.typeInfo.typeName.ToString() + L"\" does not accept a value of type \"" - + resolvedTypeInfo.typeName.ToKey() + + resolvedTypeInfo.typeName.ToString() + L"\" because it only accepts value of the following types: "; for (vint i = 0; i < candidatePropertyTypeInfos.Count(); i++) diff --git a/Import/GacUIWindows.cpp b/Import/GacUIWindows.cpp index 5db2a718..83fad888 100644 --- a/Import/GacUIWindows.cpp +++ b/Import/GacUIWindows.cpp @@ -81,56 +81,56 @@ WindowsForm { protected: - DWORD InternalGetExStyle() + LONG_PTR InternalGetExStyle() { - return (DWORD)GetWindowLongPtr(handle,GWL_EXSTYLE); + return GetWindowLongPtr(handle, GWL_EXSTYLE); } - void InternalSetExStyle(DWORD exStyle) + void InternalSetExStyle(LONG_PTR exStyle) { - LONG_PTR result=SetWindowLongPtr(handle,GWL_EXSTYLE,exStyle); - SetWindowPos(handle,0,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED); + LONG_PTR result = SetWindowLongPtr(handle, GWL_EXSTYLE, exStyle); + SetWindowPos(handle, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED); } - bool GetExStyle(DWORD exStyle) + bool GetExStyle(LONG_PTR exStyle) { LONG_PTR Long=InternalGetExStyle(); return (Long & exStyle) != 0; } - void SetExStyle(DWORD exStyle, bool available) + void SetExStyle(LONG_PTR exStyle, bool available) { - DWORD Long=InternalGetExStyle(); + LONG_PTR Long = InternalGetExStyle(); if(available) { - Long|=exStyle; + Long |= exStyle; } else { - Long&=~exStyle; + Long &= ~exStyle; } - InternalSetExStyle((DWORD)Long); + InternalSetExStyle(Long); } - bool GetStyle(DWORD style) + bool GetStyle(LONG_PTR style) { - LONG_PTR Long=GetWindowLongPtr(handle,GWL_STYLE); + LONG_PTR Long = GetWindowLongPtr(handle, GWL_STYLE); return (Long & style) != 0; } - void SetStyle(DWORD style, bool available) + void SetStyle(LONG_PTR style, bool available) { - LONG_PTR Long=GetWindowLongPtr(handle,GWL_STYLE); + LONG_PTR Long = GetWindowLongPtr(handle, GWL_STYLE); if(available) { - Long|=style; + Long |= style; } else { - Long&=~style; + Long &= ~style; } - SetWindowLongPtr(handle,GWL_STYLE,Long); - SetWindowPos(handle,0,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED); + SetWindowLongPtr(handle, GWL_STYLE, Long); + SetWindowPos(handle, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED); } NativeWindowMouseInfo ConvertMouse(WPARAM wParam, LPARAM lParam, bool wheelMessage, bool nonClient) @@ -816,8 +816,8 @@ WindowsForm ,customFrameMode(false) ,supressingAlt(false) { - DWORD exStyle=WS_EX_APPWINDOW | WS_EX_CONTROLPARENT; - DWORD style=WS_BORDER | WS_CAPTION | WS_SIZEBOX | WS_SYSMENU | WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MAXIMIZEBOX | WS_MINIMIZEBOX; + DWORD exStyle = WS_EX_APPWINDOW | WS_EX_CONTROLPARENT; + DWORD style = WS_BORDER | WS_CAPTION | WS_SIZEBOX | WS_SYSMENU | WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MAXIMIZEBOX | WS_MINIMIZEBOX; handle=CreateWindowEx(exStyle, className.Buffer(), L"", style, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, parent, NULL, hInstance, NULL); } diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp index 5949ba75..bbcf1544 100644 --- a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp +++ b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp @@ -41,7 +41,7 @@ namespace demo Setup(); } - void ColorizeTokenContextSensitive(int lineIndex, const wchar_t* text, vint start, vint length, vint& token, int& contextState)override + void ColorizeTokenContextSensitive(vint lineIndex, const wchar_t* text, vint start, vint length, vint& token, vint& contextState)override { // 0 < 1 name 2 att > 0 switch(token)