锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91亚洲国产成人久久精品,色综合久久久久久久久五月,国产成人精品久久免费动漫http://www.shnenglu.com/deercoder/category/13115.html<P><FONT style="FONT-SIZE: 20px" color=#ff0000>縐瘡錛屽潥鎸侊紒</FONT></P> <P><FONT style="FONT-SIZE: 20px" color=#ff0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------鎴戞槸涓鍙狪T灝忓皬楦?lt;/FONT></P>zh-cnTue, 19 Apr 2011 08:17:27 GMTTue, 19 Apr 2011 08:17:27 GMT60鍒╃敤MFC鏄劇ず鍥懼儚http://www.shnenglu.com/deercoder/archive/2011/04/18/144473.html鍒樼晠鍒樼晠Mon, 18 Apr 2011 08:15:00 GMThttp://www.shnenglu.com/deercoder/archive/2011/04/18/144473.htmlhttp://www.shnenglu.com/deercoder/comments/144473.htmlhttp://www.shnenglu.com/deercoder/archive/2011/04/18/144473.html#Feedback0http://www.shnenglu.com/deercoder/comments/commentRss/144473.htmlhttp://www.shnenglu.com/deercoder/services/trackbacks/144473.html闃呰鍏ㄦ枃

鍒樼晠 2011-04-18 16:15 鍙戣〃璇勮
]]>
鍒╃敤WinSocket瀹炵幇SMTP閭歡浼犺緭錛堜竴錛?/title><link>http://www.shnenglu.com/deercoder/archive/2010/05/02/114170.html</link><dc:creator>鍒樼晠</dc:creator><author>鍒樼晠</author><pubDate>Sun, 02 May 2010 07:59:00 GMT</pubDate><guid>http://www.shnenglu.com/deercoder/archive/2010/05/02/114170.html</guid><wfw:comment>http://www.shnenglu.com/deercoder/comments/114170.html</wfw:comment><comments>http://www.shnenglu.com/deercoder/archive/2010/05/02/114170.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/deercoder/comments/commentRss/114170.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/deercoder/services/trackbacks/114170.html</trackback:ping><description><![CDATA[     鎽樿:       浜斾竴鏀懼亣浜嗭紝娌℃湁鍒板摢閲屽幓鐜╋紝铏界劧璇磋繕鏄緢澶氫簨鎯呰鍋氾紝涓嶈繃鍏堝仛鍋氳繖涓啀璇淬備簬鏄姳浜嗗ぇ姒備竴澶╁崐鐨勬椂闂達(dá)紝鎼炲畾浜嗚繖涓皬鐨勭▼搴忥紝涔熺畻鏄洖鎶ュ惂錛佷互鍚庝細(xì)緇х畫瀹屽杽鍜岃ˉ鍏呯殑銆?nbsp;     璇濊涓婃鑵捐2闈㈢殑鏃跺欐垜琛ㄧ幇澶笉濂戒簡錛屼激蹇冨晩~~~鎵浠ヤ粠鐜板湪璧鳳紝瑕佸湪蹇欎腑鎶芥椂闂存潵緇х畫Coding錛屽寮哄疄鍔涖備及璁¤繃孌墊椂闂?..  <a href='http://www.shnenglu.com/deercoder/archive/2010/05/02/114170.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/deercoder/aggbug/114170.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/deercoder/" target="_blank">鍒樼晠</a> 2010-05-02 15:59 <a href="http://www.shnenglu.com/deercoder/archive/2010/05/02/114170.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏂囨。涓庤鍥劇▼搴忚璁?-------------鏂囧瓧杈撳叆http://www.shnenglu.com/deercoder/archive/2010/02/22/108215.html鍒樼晠鍒樼晠Mon, 22 Feb 2010 05:55:00 GMThttp://www.shnenglu.com/deercoder/archive/2010/02/22/108215.htmlhttp://www.shnenglu.com/deercoder/comments/108215.htmlhttp://www.shnenglu.com/deercoder/archive/2010/02/22/108215.html#Feedback0http://www.shnenglu.com/deercoder/comments/commentRss/108215.htmlhttp://www.shnenglu.com/deercoder/services/trackbacks/108215.html
void聽CTest31View::OnChar(UINT聽nChar,聽UINT聽nRepCnt,聽UINT聽nFlags)聽
{
聽聽聽聽
//聽TODO:聽Add聽your聽message聽handler聽code聽here聽and/or聽call聽default
聽聽聽聽CClientDC聽dc(this);
聽聽聽聽TEXTMETRIC聽tm;
聽聽聽聽dc.GetTextMetrics(
&tm);
聽聽聽聽
if(0x0d==聽nChar)
聽聽聽聽
{
聽聽聽聽聽聽聽聽m_str.Empty();
聽聽聽聽聽聽聽聽m_point.y聽
+=聽tm.tmHeight;
聽聽聽聽}

聽聽聽聽
elseif(0x08==nChar)
聽聽聽聽
{
聽聽聽聽聽聽聽聽COLORREF聽clr聽
=聽dc.SetTextColor(dc.GetBkColor());
聽聽聽聽聽聽聽聽dc.TextOut(m_point.x,m_point.y,m_str);
聽聽聽聽聽聽聽聽m_str聽
=聽m_str.Left(m_str.GetLength()-1);
聽聽聽聽聽聽聽聽dc.SetTextColor(clr);
聽聽聽聽}

聽聽聽聽
else
聽聽聽聽
{
聽聽聽聽聽聽聽聽m_str聽
+=聽nChar;
聽聽聽聽}

聽聽聽聽CSize聽sz聽
=聽dc.GetTextExtent(m_str);
聽聽聽聽CPoint聽pt;
聽聽聽聽pt.x聽
=聽m_point.x聽+聽sz.cx;
聽聽聽聽pt.y聽
=聽m_point.y;
聽聽聽聽SetCaretPos(pt);
聽聽聽聽dc.TextOut(m_point.x,m_point.y,m_str);

聽聽聽聽CView::OnChar(nChar,聽nRepCnt,聽nFlags);
}


int聽CTest31View::OnCreate(LPCREATESTRUCT聽lpCreateStruct)聽
{
聽聽聽聽
if聽(CView::OnCreate(lpCreateStruct)聽==-1)
聽聽聽聽聽聽聽聽
return-1;
聽聽聽聽
聽聽聽聽
//聽TODO:聽Add聽your聽specialized聽creation聽code聽here
聽聽聽聽CClientDC聽dc(this);
聽聽聽聽TEXTMETRIC聽tm;
聽聽聽聽dc.GetTextMetrics(
&tm);
聽聽聽聽CreateSolidCaret(tm.tmAveCharWidth
/8,tm.tmHeight);
聽聽聽聽ShowCaret();

聽聽聽聽
return0;
}

void聽CTest31View::OnLButtonDown(UINT聽nFlags,聽CPoint聽point)聽
{
聽聽聽聽
//聽TODO:聽Add聽your聽message聽handler聽code聽here聽and/or聽call聽default
聽聽聽聽SetCaretPos(point);
聽聽聽聽m_str.Empty();
聽聽聽聽m_point聽
=聽point;

聽聽聽聽CView::OnLButtonDown(nFlags,聽point);
}


涓績鎬濇兂錛歮_point琛ㄧず鐨勬槸鎻掑叆絎︾殑浣嶇疆錛宮_str鍒欒〃紺虹殑鏄緭鍏ョ殑瀛楃涓詫紒
瀵逛簬鍥炶濺鍜屽垹闄ら敭錛屽垯鐢ㄤ袱涓猧f鏉ュ垽鏂紝鍏蜂綋鐨勫疄鐜幫紝鍙傚姞浠g爜閮ㄥ垎錛屾瘮杈冪畝鍗曪紒錛?img src ="http://www.shnenglu.com/deercoder/aggbug/108215.html" width = "1" height = "1" />

鍒樼晠 2010-02-22 13:55 鍙戣〃璇勮
]]>
鏂囨。涓庤鍥劇▼搴忚璁?-------------璺緞灞傜殑浣跨敤http://www.shnenglu.com/deercoder/archive/2010/02/21/108168.html鍒樼晠鍒樼晠Sun, 21 Feb 2010 12:51:00 GMThttp://www.shnenglu.com/deercoder/archive/2010/02/21/108168.htmlhttp://www.shnenglu.com/deercoder/comments/108168.htmlhttp://www.shnenglu.com/deercoder/archive/2010/02/21/108168.html#Feedback0http://www.shnenglu.com/deercoder/comments/commentRss/108168.htmlhttp://www.shnenglu.com/deercoder/services/trackbacks/108168.html鑰冨療鐐癸細(xì)璺緞灞傜殑浣跨敤錛屽浣曡瀹冧滑鍦ㄤ袱涓笉鍚岀殑鍥懼眰錛?br />
浠g爜錛?br />
void聽CTest30View::OnDraw(CDC*聽pDC)
{
聽CTest30Doc
*聽pDoc聽=聽GetDocument();
聽ASSERT_VALID(pDoc);
//聽TODO:聽add聽draw聽code聽for聽native聽data聽here
聽CString聽str("Hello,world!");
聽CSize聽sz聽
=聽pDC->GetTextExtent(str);
聽pDC
->TextOut(50,50,str);
聽pDC
->BeginPath();
聽pDC
->Rectangle(50,50,50+sz.cx,50+sz.cy);
聽pDC
->EndPath();
聽pDC
->SelectClipPath(RGN_DIFF);
for(int聽i聽=0;聽i<200;聽i+=10)
{
聽聽pDC
->MoveTo(0,i);
聽聽pDC
->LineTo(200,i);
聽聽pDC
->MoveTo(i,0);
聽聽pDC
->LineTo(i,200);
聽}

}


鍑芥暟錛堝緢澶氾級錛?br />BeginPath錛氭墦寮涓涓礬寰勫眰銆?br />EndPath錛氬叧闂竴涓礬寰勫眰銆?br />SelectClipPath錛氬皢褰撳墠璺緞灞備綔涓轟竴涓壀鍒囧尯鍩燂紝浠ヤ竴瀹氱殑妯″紡鍜屾柊鐨勫尯鍩熺粍鍚堛?br />Moveto錛氱Щ鍔ㄥ埌閭d竴涓偣銆?br />LineTo錛氱粯鍒朵竴鏉$洿綰垮埌閭d竴鐐逛負(fù)姝€傘?br />

鍒樼晠 2010-02-21 20:51 鍙戣〃璇勮
]]>
鏂囨。涓庤鍥劇▼搴忚璁?-------------鍒涘緩鍥懼儚鎻掑叆絎?/title><link>http://www.shnenglu.com/deercoder/archive/2010/02/21/108166.html</link><dc:creator>鍒樼晠</dc:creator><author>鍒樼晠</author><pubDate>Sun, 21 Feb 2010 12:23:00 GMT</pubDate><guid>http://www.shnenglu.com/deercoder/archive/2010/02/21/108166.html</guid><wfw:comment>http://www.shnenglu.com/deercoder/comments/108166.html</wfw:comment><comments>http://www.shnenglu.com/deercoder/archive/2010/02/21/108166.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/deercoder/comments/commentRss/108166.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/deercoder/services/trackbacks/108166.html</trackback:ping><description><![CDATA[鍓嶉潰鐨勯偅涓緥瀛愪腑錛屾槸鎻掑叆涓涓櫘閫氱殑鎻掑叆絎︼紝鏃㈡病鏈夋枃瀛楋紝涔熸病鏈夊浘鍍忥紝鑰屽彧鏄竴涓珫綰胯屽凡銆?br />璇﹁錛?a href="/deercoder/archive/2010/02/21/108165.html">http://www.shnenglu.com/deercoder/archive/2010/02/21/108165.html</a><br />涓嬮潰錛屾槸鎻掑叆涓涓狟itmap鍥懼儚鐨勭▼搴忥細(xì)<br /><div style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽CTest28View::OnCreate(LPCREATESTRUCT聽lpCreateStruct)聽<br /><img id="Codehighlighter1_58_324_Open_Image" onclick="this.style.display='none'; Codehighlighter1_58_324_Open_Text.style.display='none'; Codehighlighter1_58_324_Closed_Image.style.display='inline'; Codehighlighter1_58_324_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" /><img style="DISPLAY: none" id="Codehighlighter1_58_324_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_58_324_Closed_Text.style.display='none'; Codehighlighter1_58_324_Open_Image.style.display='inline'; Codehighlighter1_58_324_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" /></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id="Codehighlighter1_58_324_Closed_Text"><img src="http://www.shnenglu.com/images/dot.gif" /></span><span id="Codehighlighter1_58_324_Open_Text"><span style="COLOR: #000000">{<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(CView::OnCreate(lpCreateStruct)聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO:聽Add聽your聽specialized聽creation聽code聽here</span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽CBitmap聽bitmap;聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">涓庤祫婧愮浉鍏崇殑瀵硅薄錛屽湪鏋愭瀯鏃墮攢姣?/span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000">聽聽聽聽bitmap.LoadBitmap(IDB_BITMAP1);聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">灝嗗彉閲忎笌璧勬簮鍏寵仈</span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000">聽聽聽聽CreateCaret(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">bitmap);聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鍒涘緩鍥懼艦鎻掑叆絎?/span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000">聽聽聽聽ShowCaret();聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず鎻掑叆絎?/span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span><span style="COLOR: #000000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽CTest28View::OnLButtonDown(UINT聽nFlags,聽CPoint聽point)聽<br /><img id="Codehighlighter1_387_513_Open_Image" onclick="this.style.display='none'; Codehighlighter1_387_513_Open_Text.style.display='none'; Codehighlighter1_387_513_Closed_Image.style.display='inline'; Codehighlighter1_387_513_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" /><img style="DISPLAY: none" id="Codehighlighter1_387_513_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_387_513_Closed_Text.style.display='none'; Codehighlighter1_387_513_Open_Image.style.display='inline'; Codehighlighter1_387_513_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" /></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id="Codehighlighter1_387_513_Closed_Text"><img src="http://www.shnenglu.com/images/dot.gif" /></span><span id="Codehighlighter1_387_513_Open_Text"><span style="COLOR: #000000">{<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO:聽Add聽your聽message聽handler聽code聽here聽and/or聽call聽default</span><span style="COLOR: #008000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /></span><span style="COLOR: #000000">聽聽聽聽SetCaretPos(point);<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽CView::OnLButtonDown(nFlags,聽point);<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span><span style="COLOR: #000000"><br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /></span></div>綆綆鍗曞崟鐨勪唬鐮佸嵆瀹炵幇浜嗗姛鑳斤紝鍥犱負(fù)榪欓噷鍙槸鎻掑叆鍥劇墖鑰屽凡錛屾墍浠ュ垱寤烘彃鍏ョ姣旇緝綆鍗曪紝娌℃湁鍓嶉潰鐨勫瓧浣撻偅涔堝鏉傦紝涓嶈繃涔熼兘鐩稿悓錛屽師鐞嗘病鏈夊尯鍒紒<br /><img src ="http://www.shnenglu.com/deercoder/aggbug/108166.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/deercoder/" target="_blank">鍒樼晠</a> 2010-02-21 20:23 <a href="http://www.shnenglu.com/deercoder/archive/2010/02/21/108166.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏂囨。涓庤鍥劇▼搴忚璁?-------------鍒涘緩鎻掑叆絎?/title><link>http://www.shnenglu.com/deercoder/archive/2010/02/21/108165.html</link><dc:creator>鍒樼晠</dc:creator><author>鍒樼晠</author><pubDate>Sun, 21 Feb 2010 11:51:00 GMT</pubDate><guid>http://www.shnenglu.com/deercoder/archive/2010/02/21/108165.html</guid><wfw:comment>http://www.shnenglu.com/deercoder/comments/108165.html</wfw:comment><comments>http://www.shnenglu.com/deercoder/archive/2010/02/21/108165.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/deercoder/comments/commentRss/108165.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/deercoder/services/trackbacks/108165.html</trackback:ping><description><![CDATA[ <p>聽聽聽聽 浣曡皳鎻掑叆絎︼紝鍏跺疄涔嬪墠涔熶竴鐩撮兘涓嶅ぇ鏄庣櫧錛屼笉榪囬氳繃鏀瑰弬鏁幫紝緇堜簬綆楁槸鍙戠幇浜嗭紝鍗充竴涓珫鐩寸殑綰匡紝涓嶈繃鏈夌嚎鐨勫搴︼紝榪樻湁涓涓珮搴︺?/p> <div style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽CTest27View::OnCreate(LPCREATESTRUCT聽lpCreateStruct)聽<br /><img id="Codehighlighter1_58_372_Open_Image" onclick="this.style.display='none'; Codehighlighter1_58_372_Open_Text.style.display='none'; Codehighlighter1_58_372_Closed_Image.style.display='inline'; Codehighlighter1_58_372_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" /><img style="DISPLAY: none" id="Codehighlighter1_58_372_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_58_372_Closed_Text.style.display='none'; Codehighlighter1_58_372_Open_Image.style.display='inline'; Codehighlighter1_58_372_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" /></span> <span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id="Codehighlighter1_58_372_Closed_Text"> <img src="http://www.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_58_372_Open_Text"> <span style="COLOR: #000000">{<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(CView::OnCreate(lpCreateStruct)聽</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">)<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">;<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽TODO:聽Add聽your聽specialized聽creation聽code聽here</span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽CClientDC聽dc(</span> <span style="COLOR: #0000ff">this</span> <span style="COLOR: #000000">);<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽TEXTMETRIC聽tm;聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">TEXTMETRIC緇撴瀯鏄劇ず褰撳墠瀛椾綋鐨勪俊鎭?/span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽dc.GetTextMetrics(</span> <span style="COLOR: #000000">&</span> <span style="COLOR: #000000">tm);聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">寰楀埌瀛椾綋淇℃伅瀛樺叆tm</span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽CreateSolidCaret((tm.tmAveCharWidth</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">20</span> <span style="COLOR: #000000">)</span> <span style="COLOR: #000000">/</span> <span style="COLOR: #000000">8</span> <span style="COLOR: #000000">,tm.tmHeight</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">20</span> <span style="COLOR: #000000">);聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鍒涘緩鎻掑叆絎?/span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽ShowCaret();聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鏄劇ず鎻掑叆絎?/span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span> </span> <span style="COLOR: #000000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /> </span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000">聽CTest27View::OnLButtonDown(UINT聽nFlags,聽CPoint聽point)聽<br /><img id="Codehighlighter1_435_589_Open_Image" onclick="this.style.display='none'; Codehighlighter1_435_589_Open_Text.style.display='none'; Codehighlighter1_435_589_Closed_Image.style.display='inline'; Codehighlighter1_435_589_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" /><img style="DISPLAY: none" id="Codehighlighter1_435_589_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_435_589_Closed_Text.style.display='none'; Codehighlighter1_435_589_Open_Image.style.display='inline'; Codehighlighter1_435_589_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" /></span> <span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id="Codehighlighter1_435_589_Closed_Text"> <img src="http://www.shnenglu.com/images/dot.gif" /> </span> <span id="Codehighlighter1_435_589_Open_Text"> <span style="COLOR: #000000">{<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" />聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">聽TODO:聽Add聽your聽message聽handler聽code聽here聽and/or聽call聽default聽聽聽聽</span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽SetCaretPos(point);聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鏀瑰彉鎻掑叆絎︾殑浣嶇疆,point鏄綋鍓嶅鎴峰尯鐨勪綅緗?/span> <span style="COLOR: #008000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" /> </span> <span style="COLOR: #000000">聽聽聽聽CView::OnLButtonDown(nFlags,聽point);<br /><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span> </span> <span style="COLOR: #000000"> <br /> <img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" /> </span> </div>聽 姝ゅ嚱鏁板氨鏄細(xì)CreateSolidCaret((tm.tmAveCharWidth+20)/8,tm.tmHeight*20);聽 //鍒涘緩鎻掑叆絎?br />鍏蜂綋鏉ヨ灝辨槸瀹冨喅瀹氫簡鎻掑叆絎︾殑瀹藉害鍜岄珮搴︼紝涔熷氨鏄嚎闀垮拰綰跨矖銆?br /><br />鏈▼搴忓姛鑳芥槸錛氬疄鐜伴紶鏍囩偣鍑誨鏄劇ず涓涓彃鍏ョ銆傘傘傘?img src ="http://www.shnenglu.com/deercoder/aggbug/108165.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/deercoder/" target="_blank">鍒樼晠</a> 2010-02-21 19:51 <a href="http://www.shnenglu.com/deercoder/archive/2010/02/21/108165.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>宸ュ叿鏍忓拰鐘舵佹爮紼嬪簭璁捐------鍒涘緩鏃朵慨鏀瑰拰鍒涘緩鍚庝慨鏀瑰瑙傦紙琛ワ級http://www.shnenglu.com/deercoder/archive/2010/02/17/107984.html鍒樼晠鍒樼晠Wed, 17 Feb 2010 13:46:00 GMThttp://www.shnenglu.com/deercoder/archive/2010/02/17/107984.htmlhttp://www.shnenglu.com/deercoder/comments/107984.htmlhttp://www.shnenglu.com/deercoder/archive/2010/02/17/107984.html#Feedback0http://www.shnenglu.com/deercoder/comments/commentRss/107984.htmlhttp://www.shnenglu.com/deercoder/services/trackbacks/107984.html
鍒涘緩鏃朵慨鏀癸紝鍗沖湪CMainFrame鐨勬垚鍛樺嚱鏁癙reCreateWindow鍑芥暟鏉ュ疄鐜般?br>
1.鍒涘緩鏃朵慨鏀圭▼搴忕殑澶栬錛氫慨鏀瑰垵濮嬪寲鐨勭獥鍙eぇ灝忕瓑絳夊睘鎬с?br>鍦–MainFrame鍑芥暟涓紝璁劇疆cs鐨勫悇涓睘鎬э紝cs鏄竴涓粨鏋勪綋錛岃緗甤x錛宑y琛ㄧず瀹冪殑澶у皬錛岃緗叾浠栫殑琛ㄧず鍙﹀鐨勫ぇ灝忋?br>娉細(xì)鍘熶功鐢變竴涓敊璇紝鍙槸錛屽彲浠ラ氳繃閰嶅鐨勬簮浠g爜鏉ョ湅鍑恒?br>灝辨槸涔︿笂鏄細(xì)    cs.style |= ~FWS_ADDTOTITLE;
鑰屼唬鐮佷笂鏄細(xì)    cs.style 
= WS_OVERLAPPEDWINDOW;
濡傛灉鎸夌収涔︿笂鐨勪唬鐮侊紝灝變細(xì)鍋囨錛屾瘡嬈″惎鍔ㄩ兘澶卞幓鍝嶅簲錛岃屼笖鏍囬娌℃湁鍚嶇О銆?br>濡傛灉鏄唬鐮佷笂鐨?nbsp;   cs.style 
= WS_OVERLAPPEDWINDOW;鍒欎笉浼?xì)鍑虹幇杩欎釜缁撴灉銆?br>淇敼鐨勬簮浠g爜濡備笅錛?br>BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
    
if!CFrameWnd::PreCreateWindow(cs) )
        
return FALSE;
    
// TODO: Modify the Window class or styles here by modifying
    
//  the CREATESTRUCT cs

    cs.cx 
= 500;
    cs.cy 
= 300;
//    cs.style = WS_OVERLAPPEDWINDOW;
    cs.style |= ~FWS_ADDTOTITLE;
    cs.lpszName 
= "Helloworld";

    
return TRUE;
}


娉細(xì)鍙互閫氳繃淇敼CMainFrame鐨勬垚鍛樺嚱鏁癙reCreateWindow鍑芥暟鐨凜REATESTRUCT緇撴瀯浣撴潵涓у寲紿楀彛鐨勫瑙傘傚湪鍗曟枃妗e簲鐢ㄧ▼搴忎腑錛岄粯璁ょ殑紿楀彛綾誨瀷鏄疻S_OVERLAPPEDWINDOW鍜孎WS_ADDTOTILE錛屽叾涓紝FWS_ADDTOTITLE鏄竴涓狹FC綾誨瀷錛屽皢鏂囨。鐨勬爣棰樻坊鍔犲埌紿楀彛鏍囬銆傛墍浠ヨ璁劇疆紿楀彛鏍囬鐨勫唴瀹癸紝蹇呴』灝咶WS_ADDTOTITLE灞炴у幓鎺夈?br>浣嗘槸錛屽皢灞炴ц緗敼涓?/span>&涔嬪悗錛屽氨涓嶄細(xì)鍑虹幇閭d釜闂浜嗐傛簡…………
鐗瑰埆娉ㄦ剰鐨勬槸錛屽鏋滀笉璁插睘鎬ц緗負(fù)
~FWS_ADDTOTITLE錛屽氨涓嶄細(xì)鏇存敼鏍囬鐨勫悕縐幫紝鍗充嬌璁劇疆浜唋pszName涔熶笉琛?br>
鍏蜂綋鐨勫睘鎬ц緗錛?a href="http://www.shnenglu.com/deercoder/archive/2010/02/17/107962.html">http://www.shnenglu.com/deercoder/archive/2010/02/17/107962.html


2.鍒涘緩鍚庤緗殑璇濓紝闇瑕佸湪CMainFrame鍜孷iew涓殑OnCreate鍑芥暟涓紝瀹炵幇SetClassLong鍑芥暟鐨勪嬌鐢ㄣ?br>
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
        
return -1;
    
    
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
        
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
        
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
    
{
        TRACE0(
"Failed to create toolbar\n");
        
return -1;      // fail to create
    }


    
if (!m_wndStatusBar.Create(this||
        
!m_wndStatusBar.SetIndicators(indicators,
          
sizeof(indicators)/sizeof(UINT)))
    
{
        TRACE0(
"Failed to create status bar\n");
        
return -1;      // fail to create
    }


    
// TODO: Delete these three lines if you don't want the toolbar to
    
//  be dockable
    m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
    EnableDocking(CBRS_ALIGN_ANY);
    DockControlBar(
&m_wndToolBar);

    SetClassLong(m_hWnd,GCL_HICON,(LONG)LoadIcon(NULL,IDI_ERROR)); 
//鏇存敼紿楀彛鍥炬爣錛屽悓鍓嶉潰鐨凙fxRegisterWndClass鍑芥暟

    
return 0;
}


int CTest14View::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
    
if (CView::OnCreate(lpCreateStruct) == -1)
        
return -1;
    
    
// TODO: Add your specialized creation code here
    
    SetClassLong(m_hWnd,GCL_HBRBACKGROUND,(LONG)GetStockObject(GRAY_BRUSH));
    SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)LoadCursor(NULL,IDC_HELP));

    
return 0;
}




璇﹁銆奦isual C++緙栫▼鑼冧緥寮鍙戦噾鍏搞?P96--99

鍒樼晠 2010-02-17 21:46 鍙戣〃璇勮
]]>
宸ュ叿鏍忓拰瀵硅瘽妗嗙▼搴忚璁?---------鏄劇ず鍜岄殣钘忓伐鍏鋒爮http://www.shnenglu.com/deercoder/archive/2010/02/17/107969.html鍒樼晠鍒樼晠Wed, 17 Feb 2010 09:09:00 GMThttp://www.shnenglu.com/deercoder/archive/2010/02/17/107969.htmlhttp://www.shnenglu.com/deercoder/comments/107969.htmlhttp://www.shnenglu.com/deercoder/archive/2010/02/17/107969.html#Feedback0http://www.shnenglu.com/deercoder/comments/commentRss/107969.htmlhttp://www.shnenglu.com/deercoder/services/trackbacks/107969.html緇忚繃浠ュ墠鐨勯敾鐐鹼紝宸茬粡鐭ラ亾浜嗘樉紺哄拰闅愯棌鐨勮瘽鍙渶瑕佺敤ShowWindow(),鐒跺悗鍦ㄧ浉鍏崇殑鍙傛暟涓緗負(fù)鏄劇ず榪樻槸闅愯棌鑰屽凡銆?br />閭d箞姝ゅ涔熷緢綆鍗曪紝娣誨姞涓涓彍鍗曪紝鐩稿簲鐨勬秷鎭搷搴斿嚱鏁幫紝瀹炵幇鏄劇ず鍜岄殣钘忋?br />浜庢槸浠g爜涓猴細(xì)
void聽CMainFrame::OnNewTool()聽
{
聽聽聽聽
//聽TODO:聽Add聽your聽command聽handler聽code聽here
聽聽聽聽static聽CRect聽rectNew;
聽聽聽聽
if(m_newToolBar.IsWindowVisible())
聽聽聽聽
{
聽聽聽聽聽聽聽聽m_newToolBar.ShowWindow(SW_HIDE);
聽聽聽聽}

聽聽聽聽
else
聽聽聽聽
{
聽聽聽聽聽聽聽聽m_newToolBar.ShowWindow(SW_SHOW);
聽聽聽聽}

聽聽聽聽RecalcLayout();聽聽
//蹇呴』閲嶆柊璁劇疆紿楀彛甯冨眬錛屽惁鍒欏嵆浣垮伐鍏鋒爮鏄劇ず錛岀獥鍙e瑙備篃浼?xì)鍙樺?/span>
聽聽聽聽DockControlBar(&m_newToolBar);
}

鐒跺悗濡備綍瀹炵幇鑿滃崟鐨勫嬀鍕懼憿錛熷埄鐢ㄦ秷鎭疷P_COMMAND_UI瀵瑰簲鐨勫搷搴斿嚱鏁版潵瀹炵幇銆?br />
void聽CMainFrame::OnUpdateNewTool(CCmdUI*聽pCmdUI)聽
{
聽聽聽聽
//聽TODO:聽Add聽your聽command聽update聽UI聽handler聽code聽here
聽聽聽聽pCmdUI->SetCheck(m_newToolBar.IsWindowVisible());
}

姝ゆ秷鎭氨鎺у埗浜嗗浣曟樉紺鴻彍鍗曠瓑絳夋樉紺恒?br />

娉ㄨ錛氬湪涓婇潰鐨勬樉紺哄拰闅愯棌涓紝蹇呴』鐢ㄥ埌:RecalLayout()鏉ラ噸鏂拌緗紝鍚﹀垯鐨勮瘽鍗充嬌闅愯棌浜嗭紝浣嗘槸榪樻槸浼?xì)鏄窘C哄嚭鏉ュ伐鍏鋒爮鎵鍦ㄧ殑絀洪棿錛岃屼笉浼?xì)灏啒q欓儴鍒嗘姽闄ゃ傝皟鐢ㄤ簡涔嬪悗錛屼竴鏃﹂殣钘忎簡錛岄偅涔堟閮ㄥ垎娌℃湁鐢ㄥ錛屽氨浼?xì)闅愯棌浜嗗Q屽疄鐜頒簡鍔熻兘銆?img src ="http://www.shnenglu.com/deercoder/aggbug/107969.html" width = "1" height = "1" />

鍒樼晠 2010-02-17 17:09 鍙戣〃璇勮
]]>
亚洲AV无码久久寂寞少妇| 国产精品99久久久精品无码 | 亚洲乱码精品久久久久..| 精品久久人人做人人爽综合| 成人妇女免费播放久久久| 久久综合国产乱子伦精品免费| 伊人久久大香线蕉av不变影院| 中文精品久久久久人妻| 久久久亚洲AV波多野结衣| 99久久精品免费看国产一区二区三区 | 久久香蕉综合色一综合色88| 97r久久精品国产99国产精| 国产精品一区二区久久不卡| 久久九九全国免费| 精品乱码久久久久久夜夜嗨| 久久精品国产黑森林| 亚洲一级Av无码毛片久久精品| 亚洲乱码中文字幕久久孕妇黑人| 无码国产69精品久久久久网站| 九九99精品久久久久久| 国产精品日韩深夜福利久久| 一本久道久久综合狠狠躁AV| 亚洲va中文字幕无码久久| 99久久精品免费看国产一区二区三区 | 国产精品久久久天天影视| 久久精品中文字幕一区| 日韩久久久久中文字幕人妻| 亚洲精品无码久久久久sm| 国产精品永久久久久久久久久| 亚洲精品高清一二区久久| 国产精品久久久久无码av| 无码任你躁久久久久久| 久久精品中文闷骚内射| 日韩欧美亚洲综合久久影院Ds| 精品久久久久久久无码 | 久久精品国产清自在天天线| 91秦先生久久久久久久| 亚洲午夜久久久久久噜噜噜| 久久最新免费视频| 99久久国产免费福利| 久久青青草原精品国产|