@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Definition: struct READERMODEINFO { public TODO; } !!!!VB Definition: <StructLayout(LayoutKind.Sequential)> Private Structure READERMODEINFO Dim cbSize As UInt32 Dim hwnd As IntPtr Dim fFlags As UInt32 Dim prc As IntPtr Dim pfnScroll As ReaderScrollCallbackDelegate Dim fFlags2 As TranslateDispatchCallbackDelegate Dim lParam As IntPtr End Structure !!!!User-Defined Field Types: [ReaderScroll] [TranslateDispatch] !!!!Notes: VB.Net Useage Example: <DllImport("Comctl32.dll", EntryPoint:="#383", _ CallingConvention:=CallingConvention.StdCall)> _ Private Shared Sub DoReaderMode(ByRef prmi As READERMODEINFO) End Sub <StructLayout(LayoutKind.Sequential)> Private Structure READERMODEINFO Dim cbSize As UInt32 Dim hwnd As IntPtr Dim fFlags As UInt32 Dim prc As IntPtr Dim pfnScroll As ReaderScrollCallbackDelegate Dim fFlags2 As TranslateDispatchCallbackDelegate Dim lParam As IntPtr End Structure Private Sub SetReaderMode() Dim SetReaderModeInfo As READERMODEINFO Dim rect As New RECT(Me.Width / 2 - 20, Me.Height / 2 - 20, Me.Width / 2 + 20, Me.Height / 2 + 20) Dim pnt As IntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(rect)) Marshal.StructureToPtr(rect, pnt, True) SetReaderModeInfo = New READERMODEINFO SetReaderModeInfo.hwnd = Me.Handle SetReaderModeInfo.fFlags = 1 SetReaderModeInfo.prc = pnt SetReaderModeInfo.pfnScroll = New ReaderScrollCallbackDelegate(AddressOf ReaderScrollCallback) SetReaderModeInfo.fFlags2 = New TranslateDispatchCallbackDelegate(AddressOf TranslateDispatchCallback) SetReaderModeInfo.lParam = IntPtr.Zero SetReaderModeInfo.cbSize = Marshal.SizeOf(SetReaderModeInfo) DoReaderMode(SetReaderModeInfo) Marshal.FreeHGlobal(pnt) End Sub Private Delegate Function ReaderScrollCallbackDelegate(ByRef prmi As READERMODEINFO, dx As Integer, dy As Integer) As Boolean Private Delegate Function TranslateDispatchCallbackDelegate(ByRef lpmsg As MSG) As Boolean Private Function TranslateDispatchCallback(ByRef lpmsg As MSG) As Boolean Return False End Function Private Function ReaderScrollCallback(ByRef prmi As READERMODEINFO, dx As Int32, dy As Int32) As Boolean Return True End Function Documentation: READERMODEINFO@msdn on MSDN
Edit Structures.READER...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.