What happened to DrawFocusRect()?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What happened to DrawFocusRect()? Do I need to use DllImport to call it
directly from user32.dll? Why is it not supported in the Graphics object?
 
U¿ytkownik "Greg Ennis said:
What happened to DrawFocusRect()? Do I need to use DllImport to call it
directly from user32.dll? Why is it not supported in the Graphics object?

System.Windows.Forms.ControlPaint.DrawFocusRectangle(...)

regards
Wiktor Zychla
 
Hi Greg,
What happened to DrawFocusRect()? Do I need to use DllImport to call it
directly from user32.dll?
Fortunately in this case, NO.
Those kind of methods you can find in System.Windows.Forms.ControlPaint
class.
 
* "=?Utf-8?B?R3JlZyBFbm5pcw==?= said:
What happened to DrawFocusRect()? Do I need to use DllImport to call it
directly from user32.dll? Why is it not supported in the Graphics object?

'System.Windows.Forms.ControlPaint.DrawFocusRectangle', or in the
listbox's 'DrawItem' event handler
'DrawItemEventArgs.DrawFocusRectangle'.
 
Back
Top