📄 open_stdafx.shtml.htm
字号:
<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" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td><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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -