首页上一页 1 下一页尾页 1 条记录 1/1页
C#实例宝典问题
发表在C#图书答疑
2010-05-06
是否精华
是
否
版块置顶:
是
否
1-18实例中关于
public IntPtr MouseNowPosition(int x,int y)
{
IntPtr OriginalHandle;
OriginalHandle = ((IntPtr)WindowFromPoint(x,y);
CurrentHandle = OriginalHandle;
while (OriginalHandle != ((IntPtr)0))
{
CurrentHandle = OriginalHandle;
OriginalHandle = GetParent(CurrentHandle);
}
return CurrentHandle;
}
刚学C#,不懂其中的原理,那位能否详细告知?
public IntPtr MouseNowPosition(int x,int y)
{
IntPtr OriginalHandle;
OriginalHandle = ((IntPtr)WindowFromPoint(x,y);
CurrentHandle = OriginalHandle;
while (OriginalHandle != ((IntPtr)0))
{
CurrentHandle = OriginalHandle;
OriginalHandle = GetParent(CurrentHandle);
}
return CurrentHandle;
}
刚学C#,不懂其中的原理,那位能否详细告知?