Skip to main content
0 votes
0 answers
75 views

I am using NM_CUSTOMDRAW to draw tree view items. My items right justify parts of it by using a right margin based on the RECT area reported available. The issue I have is that when the vertical ...
user3161924's user avatar
  • 2,547
0 votes
0 answers
155 views

I need to draw custom title bar, using Win10, VS2017, MFC, SDK10.0.16299.0. When MyDialog::OnNcPaint() does not call CDialogEx::OnNcPaint(), the dialog frame is drawn incorrectly - the top corners are ...
Robert Zak's user avatar
1 vote
1 answer
557 views

How can I set the TreeView's selected node to the default clHighlight color when the TreeView is not focused? I tried this code in the CustomDrawItem and AdvancedCustomDrawItem events - no luck: if (...
tcxbalage's user avatar
  • 726
0 votes
0 answers
86 views

I have a WinForms app for .NET Framework in which the text of items in context menus based on the the ContextMenuStrip component are drawn using Graphics.DrawString() to provide consistent look with ...
Tecman's user avatar
  • 3,059
5 votes
0 answers
363 views

I have my own CListCtrl (MyList : public CListCtrl) and I want to show selection for each column, not for entire row. I changed WM_LBUTTONDOWN message and WM_KEYDOWNMESSAGE and set current column to ...
Michal Hadraba's user avatar
0 votes
0 answers
132 views

I'm implementing a customized TreeView with win32. Have the following custom draw code: void treeCustomDraw(NMHDR* pNMHDR, LRESULT* pResult) { NMCUSTOMDRAW* pNMCustomDraw = (NMCUSTOMDRAW*)pNMHDR; ...
snuk182's user avatar
  • 1,072
0 votes
0 answers
112 views

The tooltip docs say that A tooltip control always has the WS_POPUP and WS_EX_TOOLWINDOW window styles, regardless of whether you specify them when creating the control. Meanwhile, the way to custom ...
user avatar
0 votes
1 answer
276 views

i'm working on win32 listview controls,Want to achieve CustomDraw, but i got something strange。 I wonder why this dwDrawStage value is always equal to 1 bool rst = CreateWinEx(WC_LISTVIEW, NULL, ...
anti-gravity's user avatar
2 votes
1 answer
1k views

I have a TabControl where I needed to have custom tab colors. To do this, I set the DrawMode to OwnerDrawFixed, and overwrote the DrawItem event. However, when I change the DrawMode, it appears that ...
Tim's user avatar
  • 2,911
1 vote
1 answer
820 views

I'm using the stock Trackbar control. I would like to custom draw the ticks. Here I made an experiment, just trying to draw in the right place: case WM_NOTIFY: { NMHDR* nMhdr = (NMHDR*) lParam; ...
TheNextman's user avatar
  • 12.6k
-3 votes
1 answer
381 views

I have an outliner application (in Delphi 10.2 Tokyo) that I use for taking notes (I'll call it NoteApp). I have another application that I use for editing plain text (TextApp). Since I switch between ...
blackcanopus's user avatar
0 votes
1 answer
909 views

I am working with MFC and I have created succesfully custom-drawn menus. Each menu-item is measured and drawn correctly, except the mainlevel-items. The only thing I can't get done is redrawing the ...
Jaap Scheper's user avatar
1 vote
1 answer
801 views

I'm working on a custom WPF control that should visualize thousands of graphical primitives in a scrollable area. The core part of the control's template is the following: <Setter Property="...
Tecman's user avatar
  • 3,059
0 votes
1 answer
589 views

I'm working on a custom WPF control. The main purpose of this control is to visualize thousands of graphical primitives in a scrollable area. The core part of the control's template looks like this: &...
Tecman's user avatar
  • 3,059
2 votes
0 answers
819 views

I'm experimenting with using NM_CUSTOMDRAW instead of WM_DRAWITEM for bitmap buttons in my win32 app. The WM_DRAWITEM stuff works fine - except that it doesn't work under WINE with a desktop theme ...
littlenoodles's user avatar

15 30 50 per page
1
2 3 4 5