• PUDN用户
    了解作者
  • Visual C++
    开发工具
  • 711KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 14
    下载次数
  • 2009-01-07 16:06
    上传日期
拥有美丽的外观软件就成功了一半讲述界面编程方面的知识
VC.rar
  • www.pudn.com.txt
    218B
  • Visual C++界面编程.pdf
    948.6KB
内容介绍
<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/625dce56131e9f3c1e01f4a7/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/625dce56131e9f3c1e01f4a7/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Visual C++&#30028;&#38754;&#32534;&#31243; </div><div class="t m0 x2 h3 y2 ff1 fs1 fc1 sc1 ls1 ws0">&#65339;&#21069;&#35328;&#65306;&#65341;<span class="sc2">&#25317;<span class="_ _0"></span>&#26377;&#32654;&#20029;&#30340;&#22806;&#35266;&#65292;<span class="_ _0"></span>&#36719;&#20214;&#23601;&#25104;&#21151;&#20102;&#19968;&#21322;&#12290;<span class="_ _0"></span>&#30028;&#38754;&#30001;&#25511;&#20214;&#12289;<span class="_ _0"></span>&#24037;&#20855;&#26639;&#12289;&#33756;<span class="_ _0"></span>&#21333;&#12289;&#31383;&#20307;&#31561;&#20803;<span class="_ _0"></span>&#32032;&#32452;&#25104;&#65292;&#23545;&#20182;&#20204;&#36827;<span class="_ _0"></span>&#34892;&#32654;</span></div><div class="t m0 x2 h4 y3 ff1 fs1 fc1 sc2 ls1 ws0">&#21270;&#23601;&#33021;&#24471;&#21040;&#19968;&#20010;&#32654;&#20029;&#30340;&#30028;&#38754;&#12290;<span class="ff2"> </span></div><div class="t m0 x2 h4 y4 ff1 fs1 fc2 sc3 ls1 ws0">&#35753;&#25511;&#20214;&#26356;&#37266;&#30446;<span class="ff2 fc1 sc2"> </span></div><div class="t m0 x2 h4 y5 ff2 fs1 fc1 sc2 ls1 ws0"> </div><div class="t m0 x2 h4 y6 ff1 fs1 fc3 sc4 ls1 ws0">&#22312;<span class="_ _1"> </span><span class="ff3 sc2 ls2">ComboBox<span class="_ _1"> </span></span>&#20013;&#25913;&#21464;&#21015;&#34920;&#26694;&#30340;&#23485;&#24230;<span class="ff2 fc1 sc2"> </span></div><div class="t m0 x2 h4 y7 ff2 fs1 fc1 sc2 ls1 ws0"> </div><div class="t m0 x2 h4 y8 ff1 fs1 fc1 sc2 ls1 ws0">&#25105;&#20204;&#32463;&#24120;&#20250;&#20351;&#29992;&#21040;&#32452;&#21512;&#26694;&#65292;<span class="_ _2"></span>&#32780;&#32452;&#21512;&#26694;&#26159;&#26159;&#26377;<span class="_ _1"> </span><span class="ff2">2<span class="_ _1"> </span></span>&#31181;<span class="_ _0"></span>&#21151;&#33021;&#30340;<span class="ff2 ls3">--</span>&#19979;&#25289;&#21644;&#21015;&#34920;&#12290;<span class="_ _2"></span>&#19968;&#33324;&#24773;&#20917;&#19979;&#65292;<span class="_ _2"></span>&#21015;&#34920;&#26694;&#30340;&#23485;&#24230;&#21644;&#36873;&#25321;&#26694;&#26159;&#19968;</div><div class="t m0 x2 h4 y9 ff1 fs1 fc1 sc2 ls1 ws0">&#26679;&#23485;&#30340;&#65292;&#20294;&#26159;&#25105;&#20204;&#26377;&#20123;&#26102;&#20505;&#30830;&#23454;&#24456;&#38656;&#35201;&#25226;<span class="_ _0"></span>&#21015;&#34920;&#26694;&#30340;&#23485;&#24230;&#21464;&#22823;&#65292;&#19968;&#20415;&#35753;&#25105;&#20204;&#33021;&#26356;&#22909;<span class="_ _0"></span>&#30340;&#30475;&#25105;&#20204;&#35201;&#36873;&#30340;&#19996;&#35199;&#12290;<span class="ff2 ls4"> </span></div><div class="t m0 x3 h4 ya ff1 fs1 fc1 sc2 ls1 ws0"> <span class="_"> </span> <span class="_"> </span>&#20026;&#20102;&#33021;&#26377;&#36825;&#20010;&#21151;&#33021;&#65292;&#25105;&#20889;&#20102;<span class="_ _0"></span>&#19979;&#38754;&#30340;&#36825;&#20010;&#20989;&#25968;&#12290;&#39318;&#20808;&#24471;&#22312;&#20320;&#30340;<span class="_ _0"></span>&#23545;&#35805;&#26694;&#20013;&#28155;&#21152;&#19968;&#20010;&#30340;<span class="_ _1"> </span><span class="ff2 ls5">WM_CTLCOLOR<span class="_ _3"> </span></span>&#30340;&#28040;</div><div class="t m0 x2 h4 yb ff1 fs1 fc1 sc2 ls1 ws0">&#24687;&#21477;&#26564;&#65292;&#25110;&#32773;&#20351;&#29992;<span class="_ _3"> </span><span class="ff2 ls6">CComboBox<span class="_ _1"> </span></span>&#30340;&#32487;&#25215;&#31867;&#65292;&#32780;&#19988;&#22312;&#20854;&#20013;&#28155;&#21152;&#19979;&#38754;&#30340;&#20195;&#30721;&#65306;<span class="ff2"> </span></div><div class="t m0 x3 h5 yc ff2 fs2 fc1 sc2 ls7 ws1">HBru<span class="_ _4"></span>sh tv<span class="_ _4"></span>isua<span class="_ _4"></span>lcom<span class="_ _4"></span>bo::<span class="_ _4"></span>onct<span class="_ _4"></span>lcolo<span class="_ _4"></span>r(CDC<span class="_ _4"></span>* <span class="ls8 ws2">pdc, CWND* pwnd, UINT nctl<span class="_ _0"></span>color) <span class="_ _5"></span> </span></div><div class="t m0 x2 h5 yd ff2 fs2 fc1 sc2 ls9 ws0">{ </div><div class="t m0 x2 h5 ye ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsb ws3">HBrush hbr = ccombobox::onctlcolor(pdc, pwnd, nctlcolor); </span></div><div class="t m0 x2 h5 yf ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsc ws4">switch (nctlcolor) { </span></div><div class="t m0 x2 h5 y10 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsd ws5">case ctlcolor_edit: </span></div><div class="t m0 x2 h5 y11 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lse">break; </span></div><div class="t m0 x2 h5 y12 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsb ws3">case ctlcolor_listbox: </span></div><div class="t m0 x2 h5 y13 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsf ws6">if (listwidth &gt; 0) { <span class="_ _5"></span> </span></div><div class="t m0 x2 h5 y14 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls10 ws7">// new width of a listbox is defined </span></div><div class="t m0 x2 h5 y15 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls11 ws8">CRect rect; </span></div><div class="t m0 x2 h5 y16 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lsd">pwnd-&gt;GetWindowRect(&amp;rect); </span></div><div class="t m0 x2 h5 y17 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls12 ws9">if (rect.Width() != listwidth) { </span></div><div class="t m0 x2 h5 y18 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls13 wsa">rect.right = rect.<span class="_ _4"></span>left + listwidth; </span></div><div class="t m0 x2 h5 y19 ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls14">pwnd-&gt;MoveWindow(&amp;rect); </span></div><div class="t m0 x2 h5 y1a ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls9">} </span></div><div class="t m0 x2 h5 y1b ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls9">} </span></div><div class="t m0 x2 h5 y1c ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 lse">break; </span></div><div class="t m0 x2 h5 y1d ff1 fs2 fc1 sc2 lsa ws0"> <span class="ff2 ls9 wsb">} </span></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐