We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65ea78 commit 34d50ceCopy full SHA for 34d50ce
src/System.Windows.Forms/src/System/Windows/Forms/TabControl.cs
@@ -1945,11 +1945,13 @@ private unsafe void WmReflectDrawItem(ref Message m)
1945
DRAWITEMSTRUCT* dis = (DRAWITEMSTRUCT*)(nint)m.LParamInternal;
1946
1947
using DrawItemEventArgs e = new(
1948
- dis->hDC.CreateGraphics(),
+ dis->hDC,
1949
Font,
1950
dis->rcItem,
1951
- (int)dis->itemID,
1952
- (DrawItemState)(int)dis->itemState);
+ dis->itemID,
+ dis->itemState,
1953
+ ForeColor,
1954
+ BackColor);
1955
1956
OnDrawItem(e);
1957
0 commit comments