mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-18 17:47:57 +08:00
Some CA updates.
This commit is contained in:
@@ -63,11 +63,11 @@ namespace NTwain
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="WindowsFormsMessageLoopHook"/> class.
|
||||
/// </summary>
|
||||
/// <param name="hwnd">The handle to the app window.</param>
|
||||
/// <param name="windowHandle">The handle to the app window.</param>
|
||||
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
||||
public WindowsFormsMessageLoopHook(IntPtr hwnd)
|
||||
public WindowsFormsMessageLoopHook(IntPtr windowHandle)
|
||||
{
|
||||
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||
|
||||
if (!System.Windows.Forms.Application.MessageLoop)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace NTwain
|
||||
{
|
||||
ThrowInvalidOp();
|
||||
}
|
||||
Handle = hwnd;
|
||||
Handle = windowHandle;
|
||||
SyncContext = sync;
|
||||
}
|
||||
internal override string InvalidMessage
|
||||
@@ -133,11 +133,11 @@ namespace NTwain
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="WpfMessageLoopHook"/> class.
|
||||
/// </summary>
|
||||
/// <param name="hwnd">The handle to the app window.</param>
|
||||
/// <param name="windowHandle">The handle to the app window.</param>
|
||||
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
||||
public WpfMessageLoopHook(IntPtr hwnd)
|
||||
public WpfMessageLoopHook(IntPtr windowHandle)
|
||||
{
|
||||
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||
|
||||
if (System.Windows.Application.Current == null ||
|
||||
!System.Windows.Application.Current.Dispatcher.CheckAccess())
|
||||
@@ -149,7 +149,7 @@ namespace NTwain
|
||||
{
|
||||
ThrowInvalidOp();
|
||||
}
|
||||
Handle = hwnd;
|
||||
Handle = windowHandle;
|
||||
SyncContext = sync;
|
||||
}
|
||||
internal override string InvalidMessage
|
||||
|
Reference in New Issue
Block a user