社区
C#
帖子详情
BringToFront不好用,求MSDN未公开的API
sanbrother
2006-11-09 01:32:32
求MSDN未公开的API,用于窗口前端显示的。
...全文
220
9
打赏
收藏
BringToFront不好用,求MSDN未公开的API
求MSDN未公开的API,用于窗口前端显示的。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
sanbrother
2006-11-14
打赏
举报
回复
This function : SwitchToThisWindow()
sanbrother
2006-11-09
打赏
举报
回复
谢谢各位
sanbrother
2006-11-09
打赏
举报
回复
No mark, ^*^
Waiting for answer ^*^
huing
2006-11-09
打赏
举报
回复
没有听说过,
mark
wdy9927
2006-11-09
打赏
举报
回复
private const int WS_SHOWNORMAL = 1;
wdy9927
2006-11-09
打赏
举报
回复
//是说这2个么?
[DllImport("User32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow);
[DllImport("User32.dll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);
//以上的方法声明为私有,对其进一步包装,
/// <summary>
/// 功能:HandleRunningInstance静态方法为获取应用程序句柄,设置应用程序为前台运行,并返回bool值。
/// 实现:确保窗口没有被最小化或最大化。
/// 设置为前台显示。
/// </summary>
/// <param name="instance">准备设置成前台运行的程序</param>
/// <returns></returns>
private bool HandleRunningInstance(Process instance)
{
//确保窗口没有被最小化或最大化
ShowWindowAsync(instance.MainWindowHandle, WS_SHOWNORMAL);
//设置为foreground window
return SetForegroundWindow(instance.MainWindowHandle);
}
sanbrother
2006-11-09
打赏
举报
回复
双击托盘图标的时候,如果FORM是隐藏的,还是好用的。
如果它没隐藏,而是在其它FORM下面,就不好用了。网上说有个未公开的API,我忘了叫什么了。
bitpolar
2006-11-09
打赏
举报
回复
咋不好用了? 我用的还可以
稍微有点无敌
2006-11-09
打赏
举报
回复
BringToFront??是什么东西啊
用来做什么啊
走近VB.Net(一),VB中的族,类,对象(摘录部分
MSDN
)
<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23
MSDN
*/google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"
Windows
API
函数使用技巧
<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23
MSDN
*/google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"
Microsoft Win32 to Microsoft .NET Framework
API
Map
documentation in the
MSDN
® library. Alphabetical Win32 Category List A-C Atom functions Color functions Bitmap functions Combo box functions ...
智能客户端(SmartClient)
<!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23
MSDN
*/google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--><script type="text/javascript"
VS2008下使用托管代码控制Windows Mobile Device Emulators
在听黎波老师的Webcast-Visual Studio 2008 移动...今天在
msdn
上看到了Jim Wilson写的” How To: Programmatically Control the Windows Mobile Device Emulators from .NET”一文,觉得很有必要和大家分享一下。 ...
C#
110,579
社区成员
642,559
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章