<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
在工作中我用到了 CFileDialog, 并想把它的默认路径为网络邻居. 开始时看MSDN, 没有头绪, 就上网找找, 还给我找到了. 方法:
CFileDialog dlg(
true
,
""
, NULL, OFN_OVERWRITEPROMPT
|
OFN_HIDEREADONLY,
"
All(*.*)|*.*; |EXE(*.exe, *.msi)|*.exe;*.msi||
"
,
0
) ;
dlg.m_ofn.lpstrInitialDir
=
"
::{208D2C60-3AEA-1069-A2D7-08002B30309D}
"
;
//
这里设置默认路径为网络邻居
其中CFileDialog构造函数里第四个参数OFN_HIDEREADONLY 是去掉CFileDialog界面上"以只读方式打开"的checkbox.
发表于 @ 2007年03月05日 10:39:00|评论(0<script type="text/javascript">AddFeedbackCountStack("1520766")</script>)|编辑