CnPack Forum


 
Subject: MessageBox问题
exeexe
新警察
Rank: 1



UID 573
Digest Posts 0
Credits 9
Posts 7
点点分 9
Reading Access 10
Registered 2004-11-20
Status Offline
Post at 2004-11-20 21:59  Profile | Blog | P.M. 
MessageBox
Top
exeexe
新警察
Rank: 1



UID 573
Digest Posts 0
Credits 9
Posts 7
点点分 9
Reading Access 10
Registered 2004-11-20
Status Offline
Post at 2004-11-20 22:00  Profile | Blog | P.M. 
Top
exeexe
新警察
Rank: 1



UID 573
Digest Posts 0
Credits 9
Posts 7
点点分 9
Reading Access 10
Registered 2004-11-20
Status Offline
Post at 2004-11-20 22:01  Profile | Blog | P.M. 
还有一个
MessageBox(0, 请输入, 提示, MB_OK + MB_ICONWARNING);
这样在任务栏中会出现一个窗口切换的按钮。
建议改成这样的:
MessageBox(handle, 请输入,提示, MB_OK + MB_ICONWARNING);
Top
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2004-11-21 10:48  Profile | Site | Blog | P.M. 
如果用 Handle 的话,如果代码不是在窗体里就没有 Handle 了,如果用 Application.Handle,如果当前单元没有引用 Forms单元,也编译不过,不过用 0会在任务栏出来按钮确实是没注意到的,考虑改进。建议使用 Application.MessageBox 这种风格比较好。




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
 




All times are GMT++8, the time now is 2024-10-31 08:53

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.005167 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP