powerbuilder 如何屏蔽系统提示框

2025-04-18 23:43:10

1、新建一窗口,上面放置一按钮对象cb_msg,cb_msg的click事件代码-,Open('msg','这是一个测试关闭消息窗口的例子')

powerbuilder 如何屏蔽系统提示框

2、//---在窗口Local external Functions声明以下API函,Functio艘绒庳焰n long FindWind泠贾高框owA (String lpClassName , String lpWindowName ) Library "user32.dll"

powerbuilder 如何屏蔽系统提示框

3、//---窗口的open事件代码,Timer(2)//触发关闭消息窗口代码的时间间隔

powerbuilder 如何屏蔽系统提示框

4、//---Timer事件代码,Ulong handle,String ls_null,SetNull(ls_null),//获得该消息窗口的句柄

powerbuilder 如何屏蔽系统提示框

5、handle = FindWindowA(ls_null,'msg')//字符串"msg"为消息窗口的标题名称

powerbuilder 如何屏蔽系统提示框

6、If Iswindow(handle) Then,//向WINDOWS发送消息关闭窗口,256为wm_keydown消息的整型值,Post(handle,256,13,0),End If。

powerbuilder 如何屏蔽系统提示框
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢