怎样取得窗口的句柄????

打雷啦的专栏 2004-08-11 05:49:29
我要用 bringwindowtotop(ulong hwnd) 函数
怎样取得窗口的句柄???
...全文
203 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
wjlforever 2004-09-08
  • 打赏
  • 举报
回复
同喜同喜,又学了一个东东!
10975037 2004-09-07
  • 打赏
  • 举报
回复
恭喜
fibbery 2004-08-13
  • 打赏
  • 举报
回复
哈哈……原来pb也提供了一个和那个api差不多的东西,看来我真的是已经很菜了。
打雷啦的专栏 2004-08-13
  • 打赏
  • 举报
回复
我的问题解决了,不要用API

窗口.setposition(topmost!)
fibbery 2004-08-12
  • 打赏
  • 举报
回复
声明:
Function Long SetWindowPos(Long hwnd,Long order,Long x,Long y,Long cx,Long cy,Long uflag) Library ″user32″
HWND hWnd, // handle to window
long order, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
当uFlags=3时保持窗口的大小位置不变。order= -1 最上层。
所以,调用方式:
SetWindowPos(Handle(This),-1,0,0,0,0,3)
lixusheng 2004-08-12
  • 打赏
  • 举报
回复
楼上最好详细说一下吧!
问题很好。
fibbery 2004-08-12
  • 打赏
  • 举报
回复
楼主是想让窗口总在最上面吗?调用api吧!
SetWindowPos(wndHandle, HWND_TOPMOST, top, left, bottom, right,flag)
详细的信息可以在网上查一下。
jiangjildy 2004-08-12
  • 打赏
  • 举报
回复
恐怕这又是单文档多文档应用的问题.
lzheng2001 2004-08-11
  • 打赏
  • 举报
回复
哪是因为bringwindowtotop(ulong hwnd)执行后,只是当次有效,若有其它窗口覆盖,要再次执行bringwindowtotop(ulong hwnd)才行
鸡翅多 2004-08-11
  • 打赏
  • 举报
回复
你的api函数声明的有问题
打雷啦的专栏 2004-08-11
  • 打赏
  • 举报
回复
可以了,但是窗口还是没有跳的最外面。

我如果打开网页,或在word ,或做其他事情,他就不能跳到最外面
fibbery 2004-08-11
  • 打赏
  • 举报
回复
handle()不可以?

680

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder API 调用
社区管理员
  • API 调用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧