Fix ListBox overflow on high DPI (#235)

This commit is contained in:
剧毒的KCN
2024-09-07 21:35:50 +08:00
committed by GitHub
parent fafff8090f
commit e6a2d26671
16 changed files with 52 additions and 10 deletions

View File

@@ -34,6 +34,7 @@
this.BtnDeleteMailItem = new System.Windows.Forms.Button();
this.TCMailRight = new System.Windows.Forms.TabControl();
this.TPMailSelectableItemList = new System.Windows.Forms.TabPage();
this.LblClearFilter = new System.Windows.Forms.Label();
this.ListMailSelectableItems = new System.Windows.Forms.ListBox();
this.TxtMailSelectableItemFilter = new System.Windows.Forms.TextBox();
this.PanelMailItemArgs = new System.Windows.Forms.Panel();
@@ -59,7 +60,6 @@
this.LblMailTitleLabel = new System.Windows.Forms.Label();
this.TxtMailSender = new System.Windows.Forms.TextBox();
this.LblMailSenderLabel = new System.Windows.Forms.Label();
this.LblClearFilter = new System.Windows.Forms.Label();
this.TCMailRight.SuspendLayout();
this.TPMailSelectableItemList.SuspendLayout();
this.PanelMailItemArgs.SuspendLayout();
@@ -109,6 +109,14 @@
this.TPMailSelectableItemList.Name = "TPMailSelectableItemList";
this.TPMailSelectableItemList.UseVisualStyleBackColor = true;
//
// LblClearFilter
//
resources.ApplyResources(this.LblClearFilter, "LblClearFilter");
this.LblClearFilter.BackColor = System.Drawing.Color.White;
this.LblClearFilter.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblClearFilter.Name = "LblClearFilter";
this.LblClearFilter.Click += new System.EventHandler(this.LblClearFilter_Click);
//
// ListMailSelectableItems
//
resources.ApplyResources(this.ListMailSelectableItems, "ListMailSelectableItems");
@@ -228,6 +236,7 @@
resources.ApplyResources(this.ListMailItems, "ListMailItems");
this.ListMailItems.FormattingEnabled = true;
this.ListMailItems.Name = "ListMailItems";
this.ListMailItems.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListMailItems_MeasureItem);
//
// LblMailItemsLabel
//
@@ -298,14 +307,6 @@
resources.ApplyResources(this.LblMailSenderLabel, "LblMailSenderLabel");
this.LblMailSenderLabel.Name = "LblMailSenderLabel";
//
// LblClearFilter
//
resources.ApplyResources(this.LblClearFilter, "LblClearFilter");
this.LblClearFilter.BackColor = System.Drawing.Color.White;
this.LblClearFilter.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblClearFilter.Name = "LblClearFilter";
this.LblClearFilter.Click += new System.EventHandler(this.LblClearFilter_Click);
//
// PageMail
//
resources.ApplyResources(this, "$this");