Questions tagged [ondrawitem]

20 questions
0
votes
1 answer

Why the DrawItem method of my owner draw listbox can't be called

I try to write a owner draw listbox with WTL. My code looks like this template class ATL_NO_VTABLE CMyListBoxImpl : public CWindowImpl< T, TBase, TWinTraits >, public…
sili
  • 3
  • 3
0
votes
0 answers

override OnDrawItem (CheckedListBox)

I have a problem with customized CheckedListBox class. I've got the code that uses custom ComboBox class with override OnDrawItem (to include pictures). My goal is to change appearance so that the items appear in CheckedListBox class (also with…
c4551u5
  • 111
  • 1
  • 6
0
votes
2 answers

Vertical Text on Right-Aligned TabControl

Trying to have the text on each tab of the tabcontrol to be displayed vertically. Being that I've never forayed into controls and what not, i'm sorta stuck. Found some code to get the text to display as if it were rotated to the left. I would like…
bbqchickenrobot
  • 3,592
  • 3
  • 45
  • 67
0
votes
1 answer

OwnerDraw DrawItem event on my combobox also changes the Text property value

My question is basically, does implementing DrawItem for my ComboBox in WinForms, change my Text property, why and I can I stop it? Because my OwnerDraw event works perfectly except the Text property "also" gets set to the same logic as all the…
PandaWood
  • 8,086
  • 9
  • 49
  • 54
0
votes
1 answer

MFC ComboBox DrawItem Issue

I am writing a DrawItem override method to modify an application so the text in the ComboBox DropDowns are all centred using the pDC->DrawText function parsing DT_SINGLELINE|DT_VCENTER as the final parameter. The issue I'm having at the moment is…
ghb82
  • 33
  • 2
  • 4
1
2