从MFC所有者绘制按钮创建ActiveX按钮

  • K3_881663
    了解作者
  • 155.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 13:21
    上传日期
在ActiveX控件中转换MFC按钮的基本步骤
2185.zip
  • axshadebutton.zip
    70.3KB
  • Creating-an-ActiveX-Button-from-an-MFC-owner-draw.pdf
    95.3KB
内容介绍
<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://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/16612696/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/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://csdnimg.cn/release/download_crawler_static/16612696/bg1.jpg"><div class="c x1 y1 w2 h2"><div class="t m0 x2 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#20174;<span class="_ _0"></span>&#20174;<span class="_ _1"></span><span class="ff2">MF<span class="_ _2"></span>C</span>&#25152;<span class="_ _2"></span>&#26377;&#32773;<span class="_ _2"></span>&#32472;&#21046;<span class="_ _2"></span>&#25353;<span class="_ _2"></span>&#38062;&#21019;<span class="_ _2"></span>&#24314;<span class="_ _3"></span>&#25152;&#26377;<span class="_ _2"></span>&#32773;&#32472;<span class="_ _2"></span>&#21046;<span class="_ _2"></span>&#25353;&#38062;<span class="_ _2"></span>&#21019;&#24314;<span class="_ _1"></span><span class="ff2">A<span class="_ _2"></span>cti<span class="_ _2"></span>veX<span class="_ _2"></span></span>&#25353;&#38062;<span class="_ _4"></span>&#25353;&#38062;<span class="_ _1"></span><span class="ff2">-</span>&#28304;<span class="_ _2"></span>&#30721;<span class="_ _4"></span>&#28304;&#30721;</div><div class="t m0 x2 h4 y3 ff1 fs1 fc0 sc0 ls0 ws0">&#20171;&#32461;<span class="_ _5"></span>&#20171;&#32461;</div><div class="t m0 x2 h5 y4 ff1 fs2 fc0 sc0 ls0 ws0">&#26377;&#35768;&#22810;&#20351;<span class="_ _2"></span>&#29992;<span class="ff3">C +<span class="_ _2"></span>+</span>&#21644;<span class="ff3">MF<span class="_ _2"></span>C</span>&#31867;&#32534;&#20889;<span class="_ _2"></span>&#30340;&#25152;&#26377;<span class="_ _2"></span>&#32773;&#32472;&#21046;&#25353;<span class="_ _2"></span>&#38062;&#12290;<span class="ff3"> </span>&#36824;&#26377;&#35768;<span class="_ _2"></span>&#22810;<span class="ff3">Activ<span class="_ _2"></span>eX</span>&#25511;&#20214;<span class="_ _2"></span>&#65292;&#22823;&#22810;&#25968;<span class="_ _2"></span>&#26159;&#29992;<span class="ff3">V<span class="_ _2"></span>isual Ba<span class="_ _2"></span>sic</span>&#32534;&#20889;<span class="_ _2"></span>&#30340;&#12290;<span class="ff3"> </span>&#20351;&#29992;<span class="ff3">C</span></div><div class="t m0 x2 h5 y5 ff3 fs2 fc0 sc0 ls0 ws0">++<span class="ff1">&#26102;&#65292;<span class="_ _2"></span>&#21487;&#20197;&#36731;<span class="_ _2"></span>&#26494;&#20351;&#29992;</span>M<span class="_ _2"></span>FC<span class="ff1">&#21644;</span>O<span class="_ _2"></span>CX<span class="ff1">&#25511;&#20214;<span class="_ _2"></span>&#65292;&#32780;&#20351;&#29992;<span class="_ _2"></span></span>Visual<span class="_ _2"></span> Basic<span class="ff1">&#65292;<span class="_ _2"></span>&#21017;&#38656;&#35201;<span class="_ _2"></span>&#23558;</span>MFC<span class="ff1">&#23545;<span class="_ _2"></span>&#35937;&#36716;&#25442;<span class="_ _2"></span>&#20026;</span>Activ<span class="_ _2"></span>eX<span class="ff1">&#25511;&#20214;<span class="_ _2"></span>&#12290;</span> <span class="ff1">&#19981;&#24184;&#30340;<span class="_ _2"></span>&#26159;&#65292;&#31867;&#21521;<span class="_ _2"></span>&#23548;</span></div><div class="t m0 x2 h5 y6 ff1 fs2 fc0 sc0 ls0 ws0">&#24182;&#26410;&#28085;&#30422;<span class="_ _2"></span>&#21457;&#36865;&#32473;<span class="_ _2"></span><span class="ff3">Active<span class="_ _2"></span>X</span>&#25511;&#20214;&#30340;<span class="_ _2"></span>&#25152;&#26377;&#28040;<span class="_ _2"></span>&#24687;&#21644;&#20107;&#20214;<span class="_ _2"></span>&#65292;&#24182;&#19988;<span class="_ _2"></span>&#26576;&#20123;&#28040;<span class="_ _2"></span>&#24687;&#26377;&#25152;&#19981;<span class="_ _2"></span>&#21516;&#65292;&#22240;<span class="_ _2"></span>&#27492;&#22823;&#22810;<span class="_ _2"></span>&#25968;&#39764;&#26415;&#24517;<span class="_ _2"></span>&#39035;&#25163;&#20889;<span class="_ _2"></span>&#12290;</div><div class="t m0 x2 h5 y7 ff1 fs2 fc0 sc0 ls0 ws0">&#22240;&#20026;&#26377;&#26102;<span class="_ _2"></span>&#20505;&#65292;&#19968;<span class="_ _2"></span>&#27573;&#20195;&#30721;<span class="_ _2"></span>&#27604;&#25991;&#31456;&#26412;<span class="_ _2"></span>&#36523;&#26356;&#28165;<span class="_ _2"></span>&#26224;&#65292;&#25152;<span class="_ _2"></span>&#20197;&#25105;&#23558;<span class="ff3 fs3 fc1">C<span class="_ _2"></span>xShadeB<span class="_ _2"></span>utton</span>&#31227;<span class="_ _2"></span>&#26893;&#21040;<span class="ff3">Ac<span class="_ _2"></span>tiveX</span>&#25511;<span class="_ _2"></span>&#20214;&#20013;&#65292;&#20294;<span class="_ _2"></span>&#36825;&#21482;&#26159;<span class="_ _2"></span>&#19968;&#20010;&#31034;<span class="_ _2"></span>&#20363;&#12290;<span class="_ _2"></span><span class="ff3"> </span>&#22312;&#26412;&#25991;<span class="_ _2"></span>&#20013;&#65292;</div><div class="t m0 x2 h5 y8 ff1 fs2 fc0 sc0 ls0 ws0">&#25105;&#23558;&#20171;&#32461;<span class="_ _2"></span>&#19968;&#20010;&#36890;<span class="_ _2"></span>&#29992;&#30340;<span class="ff3 fs3">Ax<span class="_ _2"></span>ButtonCtr<span class="_ _2"></span>l<span class="fs2"> </span></span>&#12290;</div><div class="t m0 x2 h4 y9 ff2 fs1 fc0 sc0 ls0 ws0">MFC<span class="_ _2"></span> Acti<span class="_ _2"></span>vex<span class="ff1">&#25511;<span class="_ _2"></span>&#20214;&#21521;<span class="_ _2"></span>&#23548;&#21644;<span class="_ _2"></span>&#31867;&#21521;<span class="_ _2"></span>&#23548;<span class="_ _6"></span>&#25511;&#20214;&#21521;<span class="_ _2"></span>&#23548;&#21644;<span class="_ _2"></span>&#31867;&#21521;<span class="_ _2"></span>&#23548;</span></div><div class="t m0 x2 h5 ya ff1 fs2 fc0 sc0 ls0 ws0">&#21482;&#38656;&#21333;&#20987;<span class="_ _2"></span>&#20960;&#19979;&#65292;<span class="_ _2"></span><span class="ff3">Active<span class="_ _2"></span>X</span>&#25511;&#20214;&#21521;<span class="_ _2"></span>&#23548;&#23601;&#20250;<span class="_ _2"></span>&#20026;&#25105;&#20204;&#32534;<span class="_ _2"></span>&#20889;&#22823;&#32422;<span class="_ _2"></span><span class="ff3">600</span>&#34892;&#27880;<span class="_ _2"></span>&#37322;&#30340;&#20195;<span class="_ _2"></span>&#30721;&#65292;&#36825;<span class="_ _2"></span>&#20063;&#35768;&#26159;&#25105;<span class="_ _2"></span>&#20204;&#27704;&#36828;<span class="_ _2"></span>&#19981;&#20250;&#38405;<span class="_ _2"></span>&#35835;&#30340;&#12290;<span class="_ _1"></span><span class="ff3"> </span>&#21482;&#35201;&#35760;&#20303;<span class="_ _2"></span>&#22312;&#21521;&#23548;</div><div class="t m0 x2 h5 yb ff1 fs2 fc0 sc0 ls0 ws0">&#35810;&#38382;&#30340;&#32452;<span class="_ _2"></span>&#21512;&#26694;&#20013;<span class="_ _2"></span>&#36873;&#25321;<span class="ff3">&#8220;</span>&#25353;<span class="_ _2"></span>&#38062;<span class="ff3">&#8221;</span>&#21363;&#21487;<span class="_ _2"></span>&#65306;<span class="ff3">&#8220;</span>&#21738;&#20010;<span class="_ _2"></span>&#31383;&#21475;&#31867;<span class="_ _2"></span>&#65288;&#22914;&#26524;<span class="_ _2"></span>&#26377;&#65289;&#65292;&#35813;<span class="_ _2"></span>&#25511;&#20214;&#23376;<span class="_ _2"></span>&#31867;&#65311;<span class="ff3">&#8221;</span>&#65292;<span class="_ _2"></span>&#26694;&#26550;&#23601;<span class="_ _2"></span>&#20934;&#22791;&#22909;<span class="_ _2"></span>&#20102;&#12290;</div><div class="t m0 x2 h5 yc ff1 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;&#31867;&#21521;<span class="_ _2"></span>&#23548;&#65292;&#21487;<span class="_ _2"></span>&#20197;&#28155;&#21152;<span class="_ _2"></span>&#25104;&#21592;&#20989;&#25968;<span class="_ _2"></span>&#26469;&#22788;&#29702;<span class="_ _2"></span>&#22522;&#26412;&#28040;<span class="_ _2"></span>&#24687;&#65306;</div><div class="t m0 x1 h6 yd ff3 fs3 fc0 sc0 ls0 ws0">WM_CREA<span class="_ _2"></span>TE</div><div class="t m0 x1 h6 ye ff3 fs3 fc0 sc0 ls0 ws0">WM_ERAS<span class="_ _2"></span>EBKGND</div><div class="t m0 x1 h6 yf ff3 fs3 fc0 sc0 ls0 ws0">WM_KEYD<span class="_ _2"></span>OWN</div><div class="t m0 x1 h6 y10 ff3 fs3 fc0 sc0 ls0 ws0">WM_LBUT<span class="_ _2"></span>TONDOW<span class="_ _2"></span>N</div><div class="t m0 x1 h6 y11 ff3 fs3 fc0 sc0 ls0 ws0">WM_LBUT<span class="_ _2"></span>TONUP</div><div class="t m0 x1 h6 y12 ff3 fs3 fc0 sc0 ls0 ws0">WM_MOU<span class="_ _2"></span>SEMOVE</div><div class="t m0 x1 h6 y13 ff3 fs3 fc0 sc0 ls0 ws0">WM_SIZE</div><div class="t m0 x1 h6 y14 ff3 fs3 fc0 sc0 ls0 ws0">PreSubcla<span class="_ _2"></span>ssWindow</div><div class="t m0 x2 h5 y15 ff1 fs2 fc0 sc0 ls0 ws0">&#20854;&#20013;&#19968;&#20123;<span class="_ _2"></span>&#28040;&#24687;&#26159;<span class="_ _2"></span>&#21487;&#36873;&#30340;<span class="_ _2"></span>&#65292;&#20294;&#26159;&#25105;<span class="_ _2"></span>&#27491;&#22312;&#32771;<span class="_ _2"></span>&#34385;&#20351;&#29992;<span class="_ _2"></span>&#33258;&#23450;&#20041;&#25511;<span class="_ _2"></span>&#20214;&#65292;&#22240;<span class="_ _2"></span>&#27492;&#19982;&#26222;<span class="_ _2"></span>&#36890;&#25353;&#38062;&#30456;<span class="_ _2"></span>&#27604;&#65292;&#26377;<span class="_ _2"></span>&#26356;&#22810;&#30340;<span class="_ _2"></span>&#26426;&#20250;&#22788;<span class="_ _2"></span>&#29702;&#26356;&#22810;&#28040;<span class="_ _2"></span>&#24687;&#12290;</div><div class="t m0 x2 h5 y16 ff3 fs3 fc0 sc0 ls0 ws0">WM_DRA<span class="_ _2"></span>WITEM<span class="ff1 fs2">&#28040;&#24687;&#19981;&#22312;&#21015;<span class="_ _2"></span>&#34920;&#20013;&#65292;&#36825;<span class="_ _2"></span>&#19981;&#26159;&#38169;<span class="_ _2"></span>&#35823;&#65292;<span class="fc1">&#31245;<span class="_ _2"></span>&#21518;</span>&#23558;&#23545;<span class="_ _2"></span>&#27492;&#36827;&#34892;&#35299;<span class="_ _2"></span>&#37322;&#12290;</span></div><div class="t m0 x2 h7 y17 ff2 fs4 fc0 sc0 ls0 ws0">PreSu<span class="_ _2"></span>bclas<span class="_ _2"></span>sWin<span class="_ _2"></span>dow</div><div class="t m0 x2 h8 y18 ff3 fs2 fc0 sc0 ls0 ws0">C ++</div><div class="t m0 x2 h6 y19 ff3 fs3 fc0 sc0 ls0 ws0">void<span class="_ _2"></span> Ax<span class="_ _2"></span>uttonCtrl:<span class="_ _2"></span>:PreSubc<span class="_ _2"></span>lassWindo<span class="_ _2"></span>w() </div><div class="t m0 x2 h6 y1a ff3 fs3 fc0 sc0 ls0 ws0">{</div><div class="t m0 x2 h6 y1b ff3 fs3 fc0 sc0 ls0 ws0"> ... <span class="_ _2"></span>//<span class="_ _2"></span> custom sty<span class="_ _2"></span>le initializa<span class="_ _2"></span>tion code<span class="_ _2"></span> </div><div class="t m0 x2 h6 y1c ff3 fs3 fc0 sc0 ls0 ws0"> COleCont<span class="_ _2"></span>rol::PreSu<span class="_ _2"></span>bclassWi<span class="_ _2"></span>ndow();</div><div class="t m0 x2 h6 y1d ff3 fs3 fc0 sc0 ls0 ws0"> ModifySt<span class="_ _2"></span>yle( 0 , BS_OWNERD<span class="_ _2"></span>RAW|BS<span class="_ _2"></span>_NOTIFY);</div><div class="t m0 x2 h6 y1e ff3 fs3 fc0 sc0 ls0 ws0">}</div><div class="t m0 x2 h5 y1f ff1 fs2 fc0 sc0 ls0 ws0">&#22312;&#36825;&#31181;&#26041;<span class="_ _2"></span>&#27861;&#20013;&#65292;<span class="_ _2"></span>&#24744;&#21487;&#20197;<span class="_ _2"></span>&#22797;&#21046;<span class="ff3">MF<span class="_ _2"></span>C</span>&#25511;&#20214;&#20013;<span class="_ _2"></span>&#20351;&#29992;&#30340;<span class="_ _2"></span>&#30456;&#21516;&#20195;&#30721;<span class="_ _2"></span>&#12290;<span class="ff3"> </span>&#21306;&#21035;&#22312;&#20110;<span class="_ _2"></span>&#26368;&#21518;&#20004;<span class="_ _2"></span>&#34892;&#65306;&#35813;<span class="_ _2"></span>&#25353;&#38062;&#29616;<span class="_ _2"></span>&#22312;&#20174;<span class="ff3 fs3">COle<span class="_ _2"></span>Control</span>&#27966;&#29983;<span class="_ _2"></span>&#65288;&#20195;&#26367;<span class="_ _2"></span><span class="ff3 fs3">CButton</span></div><div class="t m0 x2 h5 y20 ff1 fs2 fc0 sc0 ls0 ws0">&#65289;&#12290;<span class="ff3"> </span>&#22914;&#26524;<span class="_ _2"></span>&#38656;&#35201;&#19968;<span class="_ _2"></span>&#20123;&#29305;&#27530;&#30340;<span class="_ _2"></span>&#36890;&#30693;&#28040;<span class="_ _2"></span>&#24687;&#65292;&#20363;<span class="_ _2"></span>&#22914;<span class="ff3 fs3">BN_DIS<span class="_ _2"></span>ABLE<span class="fs2"> </span></span>&#65292;<span class="ff3"> <span class="fs3">BN_KILLFOCU<span class="_ _2"></span>S</span> </span>&#65292;&#21017;&#24517;&#39035;&#23558;<span class="ff3 fs3">BS_O<span class="_ _2"></span>WNERDR<span class="_ _2"></span>AW</span>&#26679;&#24335;&#35774;&#32622;&#20026;&#29992;<span class="_ _2"></span>&#33258;&#23450;&#20041;<span class="_ _2"></span>&#22270;&#24418;</div><div class="t m0 x2 h5 y21 ff1 fs2 fc0 sc0 ls0 ws0">&#32472;&#21046;&#25353;&#38062;<span class="_ _2"></span>&#65292;&#32780;<span class="ff3 fs3">BS<span class="_ _2"></span>_NOTIFY<span class="_ _2"></span></span>&#26679;&#24335;<span class="_ _2"></span>&#21017;&#38656;&#35201;<span class="_ _2"></span><span class="ff3 fs3">BN_KILLFO<span class="_ _2"></span>CUS<span class="fs2"> </span></span>&#12290;</div><div class="t m0 x2 h9 y22 ff2 fs4 fc0 sc0 ls0 ws0">WM_C<span class="_ _2"></span>REAT<span class="_ _2"></span>E<span class="ff1">&#21644;<span class="_ _7"></span>&#21644;<span class="_ _2"></span><span class="ff2">W<span class="_ _2"></span>M_SIZ<span class="_ _2"></span>E</span></span></div><div class="t m0 x2 h5 y23 ff3 fs2 fc0 sc0 ls0 ws0">MFC<span class="ff1">&#25511;&#20214;<span class="_ _2"></span>&#26377;&#26102;&#19981;<span class="_ _2"></span>&#20351;&#29992;&#36825;<span class="_ _2"></span>&#20123;&#28040;&#24687;&#65292;<span class="_ _2"></span>&#20294;&#26159;&#22312;<span class="_ _2"></span></span>Visual B<span class="_ _2"></span>asic<span class="ff1">&#20013;&#65292;<span class="_ _2"></span>&#25152;&#35265;&#21363;<span class="_ _2"></span>&#25152;&#24471;&#30340;<span class="_ _2"></span>&#21407;&#29702;&#35201;<span class="_ _2"></span>&#27714;&#24320;&#21457;&#20154;<span class="_ _2"></span>&#21592;&#22312;&#26500;<span class="_ _2"></span>&#24314;</span>GUI<span class="ff1">&#26102;<span class="_ _2"></span>&#21487;&#20197;&#30475;<span class="_ _2"></span>&#21040;&#22806;&#35266;<span class="_ _2"></span>&#12290;</span></div><div class="t m0 x2 h5 y24 ff1 fs2 fc0 sc0 ls0 ws0">&#25511;&#20214;&#25910;&#21040;<span class="_ _2"></span><span class="ff3 fs3">WM_CR<span class="_ _2"></span>EATE</span>&#28040;<span class="_ _2"></span>&#24687;&#65292;&#24182;<span class="_ _2"></span>&#20351;&#29992;<span class="ff3 fs3">COl<span class="_ _2"></span>eControl:<span class="_ _2"></span>:OnCreate<span class="_ _2"></span>(lpCreate<span class="_ _2"></span>Struct)</span>&#21019;&#24314;&#23545;&#35937;<span class="_ _2"></span>&#65292;&#27492;&#35843;<span class="_ _2"></span>&#29992;&#20043;&#21518;<span class="_ _2"></span>&#65292;&#25353;&#38062;&#23384;<span class="_ _2"></span>&#22312;&#65292;&#24182;<span class="_ _2"></span>&#19988;&#24744;&#21487;<span class="_ _2"></span>&#20197;&#20351;&#29992;&#25152;</div><div class="t m0 x2 h5 y25 ff1 fs2 fc0 sc0 ls0 ws0">&#26377;<span class="ff3">Wind<span class="_ _2"></span>ows</span>&#20989;&#25968;<span class="_ _2"></span>&#65288;<span class="ff3">MFC<span class="_ _2"></span></span>&#20013;&#30340;<span class="ff3 fs3">CW<span class="_ _2"></span>nd</span>&#25104;&#21592;&#65289;&#26469;&#21021;<span class="_ _2"></span>&#22987;&#21270;&#22270;&#24418;<span class="_ _2"></span>&#23545;&#35937;&#12290;</div><div class="t m0 x2 h5 y26 ff3 fs3 fc0 sc0 ls0 ws0">WM_SIZE<span class="_ _2"></span><span class="ff1 fs2">&#28040;&#24687;<span class="_ _2"></span>&#26159;&#22312;</span>W<span class="_ _2"></span>M_CREAT<span class="_ _2"></span>E<span class="ff1 fs2">&#20043;&#21518;<span class="_ _2"></span>&#65292;&#25353;&#38062;&#22823;<span class="_ _2"></span>&#23567;&#24050;&#26356;<span class="_ _2"></span>&#25913;&#26102;&#21457;<span class="_ _2"></span>&#36865;&#30340;&#65307;<span class="_ _2"></span><span class="ff3"> </span>&#22312;&#36825;&#37324;&#65292;<span class="_ _2"></span>&#24744;&#24517;&#39035;<span class="_ _2"></span>&#26500;&#24314;&#65288;&#25110;<span class="_ _2"></span>&#37325;&#24314;&#65289;<span class="_ _2"></span>&#22270;&#24418;&#23545;<span class="_ _2"></span>&#35937;&#30340;&#20301;&#32622;<span class="_ _2"></span>&#21644;<span class="ff3">/</span>&#25110;&#23610;<span class="_ _2"></span>&#23544;&#12290;</span></div><div class="t m0 x2 h9 y27 ff1 fs4 fc0 sc0 ls0 ws0">&#38190;&#30424;&#21644;<span class="_ _2"></span>&#40736;&#26631;&#28040;<span class="_ _2"></span>&#24687;<span class="_ _8"></span>&#38190;&#30424;&#21644;<span class="_ _2"></span>&#40736;&#26631;&#28040;<span class="_ _2"></span>&#24687;</div><div class="t m0 x2 h5 y28 ff1 fs2 fc0 sc0 ls0 ws0">&#36825;&#20123;&#28040;&#24687;<span class="_ _2"></span>&#23545;&#20110;&#24037;<span class="_ _2"></span>&#20855;&#25552;&#31034;<span class="_ _2"></span>&#21644;&#24748;&#20572;&#21151;<span class="_ _2"></span>&#33021;&#24456;&#26377;<span class="_ _2"></span>&#29992;&#65292;&#35831;<span class="_ _2"></span>&#21442;&#38405;<span class="fc1">&#31245;&#21518;<span class="_ _2"></span></span>&#12290;</div><div class="t m0 x2 h4 y29 ff1 fs1 fc0 sc0 ls0 ws0">&#32472;&#21046;&#25353;<span class="_ _2"></span>&#38062;<span class="_ _9"></span>&#32472;&#21046;&#25353;<span class="_ _2"></span>&#38062;<span class="_ _1"></span><span class="ff2">-</span>&#21453;&#26144;&#30340;<span class="_ _2"></span>&#31383;&#21475;<span class="_ _2"></span>&#28040;&#24687;<span class="_ _a"></span>&#21453;&#26144;&#30340;<span class="_ _2"></span>&#31383;&#21475;<span class="_ _2"></span>&#28040;&#24687;</div><div class="t m0 x2 h5 y2a ff1 fs2 fc0 sc0 ls0 ws0">&#31867;&#21521;&#23548;&#20026;<span class="_ _2"></span>&#32472;&#22270;&#20989;<span class="_ _2"></span>&#25968;&#25552;&#20379;<span class="_ _2"></span>&#20102;&#19968;&#20010;<span class="ff3 fs3">A<span class="_ _2"></span>xButtonC<span class="_ _2"></span>trl::OnDr<span class="_ _2"></span>aw</span>&#25104;&#21592;&#12290;</div><div class="t m0 x2 h8 y2b ff3 fs2 fc0 sc0 ls0 ws0">C ++</div><div class="t m0 x2 h6 y2c ff3 fs3 fc0 sc0 ls0 ws0">void<span class="_ _2"></span> Ax<span class="_ _2"></span>ButtonCtr<span class="_ _2"></span>l::OnDraw<span class="_ _2"></span>(CDC* pd<span class="_ _2"></span>c, const CRect&amp;<span class="_ _2"></span> rcBounds<span class="_ _2"></span>, co<span class="_ _2"></span>nst CRect&amp; rc<span class="_ _2"></span>Invalid)</div><div class="t m0 x2 h6 y2d ff3 fs3 fc0 sc0 ls0 ws0">{</div><div class="t m0 x2 h6 y2e ff3 fs3 fc0 sc0 ls0 ws0"> DoSuper<span class="_ _2"></span>classPaint<span class="_ _2"></span>(pdc, rcB<span class="_ _2"></span>ounds);</div><div class="t m0 x2 h6 y2f ff3 fs3 fc0 sc0 ls0 ws0">}</div><div class="t m0 x2 h5 y30 ff1 fs2 fc0 sc0 ls0 ws0">&#24744;&#21487;&#20197;&#20445;<span class="_ _2"></span>&#25345;&#21407;&#26679;<span class="_ _2"></span>&#12290;<span class="ff3"> </span>&#25105;&#20204;&#30340;<span class="_ _2"></span>&#25353;&#38062;&#31561;<span class="_ _2"></span>&#24453;<span class="ff3 fs3">WM_D<span class="_ _2"></span>RAWITEM</span>&#28040;&#24687;&#65292;&#20294;<span class="_ _2"></span>&#26159;&#24102;&#26377;<span class="_ _2"></span><span class="ff3">active<span class="_ _2"></span>x</span>&#25511;&#20214;&#30340;<span class="_ _2"></span>&#26426;&#21046;&#30053;<span class="_ _2"></span>&#26377;&#19981;&#21516;&#65306;<span class="_ _2"></span><span class="ff3"> <span class="fs3">COleContro<span class="_ _2"></span>l</span></span>&#22312;&#25511;&#20214;&#31383;<span class="_ _2"></span>&#21475;&#30340;&#30456;</div></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><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>
评论
    相关推荐
    • 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教程