📄 directx sdk 2006学习笔记1——框架.mht
字号:
=B6=E8=BF=98=E6=98=AF=E4=BB=8E=E5=AE=83=E7=9A=84=E5=85=A5=E5=8F=A3=E5=AD=A6=
=E4=B9=A0=E6=AF=94=E8=BE=83=E6=96=B9=E4=BE=BF=EF=BC=8C=E5=90=A6=E5=88=99=E5=
=AE=B9=E6=98=93=E8=BF=B7=E5=A4=B1=E5=9C=A8=E6=97=A0=E7=A9=B7=E6=97=A0=E5=B0=
=BD=E7=9A=84API=E5=92=8C=E5=B1=82=E5=B1=82=E5=8C=85=E8=A3=85=E4=B9=8B=E4=B8=
=AD=E3=80=82DXSDK2006=E7=9A=84=E6=A1=86=E6=9E=B6=E5=92=8C2003=E7=89=88=E7=
=9A=84DX9.0c=E6=A1=86=E6=9E=B6=E6=9C=89=E5=BE=88=E5=A4=A7=E7=9A=84=E4=B8=8D=
=E5=90=8C=E3=80=82=E9=A6=96=E5=85=88=E6=98=AF2003=E7=89=88=E7=9A=84=E6=A1=
=86=E6=9E=B6=E4=B8=AD=E6=8F=90=E4=BE=9B=E4=BA=86=E4=B8=80=E4=B8=AACD3DApp=
lication=E7=B1=BB=EF=BC=8C=E8=BF=99=E4=B8=AA=E7=B1=BB=E5=AF=B9=E4=BA=8E=E5=
=88=9D=E5=A7=8B=E5=8C=96=EF=BC=8C=E6=B8=85=E9=99=A4=EF=BC=8C=E4=BB=A5=E5=8F=
=8A=E6=B8=B8=E6=88=8F=E7=AA=97=E5=8F=A3=E7=9A=84=E5=88=9B=E5=BB=BA=EF=BC=8C=
=E6=B8=B8=E6=88=8F=E4=B8=BB=E5=BE=AA=E7=8E=AF=E8=BF=9B=E8=A1=8C=E4=BA=86=E5=
=8C=85=E8=A3=85=E3=80=82=E8=BF=99=E6=98=AF=E4=B8=80=E4=B8=AA=E4=B8=8D=E9=94=
=99=E7=9A=84=E7=B1=BB=EF=BC=8C=E4=B8=8D=E7=9F=A5=E9=81=93=E4=B8=BA=E4=BB=80=
=E4=B9=88=E5=9C=A82006=E7=89=88=E4=B8=AD=E5=8E=BB=E6=8E=89=E4=BA=86=E3=80=
=82=E4=B8=8D=E8=BF=87=E4=B8=8D=E8=A6=81=E7=B4=A7=EF=BC=8C2006=E7=89=88=E7=
=9A=84=E6=A1=86=E6=9E=B6=E4=B8=AD=E6=8F=90=E4=BE=9B=E7=9A=84=E4=B8=80=E4=BA=
=9BC=E5=8C=85=E8=A3=85=E5=87=BD=E6=95=B0=E5=B7=B2=E7=BB=8F=E8=B6=B3=E5=A4=
=9F=E4=BA=86=E3=80=82=E5=9C=A8=E7=9C=8B=E8=BF=99=E4=BA=9B=E5=87=BD=E6=95=B0=
=E4=B9=8B=E5=89=8D=EF=BC=8C=E6=88=91=E4=BB=AC=E8=BF=98=E6=98=AF=E5=85=88=E6=
=9D=A5=E7=9C=8B=E7=9C=8BSDK=E7=9B=AE=E5=BD=95=E4=B8=8B\Samples\C++=20
=
\Direct3D\Tutorials=E4=B8=AD=E6=9C=89=E4=BA=9B=E4=BB=80=E4=B9=88=E5=90=A7=
=E3=80=82Tut01_CreateDevice=E6=98=AF=E5=88=9B=E5=BB=BA=E6=A1=86=E6=9E=B6=EF=
=BC=8C=E8=BF=99=E4=B8=AA=E7=A8=8B=E5=BA=8F=E4=B8=8D=E7=94=A8=E6=A1=86=E6=9E=
=B6=EF=BC=8C=E7=A0=94=E7=A9=B6=E4=B8=80=E4=B8=8B=E6=9C=89=E5=8A=A9=E4=BA=8E=
=E4=BA=86=E8=A7=A3D3D=E7=9A=84=E5=A4=A7=E8=87=B4=E5=B7=A5=E4=BD=9C=E6=B5=81=
=E7=A8=8B=E3=80=82=E4=B8=8B=E9=9D=A2=E6=98=AFwinmain=E5=87=BD=E6=95=B0=E4=
=B8=AD=E7=9A=84=E4=B8=80=E9=83=A8=E5=88=86=E3=80=82</DIV>
<DIV> </DIV>
<DIV align=3Dleft><STRONG><SPAN> =
</SPAN></STRONG><SPAN=20
style=3D"COLOR: green">// Initialize Direct3D</SPAN></DIV>
<DIV align=3Dleft><STRONG><SPAN> =
</SPAN></STRONG><SPAN=20
style=3D"COLOR: blue">if</SPAN>( <SPAN style=3D"COLOR: =
black">SUCCEEDED( <SPAN=20
style=3D"COLOR: black">InitD3D</SPAN>( <SPAN=20
style=3D"COLOR: black">hWnd</SPAN><STRONG> ) ) =
)</STRONG></SPAN></DIV>
<DIV align=3Dleft><STRONG><SPAN> { =
</SPAN></STRONG></DIV>
<DIV align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN=20
style=3D"COLOR: green">// Show the window</SPAN></DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">ShowWindow</SPAN>( =
<SPAN=20
style=3D"COLOR: black">hWnd, <SPAN=20
style=3D"COLOR: black">SW_SHOWDEFAULT</SPAN><STRONG>=20
);</STRONG></SPAN></DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">UpdateWindow</SPAN>( =
<SPAN=20
style=3D"COLOR: black">hWnd<STRONG> );</STRONG></SPAN></DIV>
<DIV align=3Dleft> </DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// Enter the message=20
loop</SPAN></DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">MSG</SPAN><SPAN=20
style=3D"COLOR: black">msg</SPAN>; </DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">while</SPAN>( <SPAN=20
style=3D"COLOR: black">GetMessage( &<SPAN=20
style=3D"COLOR: black">msg</SPAN>, <SPAN style=3D"COLOR: =
black">NULL</SPAN>,=20
0, 0 ) )</SPAN></DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
{</SPAN></STRONG></DIV>
<DIV=20
=
align=3Dleft><STRONG><SPAN> &nbs=
p; =20
</SPAN></STRONG><SPAN style=3D"COLOR: =
black">TranslateMessage</SPAN>(=20
&<SPAN style=3D"COLOR: black">msg<STRONG> =
);</STRONG></SPAN></DIV>
<DIV=20
=
align=3Dleft><STRONG><SPAN> &nbs=
p;=20
</SPAN></STRONG><SPAN=20
style=3D"COLOR: black">DispatchMessage</SPAN>( &<SPAN=20
style=3D"COLOR: black">msg<STRONG> );</STRONG></SPAN></DIV>
<DIV =
align=3Dleft><STRONG><SPAN> =20
}</SPAN></STRONG></DIV>
<DIV><STRONG><SPAN> }</SPAN></STRONG></DIV>
<DIV>=E3=80=80=E3=80=80</DIV>
=
<DIV>=E3=80=80=E3=80=80=E5=9C=A8=E6=B6=88=E6=81=AF=E5=BE=AA=E7=8E=AF=E4=B9=
=8B=E5=89=8D=E6=9C=89=E4=B8=AA=E5=88=9D=E5=A7=8B=E5=8C=96=E8=AE=BE=E5=A4=87=
=E7=9A=84=E5=87=BD=E6=95=B0InitD3D( hWnd =
)=EF=BC=8C=E5=85=B6=E4=BB=A3=E7=A0=81=E5=A6=82=E4=B8=8B=EF=BC=9A</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft><SPAN=20
style=3D"COLOR: black">HRESULT</SPAN><SPAN=20
style=3D"COLOR: black">InitD3D</SPAN>( <SPAN style=3D"COLOR: =
black">HWND<SPAN=20
style=3D"COLOR: black">hWnd</SPAN><STRONG> )</STRONG></SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft>{</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">if</SPAN>( <SPAN=20
style=3D"COLOR: black">NULL<STRONG> =3D=3D ( </STRONG><SPAN=20
style=3D"COLOR: black">g_pD3D</SPAN><STRONG> =3D </STRONG><SPAN=20
style=3D"COLOR: black">Direct3DCreate9</SPAN>( <SPAN=20
style=3D"COLOR: black">D3D_SDK_VERSION</SPAN><STRONG> ) )=20
)</STRONG></SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"=20
=
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">return</SPAN><SPAN=20
style=3D"COLOR: black">E_FAIL</SPAN>;</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft> </DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN=20
style=3D"COLOR: black">D3DPRESENT_PARAMETERS</SPAN><SPAN=20
style=3D"COLOR: black">d3dpp</SPAN>; </DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">ZeroMemory</SPAN>( =
&<SPAN=20
style=3D"COLOR: black">d3dpp, <SPAN style=3D"COLOR: =
blue">sizeof</SPAN>(<SPAN=20
style=3D"COLOR: black">d3dpp</SPAN>) );</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">d3dpp</SPAN>.<SPAN=20
style=3D"COLOR: black">Windowed<STRONG> =3D </STRONG><SPAN=20
style=3D"COLOR: black">TRUE</SPAN>;</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">d3dpp</SPAN>.<SPAN=20
style=3D"COLOR: black">SwapEffect<STRONG> =3D </STRONG><SPAN=20
style=3D"COLOR: black">D3DSWAPEFFECT_DISCARD</SPAN>;</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: black">d3dpp</SPAN>.<SPAN=20
style=3D"COLOR: black">BackBufferFormat<STRONG> =3D </STRONG><SPAN =
style=3D"COLOR: black">D3DFMT_UNKNOWN</SPAN>;</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft> </DIV>
<DIV style=3D"MARGIN-LEFT: 21pt; TEXT-INDENT: 21pt" =
align=3Dleft><SPAN=20
style=3D"COLOR: blue">if</SPAN>( <SPAN style=3D"COLOR: =
black">FAILED( <SPAN=20
style=3D"COLOR: black">g_pD3D</SPAN>-><SPAN=20
style=3D"COLOR: black">CreateDevice</SPAN>( <SPAN=20
style=3D"COLOR: black">D3DADAPTER_DEFAULT</SPAN>, </SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 126pt; TEXT-INDENT: 42pt" =
align=3Dleft><SPAN=20
style=3D"COLOR: black">D3DDEVTYPE_HAL</SPAN>,<SPAN=20
style=3D"COLOR: black">hWnd,</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 168pt" align=3Dleft><SPAN=20
style=3D"COLOR: =
black">D3DCREATE_SOFTWARE_VERTEXPROCESSING</SPAN>,<STRONG>=20
&</STRONG><SPAN style=3D"COLOR: black">d3dpp, </SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 168pt" align=3Dleft>&<SPAN=20
style=3D"COLOR: black">g_pd3dDevice<STRONG> ) ) =
)</STRONG></SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
{</SPAN></STRONG></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN=20
style=3D"COLOR: blue">return</SPAN><SPAN=20
style=3D"COLOR: black">E_FAIL</SPAN>;</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
}</SPAN></STRONG></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">return</SPAN><SPAN=20
style=3D"COLOR: black">S_OK</SPAN>;</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt">}</DIV>
<DIV> </DIV>
<DIV style=3D"TEXT-INDENT: =
21pt">=E4=B8=BB=E8=A6=81=E6=98=AF=E8=B0=83=E7=94=A8<SPAN=20
style=3D"COLOR: black">Direct3DCreate9</SPAN><SPAN=20
style=3D"COLOR: black">=E5=92=8C</SPAN><SPAN=20
style=3D"COLOR: black">g_pD3D</SPAN>-><SPAN=20
style=3D"COLOR: black">CreateDevice</SPAN><SPAN=20
style=3D"COLOR: =
black">=E8=BF=99=E4=B8=A4=E4=B8=AA=E5=87=BD=E6=95=B0=E3=80=82=E6=9F=A5=E7=
=9C=8B</SPAN><SPAN=20
style=3D"COLOR: black">DXSDK</SPAN><SPAN=20
style=3D"COLOR: =
black">=E6=96=87=E6=A1=A3=E4=B8=AD=E5=85=B3=E4=BA=8E</SPAN><SPAN=20
style=3D"COLOR: black">D3DPRESENT_PARAMETERS</SPAN><SPAN=20
style=3D"COLOR: =
black">=E7=9A=84=E5=AE=9A=E4=B9=89=EF=BC=8C=E5=A4=A7=E8=87=B4=E4=BA=86=E8=
=A7=A3=E4=B8=80=E4=B8=8B=E3=80=82</SPAN></DIV>
<DIV style=3D"TEXT-INDENT: =
21pt">=E6=8E=A5=E4=B8=8B=E6=9D=A5=E8=A6=81=E5=85=B3=E5=BF=83=E7=9A=84=E5=B0=
=B1=E6=98=AF=E6=B6=88=E6=81=AF=E5=BE=AA=E7=8E=AF=E4=BA=86=EF=BC=8C=E5=9C=A8=
=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0<SPAN=20
style=3D"COLOR: =
black">MsgProc</SPAN>=E4=B8=AD=E5=A4=84=E7=90=86=E4=BA=86=E4=B8=A4=E4=B8=AA=
=E6=B6=88=E6=81=AF=EF=BC=8C=E4=B8=80=E4=B8=AA=E6=98=AF<SPAN=20
style=3D"COLOR: =
black">WM_DESTROY</SPAN>=EF=BC=8C=E9=87=8C=E9=9D=A2=E8=B0=83=E7=94=A8=E4=BA=
=86Cleanup=E5=87=BD=E6=95=B0=EF=BC=8C=E5=8F=A6=E4=B8=80=E4=B8=AA=E6=98=AF=
WM_PAINT=E5=87=BD=E6=95=B0=EF=BC=8C=E9=87=8C=E9=9D=A2=E8=B0=83=E7=94=A8=E4=
=BA=86Render=E5=87=BD=E6=95=B0=E3=80=82Cleanup=E5=87=BD=E6=95=B0=E5=BE=88=
=E7=AE=80=E5=8D=95=EF=BC=8C=E5=B0=B1=E6=98=AF=E8=B0=83=E7=94=A8D3D=E5=AF=B9=
=E8=B1=A1=E5=8F=8A=E5=85=B6=E8=AE=BE=E5=A4=87=E5=AF=B9=E8=B1=A1=E7=9A=84R=
elease=E5=87=BD=E6=95=B0=E9=87=8A=E6=94=BE=E8=B5=84=E6=BA=90=EF=BC=8C=E8=80=
=8CRender=E5=87=BD=E6=95=B0=E5=B0=B1=E6=98=AFD3D=E4=B8=AD=E6=9C=80=E9=87=8D=
=E8=A6=81=E7=9A=84=E5=87=BD=E6=95=B0=E4=BA=86=E3=80=82</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft><SPAN=20
style=3D"COLOR: black">VOID</SPAN><SPAN=20
style=3D"COLOR: black">Render</SPAN>()</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft>{</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">if</SPAN>( <SPAN=20
style=3D"COLOR: black">NULL=3D=3D<SPAN=20
style=3D"COLOR: black">g_pd3dDevice</SPAN>)</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"=20
=
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">return</SPAN>;</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft> </DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// Clear the =
backbuffer to a=20
blue color</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: =
black">g_pd3dDevice</SPAN>-><SPAN=20
style=3D"COLOR: black">Clear( 0, <SPAN style=3D"COLOR: =
black">NULL</SPAN>,=20
<SPAN style=3D"COLOR: black">D3DCLEAR_TARGET</SPAN>, <SPAN=20
style=3D"COLOR: black">D3DCOLOR_XRGB</SPAN>(0,0,255), 1.0f, 0=20
);</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// Begin the =
scene</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: blue">if</SPAN>( <SPAN=20
style=3D"COLOR: black">SUCCEEDED( <SPAN=20
style=3D"COLOR: black">g_pd3dDevice</SPAN>-><SPAN=20
style=3D"COLOR: black">BeginScene</SPAN>() ) )</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG>{</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"=20
=
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// Rendering of scene =
objects=20
can happen here</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"=20
=
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// End the =
scene</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"=20
=
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: =
black">g_pd3dDevice</SPAN>-><SPAN=20
style=3D"COLOR: black">EndScene();</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG>}</DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft> </DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: green">// Present the =
backbuffer=20
contents to the display</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" =
align=3Dleft><STRONG><SPAN> =20
</SPAN></STRONG><SPAN style=3D"COLOR: =
black">g_pd3dDevice</SPAN>-><SPAN=20
style=3D"COLOR: black">Present( <SPAN style=3D"COLOR: =
black">NULL</SPAN>,=20
<SPAN style=3D"COLOR: black">NULL</SPAN>, <SPAN=20
style=3D"COLOR: black">NULL</SPAN>, <SPAN=20
style=3D"COLOR: black">NULL</SPAN>)<STRONG>;</STRONG></SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 10.5pt; TEXT-INDENT: 10.5pt">}</DIV>
=
<DIV>=E3=80=80=E3=80=80=E4=B8=BB=E8=A6=81=E8=B0=83=E7=94=A8=E7=9A=84=E5=87=
=BD=E6=95=B0=E6=9C=89BeginScene, =
EndScene=E5=92=8CPresent=E5=87=BD=E6=95=B0=E3=80=82</DIV>
<DIV><SPAN> =20
=
</SPAN>=E5=AF=B9D3D=E5=BA=94=E7=94=A8=E7=A8=8B=E5=BA=8F=E6=9C=89=E4=BA=86=
=E5=A4=A7=E6=A6=82=E4=BA=86=E8=A7=A3=E4=B9=8B=E5=90=8E=E5=B0=B1=E5=8F=AF=E4=
=BB=A5=E7=9C=8B=E7=A9=BA=E6=A1=86=E6=9E=B6=E7=A8=8B=E5=BA=8F=E4=BA=86=E3=80=
=82=E8=BF=99=E4=B8=AA=E7=A8=8B=E5=BA=8F=E5=8F=AF=E4=BB=A5=E5=9C=A8Samples=
\C++\Direct3D\EmptyProject=E4=B8=AD=E6=89=BE=E5=88=B0=E3=80=82</DIV>
<DIV align=3Dcenter><IMG alt=3D""=20
=
src=3D"http://p.blog.csdn.net/images/p_blog_csdn_net/mikefeng/234914/r_wi=
nmain.gif"></DIV>
=
<DIV>=E3=80=80=E3=80=80=E4=BB=8EWinMain=E4=B8=AD=E7=9A=84=E8=B0=83=E7=94=A8=
=E5=8F=AF=E4=BB=A5=E7=9C=8B=E5=88=B0=EF=BC=8C=E6=A1=86=E6=9E=B6=E9=A6=96=E5=
=85=88=E8=AE=BE=E5=AE=9A=E4=B8=80=E5=A0=86=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=
=B0=EF=BC=8C=E5=BE=88=E5=A4=9A=E4=BA=8B=E6=83=85=E7=9A=84=E6=98=AF=E5=9C=A8=
=E7=94=A8=E6=88=B7=E8=87=AA=E5=B7=B1=E5=86=99=E7=9A=84=E5=9B=9E=E8=B0=83=E5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -