mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-29 02:05:04 +08:00
Removed MSG dependency on WindowsBase
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Interop;
|
||||
|
||||
namespace NTwain
|
||||
{
|
||||
@@ -25,10 +24,10 @@ namespace NTwain
|
||||
|
||||
bool IMessageFilter.PreFilterMessage(ref Message m)
|
||||
{
|
||||
MSG winmsg = default(MSG);
|
||||
MESSAGE winmsg = default(MESSAGE);
|
||||
winmsg.hwnd = m.HWnd;
|
||||
winmsg.lParam = m.LParam;
|
||||
winmsg.message = m.Msg;
|
||||
winmsg.message = (uint)m.Msg;
|
||||
winmsg.wParam = m.WParam;
|
||||
|
||||
return HandleWndProcMessage(ref winmsg);
|
||||
|
||||
Reference in New Issue
Block a user