mirror of
https://github.com/modernw/AppInstallerForWin8.git
synced 2026-06-19 21:40:00 +10:00
(I've forgotten.)
This commit is contained in:
@@ -341,7 +341,25 @@ public ref class AppWindow: public Form
|
|||||||
public:
|
public:
|
||||||
AppWindow ()
|
AppWindow ()
|
||||||
{
|
{
|
||||||
this->Visible = false;
|
BOOL transitionsEnabled = FALSE;
|
||||||
|
HRESULT hr = DwmSetWindowAttribute (
|
||||||
|
reinterpret_cast <HWND> (this->Handle.ToPointer ()),
|
||||||
|
DWMWA_TRANSITIONS_FORCEDISABLED,
|
||||||
|
&transitionsEnabled,
|
||||||
|
sizeof (transitionsEnabled)
|
||||||
|
);
|
||||||
|
DWMNCRENDERINGPOLICY dwmplc = DWMNCRP_ENABLED;
|
||||||
|
hr = DwmSetWindowAttribute (
|
||||||
|
reinterpret_cast <HWND> (this->Handle.ToPointer ()),
|
||||||
|
DWMWA_NCRENDERING_POLICY,
|
||||||
|
&dwmplc,
|
||||||
|
sizeof (dwmplc)
|
||||||
|
);
|
||||||
|
MARGINS margins = {-1, -1, -1, -1};
|
||||||
|
hr = DwmExtendFrameIntoClientArea (
|
||||||
|
reinterpret_cast <HWND> (this->Handle.ToPointer ()),
|
||||||
|
&margins
|
||||||
|
);
|
||||||
jsFunctionHandlers = gcnew System::Collections::Generic::Dictionary <String ^, Delegate ^> ();
|
jsFunctionHandlers = gcnew System::Collections::Generic::Dictionary <String ^, Delegate ^> ();
|
||||||
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
|
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
|
||||||
this->ShowInTaskbar = false;
|
this->ShowInTaskbar = false;
|
||||||
@@ -376,7 +394,6 @@ public ref class AppWindow: public Form
|
|||||||
"button-cancel-window",
|
"button-cancel-window",
|
||||||
rcString (APPLIST_BUTTON_CANCEL)
|
rcString (APPLIST_BUTTON_CANCEL)
|
||||||
});
|
});
|
||||||
this->Visible = true;
|
|
||||||
Thread ^thread = gcnew Thread (gcnew ThreadStart (this, &AppWindow::InvokeRefreshAppItems));
|
Thread ^thread = gcnew Thread (gcnew ThreadStart (this, &AppWindow::InvokeRefreshAppItems));
|
||||||
thread->Start ();
|
thread->Start ();
|
||||||
}
|
}
|
||||||
@@ -1002,7 +1019,7 @@ public ref class MainWnd: public Form
|
|||||||
setPicBoxVisibilityJS (false);
|
setPicBoxVisibilityJS (false);
|
||||||
if (serial > 1)
|
if (serial > 1)
|
||||||
{
|
{
|
||||||
if (serial = 2)
|
if (serial == 2)
|
||||||
{
|
{
|
||||||
std::string res = m_pkgInfo.getPropertyLogoBase64 ();
|
std::string res = m_pkgInfo.getPropertyLogoBase64 ();
|
||||||
if (m_pkgInfo.getPropertyLogoIStream () && !res.empty () && res.length () > 10)
|
if (m_pkgInfo.getPropertyLogoIStream () && !res.empty () && res.length () > 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user