MFC编程实例

  • w0_550823
    了解作者
  • 9.9MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-22 10:13
    上传日期
MFC编程实例 (4-10章) pdf版
VC-MFC编程实例.rar
  • 07工具栏状态栏.pdf
    1.2MB
  • 04绘图.pdf
    4MB
  • 10控件窗口.pdf
    672.3KB
  • 06菜单.pdf
    892KB
  • 08视图.pdf
    875.7KB
  • 05用户界面实例.pdf
    1.6MB
  • 09对话框 对话条.pdf
    821.9KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/62899c3e16e0ca71411a8820/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/62899c3e16e0ca71411a8820/bg1.jpg"><div class="c x1 y1 w2 h2"><div class="t m0 x2 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#19979;&#36733;</div><div class="t m0 x3 h4 y3 ff2 fs1 fc1 sc0 ls0 ws0">&#31532;<span class="ff3">4</span>&#31456;<span class="_ _0"> </span>&#32472;<span class="_ _1"> </span>&#22270;</div><div class="t m0 x4 h5 y4 ff2 fs2 fc0 sc0 ls1 ws0">&#22312;&#21069;&#38754;&#20960;&#31456;&#20013;&#65292;<span class="_ _2"></span><span class="ff3">W<span class="_ _3"></span><span class="ls0 ws1">i n d o w s<span class="_"> </span><span class="ff2 ls2 ws0">&#20026;&#25105;&#20204;&#20570;&#20102;&#25152;&#26377;&#30340;&#32472;&#22270;&#24037;&#20316;</span></span></span></div><div class="t m1 x5 h6 y4 ff2 fs3 fc0 sc0 ls0 ws0">&#8212;</div><div class="t m0 x6 h7 y4 ff2 fs2 fc0 sc0 ls3 ws0">&#20174;&#32472;&#21046;&#19968;&#20010;&#31383;&#21475;&#30340;&#38750;&#23458;&#25143;&#21306;&#21040;&#32472;</div><div class="t m0 x7 h5 y5 ff2 fs2 fc0 sc0 ls4 ws0">&#21046;&#36890;&#29992;&#25511;&#20214;&#12290;&#26412;&#31456;&#23558;&#35752;&#35770;&#24590;&#26679;&#29992;<span class="_ _4"> </span><span class="ff3 ls0 ws2">M F C<span class="_ _5"></span></span><span class="ls0">&#30340;<span class="_ _6"></span><span class="ff3 ws2">C D C</span><span class="ls5">&#31867;&#32472;&#21046;&#25511;&#20214;&#21644;&#35270;&#22270;&#65292;&#25105;&#20204;&#23558;&#35752;&#35770;&#65306;</span></span></div><div class="t m0 x4 h5 y6 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="ff3 fs2">W<span class="ws2">i n d o w s</span><span class="ff2">&#21644;<span class="_ _6"></span></span><span class="ws2">M F C<span class="_ _5"></span></span><span class="ff2 ls6">&#25903;&#25345;&#30340;&#32472;&#22270;&#24037;&#20855;&#31867;&#22411;&#12290;</span></span></div><div class="t m0 x4 h5 y7 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="ff3 fs2">W<span class="_ _3"></span><span class="ws2">i n d o w s<span class="_"> </span><span class="ff2 ws0">&#21644;<span class="_ _6"></span></span>M F C<span class="_"> </span><span class="ff2 ls7 ws0">&#25903;&#25345;&#30340;&#32472;&#22270;&#27169;&#24335;&#21644;&#29305;&#24615;&#12290;</span></span></span></div><div class="t m0 x4 h5 y8 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2 ls8">&#20004;&#31181;&#23384;&#20648;&#20026;&#23558;&#26469;&#26174;&#31034;&#29992;&#30340;&#32472;&#22270;&#21629;&#20196;&#30340;&#26041;&#27861;&#65306;&#20803;&#25991;&#20214;<span class="_ _8"> </span><span class="ff3 ls0 ws2">( M e t a f i l e )</span><span class="ls0">&#21644;&#36335;&#24452;<span class="_ _2"></span><span class="ff3 ws2">( P a t h )</span>&#12290;</span></span></div><div class="t m0 x4 h5 y9 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2 ls9">&#24590;&#26679;&#22312;&#25238;&#21160;&#33394;<span class="_ _2"></span><span class="ff3 lsa">(dithered color)</span>&#21644;&#26410;&#32463;&#25238;&#21160;&#33394;<span class="_ _9"></span><span class="ff3 lsb">(nondithered color)</span><span class="ls0">&#20013;&#32472;&#22270;&#12290;</span></span></div><div class="t m0 x4 h5 ya ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2">&#20160;&#20040;&#26102;&#20505;<span class="_ _9"></span><span class="ff3">W<span class="ws2">i n d o w s<span class="_"> </span></span></span><span class="lsc">&#32472;&#21046;&#23427;&#30340;&#31383;&#21475;&#12290;</span></span></div><div class="t m0 x7 h8 yb ff4 fs5 fc1 sc0 ls0 ws0">4.1 <span class="ff5">&#35774;&#22791;&#29615;&#22659;</span></div><div class="t m0 x4 h7 yc ff2 fs2 fc0 sc0 lsd ws0">&#33509;&#33258;&#24049;&#32534;&#20889;&#19968;&#20010;&#20989;&#25968;&#22312;&#23631;&#24149;&#19978;&#30011;&#19968;&#26465;&#30452;&#32447;&#65292;&#23558;&#38656;&#35201;&#20197;&#19979;&#31867;&#22411;&#30340;&#35843;&#29992;&#21464;&#37327;&#65306;</div><div class="t m0 x4 h5 yd ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2">&#30452;&#32447;&#22352;&#26631;<span class="_ _9"></span><span class="ff3">(<span class="_ _5"></span></span>&#36215;&#28857;<span class="_ _5"></span><span class="ff3">x, y<span class="_ _9"></span></span>&#65292;&#32456;&#28857;<span class="_ _9"></span><span class="ff3">x, y)<span class="_ _9"></span></span>&#12290;</span></div><div class="t m0 x4 h7 ye ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2">&#32447;&#26465;&#39068;&#33394;&#12290;</span></div><div class="t m0 x4 h7 yf ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2">&#32447;&#26465;&#31895;&#32454;&#12290;</span></div><div class="t m0 x4 h7 y10 ff2 fs2 fc0 sc0 lsa ws0">&#33509;&#35201;&#20351;&#21151;&#33021;&#26356;&#22797;&#26434;&#20123;&#65292;&#36824;&#24517;&#39035;&#28155;&#21152;&#65306;</div><div class="t m0 x4 h5 y11 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2">&#22312;<span class="_ _6"></span><span class="ff3">(<span class="_ _6"></span></span><span class="lse">&#20687;&#32032;&#12289;&#33521;&#23544;&#25110;&#21400;&#31859;<span class="_ _a"></span><span class="ff3">)</span><span class="lsa">&#20013;&#25351;&#23450;&#36827;&#34892;&#32472;&#22270;&#30340;&#24230;&#37327;&#21333;&#20301;&#30340;&#33021;&#21147;&#12290;</span></span></span></div><div class="t m0 x4 h7 y12 ff2 fs4 fc0 sc0 ls0 ws0">&#9632;<span class="_ _7"> </span><span class="fs2 lsf">&#22312;&#25171;&#21360;&#26426;&#25110;&#19968;&#20010;&#22270;&#24418;&#25991;&#20214;&#20013;&#32472;&#21046;&#30452;&#32447;&#30340;&#33021;&#21147;&#12290;</span></div><div class="t m0 x4 h7 y13 ff2 fs2 fc0 sc0 ls10 ws0">&#20026;&#20102;&#26041;&#20415;&#65292;&#36824;&#24076;&#26395;&#23558;&#30452;&#32447;&#32472;&#21046;&#22312;&#20219;&#20309;&#26174;&#31034;&#22120;&#25110;&#32773;&#20219;&#20309;&#25171;&#21360;&#26426;&#19978;&#65292;&#32780;&#19981;&#24517;&#32771;&#34385;&#26174;&#31034;&#21345;&#25110;&#25171;</div><div class="t m0 x7 h7 y14 ff2 fs2 fc0 sc0 ls11 ws0">&#21360;&#26426;&#30340;&#31867;&#22411;&#12290;</div><div class="t m0 x4 h7 y15 ff2 fs2 fc0 sc0 ls8 ws0">&#22914;&#26524;&#32771;&#34385;&#25152;&#26377;&#36825;&#20123;&#23646;&#24615;&#65292;&#35813;&#20989;&#25968;&#30340;&#32467;&#26500;&#22914;&#19979;&#65306;</div><div class="t m0 x4 h9 y16 ff4 fs4 fc0 sc0 ls12 ws0">DrawLine (x1, y1, x2, y2, color, width, device, limits, units)</div><div class="t m0 x4 h7 y17 ff2 fs2 fc0 sc0 lsb ws0">&#34429;&#28982;&#30456;&#24403;&#30452;&#35266;&#65292;&#20294;&#35813;&#20989;&#25968;&#26377;&#19968;&#20010;&#38544;&#21547;&#30340;&#36153;&#29992;</div><div class="t m1 x8 h6 y17 ff2 fs3 fc0 sc0 ls0 ws0">&#8212;</div><div class="t m0 x9 h7 y17 ff2 fs2 fc0 sc0 ls13 ws0">&#27599;&#24403;&#30011;&#19968;&#26465;&#30452;&#32447;&#65292;&#25152;&#26377;&#36825;&#20123;&#21442;&#25968;&#23558;&#24517;&#39035;&#21387;</div><div class="t m0 x7 h7 y18 ff2 fs2 fc0 sc0 ls14 ws0">&#20837;&#22534;&#26632;&#20013;&#12290;&#21516;&#26102;&#65292;&#35813;&#20989;&#25968;&#20063;&#27809;&#26377;&#20445;&#30041;&#25193;&#23637;&#21151;&#33021;&#30340;&#20313;&#22320;&#12290;&#35201;&#28155;&#21152;&#21464;&#37327;&#65292;&#23558;&#24517;&#39035;&#23545;&#26087;&#20989;&#25968;&#32534;&#36753;&#20219;</div><div class="t m0 x7 h7 y19 ff2 fs2 fc0 sc0 ls0 ws0">&#20309;&#24341;&#29992;&#12290;</div><div class="t m0 x4 h7 y1a ff2 fs2 fc0 sc0 ls10 ws0">&#22240;&#27492;&#65292;&#24590;&#26679;&#25165;&#33021;&#20943;&#23569;&#38656;&#35201;&#30340;&#35843;&#29992;&#21464;&#37327;&#30340;&#25968;&#30446;&#24182;&#39044;&#30041;&#25193;&#23637;&#31354;&#38388;&#21602;&#65311;&#19968;&#31181;&#26041;&#27861;&#26159;&#20889;&#19968;&#20010;&#21253;&#21547;</div><div class="t m0 x7 h5 y1b ff2 fs2 fc0 sc0 ls7 ws0">&#20989;&#25968;&#25152;&#38656;&#30340;&#22823;&#22810;&#25968;&#21464;&#37327;&#30340;<span class="_ _8"> </span><span class="ff3 ls0 ws3">C + +<span class="_"> </span></span><span class="ls15">&#31867;&#65292;&#24182;&#23558;&#35813;&#31867;&#20316;&#20026;&#19968;&#20010;&#21464;&#37327;&#36827;&#34892;&#20256;&#36755;&#12290;&#29978;&#33267;&#21487;&#20197;&#20351;&#35813;&#31867;&#29992;&#19968;&#20123;</span></div><div class="t m0 x7 h7 y1c ff2 fs2 fc0 sc0 ls8 ws0">&#21512;&#27861;&#30340;&#40664;&#35748;&#20540;&#26500;&#36896;&#33258;&#24049;&#65292;&#20197;&#20415;&#22312;&#29305;&#27530;&#22330;&#21512;&#20013;&#20351;&#29992;&#12290;</div><div class="t m0 x4 h5 y1d ff3 fs2 fc0 sc0 ls8 ws0">W<span class="_ _3"></span><span class="ls0 ws4">i n d o w s<span class="_"> </span><span class="ff2 ls13 ws0">&#20351;&#29992;&#19968;&#20010;&#31216;&#20026;&#35774;&#22791;&#29615;&#22659;(Device <span class="_ _8"> </span><span class="ls16">Context)&#30340;&#23545;&#35937;&#30340;&#26041;&#27861;</span></span></span></div><div class="t m1 xa h6 y1d ff2 fs3 fc0 sc0 ls0 ws0">&#8212;</div><div class="t m0 xb h7 y1d ff2 fs2 fc0 sc0 ls17 ws0">&#20294;&#35813;&#23545;&#35937;&#30340;&#21019;&#24314;&#27809;&#26377;</div><div class="t m0 x7 h5 y1e ff2 fs2 fc0 sc0 ls0 ws0">&#19968;&#20010;<span class="_ _5"></span><span class="ff3 ws5">C + +<span class="_"> </span></span>&#31867;&#65292;&#22240;&#20026;<span class="_ _a"></span><span class="ff3">W<span class="ws5">i n d o w s<span class="_"> </span></span></span><span class="ls1">&#26089;&#20110;&#24182;&#23384;&#22312;&#20110;<span class="_ _2"></span></span><span class="ff3 ws5">C + +<span class="_"> </span></span><span class="ls18">&#20043;&#22806;&#12290;&#35774;&#22791;&#29615;&#22659;&#23545;&#35937;&#29992;&#19968;&#20123;&#40664;&#35748;&#20540;&#21019;&#24314;&#65292;&#21487;&#20197;&#29992;</span></div><div class="t m0 x7 h5 y1f ff2 fs2 fc0 sc0 ls19 ws0">&#23427;&#20204;&#21019;&#24314;&#40664;&#35748;&#30340;&#35774;&#22791;&#29615;&#22659;&#12290;&#24212;&#29992;<span class="_ _b"> </span><span class="ff3">W<span class="ls0 ws6">i n d o w s<span class="_"> </span></span></span><span class="ls1a">&#32472;&#21046;&#19968;&#30452;&#32447;&#65292;&#25152;&#38656;&#30340;&#26159;&#19968;&#20010;&#35774;&#22791;&#29615;&#22659;&#23545;&#35937;&#30340;&#25351;&#38024;&#21644;</span></div><div class="t m0 x7 h5 y20 ff2 fs2 fc0 sc0 ls1b ws0">&#30452;&#32447;&#22352;&#26631;&#65292;&#35774;&#22791;&#29615;&#22659;&#23545;&#35937;&#30340;&#25351;&#38024;&#21483;&#20570;&#35774;&#22791;&#29615;&#22659;&#21477;&#26564;(<span class="_ _8"> </span><span class="ff3 ls0 ws2">H D C<span class="_"> </span></span><span class="ls0">)&#12290;</span></div><div class="t m0 x4 h9 y21 ff4 fs4 fc0 sc0 ls0 ws7">: : M o v e T<span class="_ _c"></span><span class="ls1c ws0">o(HDC hdc,int x,int y);</span></div><div class="t m0 x4 h9 y22 ff4 fs4 fc0 sc0 ls0 ws7">: : L i n e T<span class="_ _c"></span><span class="ls1c ws0">o(HDC hdc,int x,int y);</span></div><div class="t m0 x4 h5 y23 ff2 fs2 fc0 sc0 ls1d ws0">&#35201;&#32472;&#21046;&#19968;&#20010;&#23436;&#25972;&#30340;&#24418;&#29366;&#65292;:<span class="_ _7"> </span><span class="ff3 ls0 ws8">: M o v e T<span class="_ _c"></span><span class="ls1e ws0">o( )<span class="_ _6"></span><span class="ff2 ls1f">&#20989;&#25968;&#21482;&#34987;&#35843;&#29992;&#19968;&#27425;&#12290;&#28982;&#21518;&#65292;<span class="_ _d"> </span></span><span class="ls0 ws8">: : L i n e T<span class="_ _3"></span><span class="ls20 ws0">o( )<span class="_ _6"></span><span class="ff2 ls21">&#20989;&#25968;&#34987;&#35843;&#29992;&#65292;</span></span></span></span></span></div><div class="t m0 x7 h5 y24 ff2 fs2 fc0 sc0 ls22 ws0">&#27809;&#26377;&#19968;&#20010;&#22810;&#20313;&#30340;&#21464;&#37327;&#34987;&#21387;&#36827;&#22534;&#26632;(&#35265;&#22270;<span class="_ _7"> </span><span class="ff3 ls0 ws2">4 - 1</span><span class="ls0">)&#12290;</span></div></div></div><div class="pi" data-data='{"ctm":[1.860465,0.000000,0.000000,1.860465,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • MFC入门
      MFC入门是pdf格式的,压缩包中含有pdf的浏览器
    • MFC五子棋
      MFC五子棋MFC五子棋MFC五子棋MFC五子棋MFC五子棋MFC五子棋MFC五子棋
    • mfc指南
      基础的mfc 参考手册 入门资料
    • mfc大全
      It's very good!
    • 中文MFC
      中文的MFC类库详解,供大家编程用
    • MFC入门
      MFC入门必备知识 比较简单的介绍
    • mfc教程
      mfc教程。mfc教程
    • MFC easysize
      运用该文件,可以是MFC界面部件自适应变化,满足窗体拉伸等需求变化
    • mfc学习
      这个是个学习vc的mfc编程的例子
    • MFC教程
      MFC教程MFC教程MFC教程MFC教程