Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
DrawFocusRect (user32)
.
C# Signature:
[DllImport("user32.dll")]
static extern bool DrawFocusRect(IntPtr hDC, [In] ref RECT lprc);
Public Declare Auto Function DrawFocusRect Lib "user32" ( _
ByVal hdc As Integer, _
ByRef lpRect As Rect _
) As Integer
Sample Code:
Please add some!
VB.Net:
<StructLayout(LayoutKind.Explicit)> Public Structure Rect
<FieldOffset(0)> Public left As Integer
<FieldOffset(4)> Public top As Integer
<FieldOffset(8)> Public right As Integer
<FieldOffset(12)> Public bottom As Integer
End Structure
'Class to hold Win32 stuff:
Public Class Win32
Public Declare Auto Function DrawFocusRect Lib "user32" ( _
ByVal hdc As Integer, _
ByRef lpRect As Rect _
) As Integer
End Class
<StructLayout(LayoutKind.Explicit)> Public Structure Rect
<FieldOffset(0)> Public left As Integer
<FieldOffset(4)> Public top As Integer
<FieldOffset(8)> Public right As Integer
<FieldOffset(12)> Public bottom As Integer
End Structure
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
6/3/2013 5:41:04 PM - dahminator-75.174.65.168
The DrawFocusRect API
11/8/2009 5:48:41 PM - -67.168.202.202
The DrawFocusRect API
11/8/2009 5:48:41 PM - -67.168.202.202
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).