本文整理汇总了C#中ManagedWinapi.Windows.SystemWindow.SendGetMessage方法的典型用法代码示例。如果您正苦于以下问题:C# SystemWindow.SendGetMessage方法的具体用法?C# SystemWindow.SendGetMessage怎么用?C# SystemWindow.SendGetMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ManagedWinapi.Windows.SystemWindow
的用法示例。
在下文中一共展示了SystemWindow.SendGetMessage方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromSystemWindow
/// <summary>
/// Get a SystemTreeView reference from a SystemWindow (which is a tree view)
/// </summary>
public static SystemTreeView FromSystemWindow(SystemWindow sw)
{
if (sw.SendGetMessage(TVM_GETCOUNT) == 0 && sw.ClassName != "SysTreeView32") return null;
return new SystemTreeView(sw);
}
示例2: FromSystemWindow
/// <summary>
/// Get a SystemListView reference from a SystemWindow (which is a list view)
/// </summary>
public static SystemListView FromSystemWindow(SystemWindow sw)
{
if (sw.SendGetMessage(LVM_GETITEMCOUNT) == 0) return null;
return new SystemListView(sw);
}
示例3: FromSystemWindow
/// <summary>
/// Get a SystemListBox reference from a SystemWindow (which is a list box)
/// </summary>
public static SystemListBox FromSystemWindow(SystemWindow sw)
{
if (sw.SendGetMessage(LB_GETCOUNT) == 0) return null;
return new SystemListBox(sw);
}
示例4: FromSystemWindow
/// <summary>
/// Get a SystemTreeView reference from a SystemWindow (which is a tree view)
/// </summary>
public static SystemTreeView FromSystemWindow(SystemWindow sw)
{
if (sw.SendGetMessage(TVM_GETCOUNT) == 0) return null;
return new SystemTreeView(sw);
}