SetForegroundWindow与BringWindowToTop有什么不同, 前台窗口、活动窗口、顶层的TOP窗口三者有什么区别?
解决方案 »
- ActiveX Form里不能放ocx控件?
- 关于table 临时表连接问题
- mscomm通讯问题,如何发送大于127的数字
- 已设置DBGrideh的某一字段为checkboxes,如何将这个字段内符合条件的cell内的checkbox不可见或者ReadOnly
- delphi连接sql2000的问题
- 问一个很简单的问题
- 一篇好文章
- 请问我是DEPHI 6 + window 2000 + sql server , 在这样的环境下,我还需要安装ADO补丁吗
- 查出某目录下所有包含"test"字符串的文件来,如何做算法?
- 怎样在Delphi中将一个位图对象bmp1按指定比例转换成另一个位图对象bmp2
- Delphi
- 算法高手请进! 求Delphi中树的表示方法(不要告诉我用TreeView)
bringwindowtotop 如果窗口为顶层窗口,则该窗口被激活;如果窗口为子窗口,则相应的顶级
SetForegroundWindow 该函数将创建指定窗口的线程设置到前台,并且激活该窗口。键盘输入转向该窗口,并为用户改各种可视的记号。系统给创建前台窗口的线程分配的权限稍高于其他线程。
The BringWindowToTop function brings the specified window to the top of the Z order. If the window is a top-level window, it is activated. If the window is a child window, the top-level parent window associated with the child window is activated. SetForegroundWindow 该函数将创建指定窗口的线程设置到前台,并且激活该窗口。键盘输入转向该窗口,并为用户改各种可视的记号。系统给创建前台窗口的线程分配的权限稍高于其他线程。
The SetForegroundWindow function puts the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads.
bringwindowtotop 如果窗口为顶层窗口,则该窗口被激活;如果窗口为子窗口,则相应的顶级父窗口被激活。
任何时候系统中只能有一个顶层窗口是活动的。用户通过单击窗口(或其中的一个子窗口)前台窗口和后台窗口:
在Windows系统中,每个进程可运行多个线程,每个线程都能创建窗口。创建正在使用的窗口的线程称之为前台线程,这个窗口也称之为前台窗口。所有其他的线程都是后台线程,由后台线程所创建的窗口叫做后台窗口。