Questions tagged [ownerdrawn]

This allows the user to custom draw controls at run time in the Win32 Api. Any existing control can have its appearance altered through the paint message. This is C, C++,C# and Delphi applicable.

When you are changing the appearance of most any Win32 controls, you specify the _OWNERDRAW flag. This will then allow you to intercept the paint messages of desired control.

184 questions
-1
votes
1 answer

listbox ownerdrawn items vb2008

I need to draw each item in a listbox based on the text the items that is about to be added or the text it contains. Then I need to place an icon at the beginning of the listbox, with two other colors and icons depending on words I specify, e.g,…
Smith
  • 5,765
  • 17
  • 102
  • 161
-1
votes
1 answer

Get Window Object in WPF ResourceDictionary based window

In VS2008, I add a Resource Dictionary template in my solution, I named this template as "MyWinStyle.xaml". Below is the style used in my window: ......
CharlieShi
  • 888
  • 3
  • 17
  • 43
-2
votes
1 answer

Making a transparent TListBox in Delphi

A transparent TListBox: type TListBox = class(StdCtrls.TListBox) private { Private declarations } protected { Protected declarations } procedure CreateParams(var Params: TCreateParams); override; procedure…
maxfax
  • 4,281
  • 12
  • 74
  • 120
-7
votes
1 answer

Winforms owner-drawn controls and resizing

I am designing a control (below) called ViewPanel. Essentially it's just a panel that draws it's Text property as a title. To do this, I adjust the DisplayRectangle property to allow enough space at the top to draw some text. The problem I am…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
1 2 3
12
13