File tree 1 file changed +15
-14
lines changed
SoundSwitch/Framework/Banner
1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -43,26 +43,27 @@ public BannerForm()
43
43
var screen = AppModel . Instance . NotifyUsingPrimaryScreen ? Screen . PrimaryScreen : Screen . FromPoint ( Cursor . Position ) ;
44
44
StartPosition = FormStartPosition . Manual ;
45
45
Bounds = screen . Bounds ;
46
+ TopMost = true ;
46
47
47
48
Location = new Point ( screen . Bounds . X + 50 , screen . Bounds . Y + 60 ) ;
48
49
}
49
50
50
51
protected override bool ShowWithoutActivation => true ;
51
52
52
- /// <summary>
53
- /// Override the parameters used to create the window handle.
54
- /// Ensure that the window will be top-most and do not activate or take focus.
55
- /// </summary>
56
- protected override CreateParams CreateParams
57
- {
58
- get
59
- {
60
- CreateParams p = base . CreateParams ;
61
- p . ExStyle |= 0x08000000 ; // WS_EX_NOACTIVATE
62
- p . ExStyle |= 0x00000008 ; // WS_EX_TOPMOST
63
- return p ;
64
- }
65
- }
53
+ // // / <summary>
54
+ // // / Override the parameters used to create the window handle.
55
+ // // / Ensure that the window will be top-most and do not activate or take focus.
56
+ // // / </summary>
57
+ // protected override CreateParams CreateParams
58
+ // {
59
+ // get
60
+ // {
61
+ // CreateParams p = base.CreateParams;
62
+ // p.ExStyle |= 0x08000000; // WS_EX_NOACTIVATE
63
+ // p.ExStyle |= 0x00000008; // WS_EX_TOPMOST
64
+ // return p;
65
+ // }
66
+ // }
66
67
67
68
/// <summary>
68
69
/// Called internally to configure pass notification parameters
You can’t perform that action at this time.
0 commit comments