19 references to nmcd
System.Windows.Forms (19)
System\Windows\Forms\Controls\TreeView\TreeView.cs (14)
2713
switch (nmtvcd->
nmcd
.dwDrawStage)
2722
Debug.Assert(nmtvcd->
nmcd
.dwItemSpec != 0, "Invalid node handle in ITEMPREPAINT");
2723
TreeNode? node = NodeFromHandle((nint)nmtvcd->
nmcd
.dwItemSpec);
2733
NMCUSTOMDRAW_DRAW_STATE_FLAGS state = nmtvcd->
nmcd
.uItemState;
2743
bool hasPaintArea = nmtvcd->
nmcd
.rc.right > nmtvcd->
nmcd
.rc.left &&
2744
nmtvcd->
nmcd
.rc.bottom > nmtvcd->
nmcd
.rc.top;
2754
using (Graphics g = nmtvcd->
nmcd
.hdc.CreateGraphics())
2811
PInvokeCore.SelectObject(nmtvcd->
nmcd
.hdc, node._propBag.FontHandle);
2827
Debug.Assert(nmtvcd->
nmcd
.dwItemSpec != 0, "Invalid node handle in ITEMPOSTPAINT");
2830
node = NodeFromHandle((nint)nmtvcd->
nmcd
.dwItemSpec);
2839
using (Graphics g = nmtvcd->
nmcd
.hdc.CreateGraphics())
2846
DrawTreeNodeEventArgs e = new(g, node, bounds, (TreeNodeStates)(nmtvcd->
nmcd
.uItemState));
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (5)
203
switch (nmtvcd->
nmcd
.dwDrawStage)
210
TreeNode? itemNode = TreeNode.FromHandle(this, (nint)nmtvcd->
nmcd
.dwItemSpec);
214
NMCUSTOMDRAW_DRAW_STATE_FLAGS itemState = nmtvcd->
nmcd
.uItemState;
229
nmtvcd->
nmcd
.hdc,
230
nmtvcd->
nmcd
.rc,