Remove User32.cs and implement Focused methods in NativeMethodWrapper

This commit is contained in:
amaitland
2014-12-30 16:23:36 +10:00
parent 592149ea21
commit 584baa2170
5 changed files with 18 additions and 31 deletions
+11 -4
View File
@@ -11,8 +11,15 @@ using namespace System;
namespace CefSharp
{
void NativeMethodWrapper::CopyMemoryUsingHandle(IntPtr^ dest, IntPtr^ src, int numberOfBytes)
{
CopyMemory(dest->ToPointer(), src->ToPointer(), numberOfBytes);
}
void NativeMethodWrapper::CopyMemoryUsingHandle(IntPtr^ dest, IntPtr^ src, int numberOfBytes)
{
CopyMemory(dest->ToPointer(), src->ToPointer(), numberOfBytes);
}
bool NativeMethodWrapper::IsFocused(IntPtr handle)
{
// Ask Windows which control has the focus and then check if it's one of our children
auto focusControl = GetFocus();
return focusControl != 0 && (IsChild((HWND)handle.ToPointer(), focusControl) == 1);
}
}