mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-28 10:45:31 +08:00
Update release
This commit is contained in:
@@ -23990,7 +23990,6 @@ GuiToolstripGroupContainer
|
|||||||
}
|
}
|
||||||
|
|
||||||
stackComposition->SetDirection(direction);
|
stackComposition->SetDirection(direction);
|
||||||
splitterThemeName = splitterThemeName;
|
|
||||||
groupCollection->RebuildSplitters();
|
groupCollection->RebuildSplitters();
|
||||||
UpdateLayout();
|
UpdateLayout();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12549,6 +12549,7 @@ namespace vl
|
|||||||
protected:
|
protected:
|
||||||
Ptr<WinBitmap> buffer;
|
Ptr<WinBitmap> buffer;
|
||||||
INativeWindow* window;
|
INativeWindow* window;
|
||||||
|
bool needPaintAfterResize = false;
|
||||||
|
|
||||||
vint DetermineBufferLength(vint minSize, vint minBound, vint maxBound, vint currentSize)
|
vint DetermineBufferLength(vint minSize, vint minBound, vint maxBound, vint currentSize)
|
||||||
{
|
{
|
||||||
@@ -12583,6 +12584,7 @@ namespace vl
|
|||||||
if (buffer->GetWidth() != size.x.value || buffer->GetHeight() != size.y.value)
|
if (buffer->GetWidth() != size.x.value || buffer->GetHeight() != size.y.value)
|
||||||
{
|
{
|
||||||
buffer = 0;
|
buffer = 0;
|
||||||
|
needPaintAfterResize = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
@@ -12604,6 +12606,16 @@ namespace vl
|
|||||||
|
|
||||||
void Paint()
|
void Paint()
|
||||||
{
|
{
|
||||||
|
// for the first Paint() call after Moved()
|
||||||
|
// trigger the global timer so that all GuiGraphicsHost with needToRender=true will call Render(false)
|
||||||
|
// so that to fill the buffer to prevent from seeing a black frame
|
||||||
|
// but it still leave some black color since the layout may needs more than 1 frame to finish
|
||||||
|
if (needPaintAfterResize)
|
||||||
|
{
|
||||||
|
needPaintAfterResize = false;
|
||||||
|
auto callbackService = GetCurrentController()->CallbackService();
|
||||||
|
dynamic_cast<WindowsCallbackService*>(callbackService)->InvokeGlobalTimer();
|
||||||
|
}
|
||||||
IWindowsForm* form=GetWindowsForm(window);
|
IWindowsForm* form=GetWindowsForm(window);
|
||||||
WinControlDC controlDC(form->GetWindowHandle());
|
WinControlDC controlDC(form->GetWindowHandle());
|
||||||
controlDC.Draw(0, 0, buffer);
|
controlDC.Draw(0, 0, buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user