open_stdafx.shtml
来自「mfc资源大全包含MFC编程各个方面的源码」· SHTML 代码 · 共 42 行
SHTML
42 行
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Zafir Anjum">
<TITLE>DevStudio Macros - Open stdafx.h and other macros</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>
<CENTER>
<H3>
<FONT COLOR="#AOAO99">Open stdafx.h and other macros</FONT></H3></CENTER>
<CENTER><H3><HR></H3></CENTER>
These macros were contributed by <A HREF="mailto:IanSouthwell@ApexSystems.COM">Ian Southwell</A>
<P>Here is one to open the stdafx.h of the current project.
<PRE><TT><FONT COLOR="#990000">
Sub stdafx()
'DESCRIPTION: Opens the stdafx.h file of the current project.
proj_path = ActiveProject.fullname
ext = ""
pos = len (proj_path)
Do While ext <> "\"
ext = Mid(proj_path, pos, 1)
pos = pos -1
Loop
proj_dir = left(proj_path, pos+1) & "stdafx.h"
documents.open proj_dir
End Sub
</FONT></TT></PRE>
<P>Something else I found a pain was having to change from the keyboard to
the mouse because the MDI window wasn't in the correct place or the
wrong size.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?