windows: fix build
This commit is contained in:
parent
6c9f130b2e
commit
50b0cc46cf
|
@ -59,9 +59,11 @@ namespace SparkleShare {
|
||||||
// Remove the close button
|
// Remove the close button
|
||||||
Closing += Close;
|
Closing += Close;
|
||||||
SourceInitialized += delegate {
|
SourceInitialized += delegate {
|
||||||
|
const int gwl_style = -16;
|
||||||
|
const int ws_sysmenu = 0×00080000;
|
||||||
WindowInteropHelper helper = new WindowInteropHelper (this);
|
WindowInteropHelper helper = new WindowInteropHelper (this);
|
||||||
int style = GetWindowLong (helper.Handle, -16);
|
int style = GetWindowLong (helper.Handle, gwl_style);
|
||||||
SetWindowLong (helper.Handle, -16, style & ~0×00080000);
|
SetWindowLong (helper.Handle, gwl_style, style & ~ws_sysmenu);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.bar = new Rectangle () {
|
this.bar = new Rectangle () {
|
||||||
|
|
Loading…
Reference in a new issue