9273.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 查一下</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 查一下</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:ericson@tpts4.seed.net.tw">Eric Tseng</a> on January 16, 1999 at 21:35:53:<p>
In Reply to: <a href="9249.html">Re: 查一下</a> posted by cww on January 15, 1999 at 16:25:11:<p>
: 嗯,我的WIN32.HLP没有GetLongPathName<br>: : 另GetFullPathName()的功能不应该是只要传入档名,<br>: : 即可取得路径?为何传入任何档名,皆传回<br>: : "C:\MY DOCUMENTS"?<br>: 不会啊,至少我testing就不会这样子<p>我在Microsoft vb newsgroup 上也提出同样问题,得到下面的答覆,谨供参考!<br>GetFullPathName simply expands a file name relative to the current drive and<br>directory . It doesn't check if the file name is valid or if the file<br>exists. E.g if your current directory is c:\my documents then if you supply<br>a file name of 'afile.ext' then you'll get a return value of 'c:\my<br>documents\afile.ext'. If you supply '..\afile.ext' (where '..' means go up 1<br>level) you'll get a return value of 'c:\afile.ext'. If, however, you give a<br>fully expanded file name then you'll get the same name returned e.g.<br>'c:\afile.ext' will return 'c:\afile.ext'<p>另外再请教一个问题,要如何以VB程式背景侦测全域视窗的讯息?例如AUTO SHUTDOWN<br>如何侦测MOUSE,KEYBOARD及modem有无动作?Subclassing只能拦截送至自己程式视窗的<br>讯息,而如果要拦截所有讯息(不论是否送给自己),如何能不影响其他程式之执行?
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9273-->
</ul><!--end: 9273-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?