Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
a73cf70d
Commit
a73cf70d
authored
Jun 26, 2026
by
段廷瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 最小化/缩放按钮,焦点移除
parent
0f91d19b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
wMain.Designer.cs
Tools/wMain.Designer.cs
+11
-2
wMain.cs
Tools/wMain.cs
+3
-0
No files found.
Tools/wMain.Designer.cs
View file @
a73cf70d
...
...
@@ -322,12 +322,15 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnMinimized
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
41
)))),
((
int
)(((
byte
)(
101
)))),
((
int
)(((
byte
)(
204
)))));
this
.
btnMinimized
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnMinimized
.
FlatAppearance
.
MouseDownBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
70
)))),
((
int
)(((
byte
)(
130
)))),
((
int
)(((
byte
)(
220
)))));
this
.
btnMinimized
.
FlatAppearance
.
MouseOverBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
70
)))),
((
int
)(((
byte
)(
130
)))),
((
int
)(((
byte
)(
220
)))));
this
.
btnMinimized
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMinimized
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMinimized
.
Location
=
new
System
.
Drawing
.
Point
(
611
,
1
);
this
.
btnMinimized
.
Name
=
"btnMinimized"
;
this
.
btnMinimized
.
Size
=
new
System
.
Drawing
.
Size
(
24
,
25
);
this
.
btnMinimized
.
TabIndex
=
3
;
this
.
btnMinimized
.
TabStop
=
false
;
this
.
btnMinimized
.
Text
=
""
;
this
.
btnMinimized
.
UseVisualStyleBackColor
=
false
;
this
.
btnMinimized
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMinimized_Click
);
...
...
@@ -339,12 +342,15 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnMaximized
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
41
)))),
((
int
)(((
byte
)(
101
)))),
((
int
)(((
byte
)(
204
)))));
this
.
btnMaximized
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnMaximized
.
FlatAppearance
.
MouseDownBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
70
)))),
((
int
)(((
byte
)(
130
)))),
((
int
)(((
byte
)(
220
)))));
this
.
btnMaximized
.
FlatAppearance
.
MouseOverBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
70
)))),
((
int
)(((
byte
)(
130
)))),
((
int
)(((
byte
)(
220
)))));
this
.
btnMaximized
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMaximized
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMaximized
.
Location
=
new
System
.
Drawing
.
Point
(
637
,
1
);
this
.
btnMaximized
.
Name
=
"btnMaximized"
;
this
.
btnMaximized
.
Size
=
new
System
.
Drawing
.
Size
(
24
,
25
);
this
.
btnMaximized
.
TabIndex
=
2
;
this
.
btnMaximized
.
TabStop
=
false
;
this
.
btnMaximized
.
Text
=
""
;
this
.
btnMaximized
.
UseVisualStyleBackColor
=
false
;
this
.
btnMaximized
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMaximized_Click
);
...
...
@@ -356,12 +362,15 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnClosed
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
41
)))),
((
int
)(((
byte
)(
101
)))),
((
int
)(((
byte
)(
204
)))));
this
.
btnClosed
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnClosed
.
FlatAppearance
.
MouseDownBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
btnClosed
.
FlatAppearance
.
MouseOverBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
btnClosed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClosed
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClosed
.
Location
=
new
System
.
Drawing
.
Point
(
663
,
1
);
this
.
btnClosed
.
Name
=
"btnClosed"
;
this
.
btnClosed
.
Size
=
new
System
.
Drawing
.
Size
(
24
,
25
);
this
.
btnClosed
.
TabIndex
=
4
;
this
.
btnClosed
.
TabStop
=
false
;
this
.
btnClosed
.
Text
=
""
;
this
.
btnClosed
.
UseVisualStyleBackColor
=
false
;
this
.
btnClosed
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClosed_Click
);
...
...
Tools/wMain.cs
View file @
a73cf70d
...
...
@@ -140,6 +140,7 @@ namespace Tools
private
void
btnClosed_Click
(
object
sender
,
EventArgs
e
)
{
this
.
ActiveControl
=
null
;
this
.
Exit
();
}
private
void
btnMaximized_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -152,6 +153,7 @@ namespace Tools
{
this
.
SetWinMaximized
();
}
this
.
ActiveControl
=
null
;
this
.
btnMaximized
.
Invalidate
();
//刷新Tab显示
this
.
RefreshTab
();
...
...
@@ -236,6 +238,7 @@ namespace Tools
private
void
btnMinimized_Click
(
object
sender
,
EventArgs
e
)
{
this
.
ActiveControl
=
null
;
this
.
WindowState
=
FormWindowState
.
Minimized
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment