custom-draw

Win32 List-View Control SubItem padding for custom-drawn SubItems?

When using custom-draw (NM_CUSTOMDRAW) to draw the entire contents of a ListView SubItem (in Report/Details view), it would be nice to be able to apply the same left and right padding in my custom paint method that is applied by the control itself for non-custom-drawn items. Is there a way to programmatically retrieve this padding value...

Custom drawing Treeview / Treenode

In a normal WinForms TreeView, when you select a TreeNode, it highlights this in a blue, rectangle around the text of the TreeNode. I need a custom drawn treeview, that when selected, the highlighted area will extend to the edges of the actual treeview itself. instead of just surrounding the text. also, id like it to be gradient a little...

Win32: How to custom draw an Edit control?

i need to implement the functionality of EM_SETCUEBANNER, where a text hint appears inside an Edit control: The catch is that i cannot use version 6 of the Common Controls, which is what is required to get the Microsoft supplied implementation of a cue banner. i've looked into simply changing the text of the edit control, and the fon...

Custom draw CTreeCtrl: how to add font strike through?

I have implemented custom draw for an CTreeCtrl in my MFC Smart Device program. I have successfully changed the color of specific nodes of the CTreeCtrl. I am now trying to understand how to get the default font used to draw text in the control so I can add a strike-through to the font for certain nodes. How would I go about getting t...