锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美va久久久噜噜噜久久,久久国产一区二区,伊人色综合久久天天网 http://www.shnenglu.com/wlwlxj/category/610.html<div>涓涓悆杞キ鐨勭敺浜?!!!!鎴戝彧鎯沖啓紼嬪簭####<br>甯堝し涔嬫妧浠ュ埗澶? 鍚懼皾緇堟棩鑰屾濈煟,涓嶅欏昏嚲涔嬫墍瀛︿篃<br>鍠濈瀛熷﹩姹?韙忚繃濂堜綍妗?娑呮</div> I've been programming since I was 21. Started with C++, looked at Java, keen on Visual Basic and Visual C++, thinking about .NET and C#.^_^,very ridiculous.zh-cnMon, 19 May 2008 12:34:47 GMTMon, 19 May 2008 12:34:47 GMT60VC8涓璏FC闆嗘垚ATL緇勪歡娉ㄥ唽鏃舵敞鎰忕殑涓涓棶棰?/title><link>http://www.shnenglu.com/wlwlxj/archive/2008/02/26/43247.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Tue, 26 Feb 2008 03:49:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2008/02/26/43247.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/43247.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2008/02/26/43247.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/43247.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/43247.html</trackback:ping><description><![CDATA[<br>鐢變簬VC8鐢熸垚MFC紼嬪簭鏃跺欏鏋滈夋嫨鍒涘緩solution錛宔xe涓嶅湪鏈洰褰曠殑debug鐩綍涓嬶紝鑰屾槸鍦╯olution鐨刣ebug鐩綍涓嬨傚綋鍔犲叆atl鏀寔鏃跺欙紝鐢熸垚鐨則lb鍗村湪鏈洰褰曠殑debug涓嬨傛鏃剁被鍨嬪簱娉ㄥ唽闇瑕佹墜宸ユ墽琛岋細%exe璺緞% -RegServer銆傛鏃訛紝濡傛灉tlb涓嶅湪exe緇熶竴鐩綍錛屾敞鍐屾槸澶辮觸鐨勩傛墍浠ヤ竴瀹氳鎷瘋礉鍒板綋鍓嶇洰褰曞啀娉ㄥ唽銆? <img src ="http://www.shnenglu.com/wlwlxj/aggbug/43247.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2008-02-26 11:49 <a href="http://www.shnenglu.com/wlwlxj/archive/2008/02/26/43247.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>VS2005鍏充簬寮鍙戠粍浠剁殑涓涓狟ughttp://www.shnenglu.com/wlwlxj/archive/2007/11/14/36641.html涓囪繛鏂?/dc:creator>涓囪繛鏂?/author>Wed, 14 Nov 2007 15:32:00 GMThttp://www.shnenglu.com/wlwlxj/archive/2007/11/14/36641.htmlhttp://www.shnenglu.com/wlwlxj/comments/36641.htmlhttp://www.shnenglu.com/wlwlxj/archive/2007/11/14/36641.html#Feedback0http://www.shnenglu.com/wlwlxj/comments/commentRss/36641.htmlhttp://www.shnenglu.com/wlwlxj/services/trackbacks/36641.html涓嶆竻妤氭槸涓枃鐗堢殑闂榪樻槸鎴戠殑鐩楃増鐨勯棶棰橈紝鐢熸垚鐨刟tl宸ョ▼鏃犳硶娉ㄥ唽錛屾湁濡備笅閿欒錛?br>error PRJ0050: 鏈兘娉ㄥ唽杈撳嚭銆傝紜繚鎮ㄦ湁淇敼娉ㄥ唽琛ㄧ殑鐩稿簲鏉冮檺銆?/em>

涓寮濮嬪緢鏄棤濂堬紝鍥犱負涔嬪墠VC6 VC2003涓鐩存湭閬囧埌姝ょ被闂銆備嬌鐢―ependcy瑙傚療緙哄皯atl80.dll鍜宮svcr80d.dll錛屼負浜嗚В鍐蟲闂錛屾垜涓鐩撮噰鍙栭潤鎬佽繛鎺ヨ繖涓や釜搴撱傜洿鍒頒粖澶╂墠鍙戠幇錛孷C6鍜孷C2003瀹夎鐨勬椂鍊欓兘浼氭嫹璐濊繖浜涘簱鍒癝ystem32涓嬶紝鑰屽敮鐙琕C2005娌℃湁灝嗘鎷瘋礉銆傚湪VS2005瀹夎鐩綍涓嬫壘鍒扮己灝戠殑搴撴嫹璐濆埌System32涓嬪幓灝卞彲浠ヤ簡銆?

]]>
OLE瀹瑰櫒涔嬬幆澧冨睘鎬ф敮鎸?/title><link>http://www.shnenglu.com/wlwlxj/archive/2007/05/13/24017.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Sun, 13 May 2007 00:57:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2007/05/13/24017.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/24017.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2007/05/13/24017.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/24017.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/24017.html</trackback:ping><description><![CDATA[     鎽樿: OLE娣卞叆鎶鏈?nbsp; <a href='http://www.shnenglu.com/wlwlxj/archive/2007/05/13/24017.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wlwlxj/aggbug/24017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2007-05-13 08:57 <a href="http://www.shnenglu.com/wlwlxj/archive/2007/05/13/24017.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍥劇墖棰勮鎺т歡http://www.shnenglu.com/wlwlxj/archive/2007/01/13/17601.html涓囪繛鏂?/dc:creator>涓囪繛鏂?/author>Sat, 13 Jan 2007 14:36:00 GMThttp://www.shnenglu.com/wlwlxj/archive/2007/01/13/17601.htmlhttp://www.shnenglu.com/wlwlxj/comments/17601.htmlhttp://www.shnenglu.com/wlwlxj/archive/2007/01/13/17601.html#Feedback0http://www.shnenglu.com/wlwlxj/comments/commentRss/17601.htmlhttp://www.shnenglu.com/wlwlxj/services/trackbacks/17601.html璁板緱浠ュ墠浣跨敤acdsee鐪嬪浘鐗囩殑鏃跺欙紝闈炲父鍠滄瀹冪殑UI妯″紡錛氫竴涓爲鐩綍銆佷竴涓瑙堣鍥俱佷竴涓浘鐗囨樉紺鴻鍥俱傜敱浜庝互鍓嶅鐞嗘墍鏈夌殑鍥劇墖綾誨瀷姣旇緝楹葷儲錛屾墍浠ユ病鏈夎姳璐規椂闂村幓鍋氥傚浠婃湁浜唃idplus錛屽仛璧鋒潵姣旇緝鏂逛究錛岄棽鏆囨椂闂村氨鍔ㄤ簡涓嬫墜銆傞『渚挎彁涓涓嬶紝gdiplus璇存槸鏀寔鍑犱箮鎵鏈夊浘鍍忕被鍨嬶紝浣嗘槸瀵筭if鏂囦歡鐨勫啓濂藉儚騫朵笉鏀寔錛屼笉鐭ラ亾鍏朵粬鏈嬪弸鏄惁鐢ㄨ繃銆?br />鐢╝tl鍒嗗埆灝佽浜?涓帶浠訛紝涓嬮潰鏄湪vb6 vc6 浠ュ強 .net閲岄潰浣跨敤鎯呭喌銆?/p>

VB6璁捐鏃訛細

閫氳繃浜嬩歡銆佸睘鎬у叧鑱?涓帶浠?/p>

Private Sub 聽FolderTree1_FolderSelChanged()
聽聽聽聽PreviewList1.FolderPath聽
= 聽FolderTree1.FolderPath
聽聽聽聽PreviewView1.ImagePath聽
= 聽PreviewList1.ImagePath
End聽Sub


Private Sub 聽PreviewList1_ImageSelChanged()
聽聽聽聽PreviewView1.ImagePath聽
= 聽PreviewList1.ImagePath
End聽Sub


榪愯鏃訛細

VC6璁捐鏃訛細

閫氳繃浜嬩歡銆佸睘鎬у叧鑱?涓帶浠?/p>

void 聽CTestDlg::OnFolderSelChangedFoldertree1()聽
{
// 聽TODO:聽Add聽your聽control聽notification聽handler聽code聽here
if (m_wndFolderSel.GetSafeHwnd())
{
聽聽m_wndPreviewList.SetFolderPath(m_wndFolderSel.GetFolderPath());
聽聽m_wndPreviewView.SetImagePath(m_wndFolderSel.GetFolderPath());
聽}

}


void 聽CTestDlg::OnImageSelChangedPreviewlist1()聽
{
// 聽TODO:聽Add聽your聽control聽notification聽handler聽code聽here
聽m_wndPreviewView.SetImagePath(m_wndPreviewList.GetImagePath());
}


榪愯鏃訛細

.net璁捐鏃訛細

閫氳繃浜嬩歡銆佸睘鎬у叧鑱?涓帶浠?/p>

private void 聽axFolderTree1_FolderSelChanged( object 聽sender,聽EventArgs聽e)
{
聽聽聽聽聽聽聽聽axPreviewList1.FolderPath聽
= 聽axFolderTree1.FolderPath;
聽聽聽聽聽聽聽聽axPreviewView1.ImagePath聽
= 聽axFolderTree1.FolderPath;
}


private void 聽axPreviewList1_ImageSelChanged( object 聽sender,聽EventArgs聽e)
{
聽聽聽聽聽聽聽聽axPreviewView1.ImagePath聽
= 聽axPreviewList1.ImagePath;
}


榪愯鏃訛細



]]>
activex鎺т歡鍔犻熼敭娑堟伅澶勭悊涓嶅畬鍏ㄦ柟妗?/title><link>http://www.shnenglu.com/wlwlxj/archive/2006/11/17/15319.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Fri, 17 Nov 2006 13:40:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2006/11/17/15319.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/15319.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2006/11/17/15319.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/15319.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/15319.html</trackback:ping><description><![CDATA[     鎽樿: 鍏充簬activex鎺т歡鍔犻熼敭娑堟伅(tab up down left right home end ...)闂澶勭悊  <a href='http://www.shnenglu.com/wlwlxj/archive/2006/11/17/15319.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wlwlxj/aggbug/15319.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2006-11-17 21:40 <a href="http://www.shnenglu.com/wlwlxj/archive/2006/11/17/15319.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>閫氳繃緙栫▼鑾峰彇COM dll涓璗ype鍜孎unctionhttp://www.shnenglu.com/wlwlxj/archive/2006/09/06/12104.html涓囪繛鏂?/dc:creator>涓囪繛鏂?/author>Wed, 06 Sep 2006 14:21:00 GMThttp://www.shnenglu.com/wlwlxj/archive/2006/09/06/12104.htmlhttp://www.shnenglu.com/wlwlxj/comments/12104.htmlhttp://www.shnenglu.com/wlwlxj/archive/2006/09/06/12104.html#Feedback2http://www.shnenglu.com/wlwlxj/comments/commentRss/12104.htmlhttp://www.shnenglu.com/wlwlxj/services/trackbacks/12104.html闃呰鍏ㄦ枃

]]>
鍒嗗竷寮忚璁′箣DCOM瀹炵幇http://www.shnenglu.com/wlwlxj/archive/2006/07/10/9633.html涓囪繛鏂?/dc:creator>涓囪繛鏂?/author>Mon, 10 Jul 2006 03:25:00 GMThttp://www.shnenglu.com/wlwlxj/archive/2006/07/10/9633.htmlhttp://www.shnenglu.com/wlwlxj/comments/9633.htmlhttp://www.shnenglu.com/wlwlxj/archive/2006/07/10/9633.html#Feedback5http://www.shnenglu.com/wlwlxj/comments/commentRss/9633.htmlhttp://www.shnenglu.com/wlwlxj/services/trackbacks/9633.html闃呰鍏ㄦ枃

]]>
鎴戠殑騫沖彴+鎻掍歡瑙?/title><link>http://www.shnenglu.com/wlwlxj/archive/2006/07/05/9454.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Wed, 05 Jul 2006 12:44:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2006/07/05/9454.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/9454.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2006/07/05/9454.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/9454.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/9454.html</trackback:ping><description><![CDATA[     鎽樿: 浠涔堝彨鍙板憿錛熷彴,瑙傚洓鏂硅岄珮鑰呪斺斻婅鏂囥嬨?nbsp; <a href='http://www.shnenglu.com/wlwlxj/archive/2006/07/05/9454.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wlwlxj/aggbug/9454.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2006-07-05 20:44 <a href="http://www.shnenglu.com/wlwlxj/archive/2006/07/05/9454.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MFC涓嶢TL鐨勭敺濂沖叧緋?/title><link>http://www.shnenglu.com/wlwlxj/archive/2006/07/03/9297.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Mon, 03 Jul 2006 00:21:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2006/07/03/9297.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/9297.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2006/07/03/9297.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/9297.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/9297.html</trackback:ping><description><![CDATA[     鎽樿: MFC鏄竴涓敺浜?ATL鏄竴涓コ浜?nbsp; <a href='http://www.shnenglu.com/wlwlxj/archive/2006/07/03/9297.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/wlwlxj/aggbug/9297.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2006-07-03 08:21 <a href="http://www.shnenglu.com/wlwlxj/archive/2006/07/03/9297.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ATL紿楀彛娣誨姞鍔熻兘鐨?縐嶆柟娉?/title><link>http://www.shnenglu.com/wlwlxj/archive/2006/01/02/2358.html</link><dc:creator>涓囪繛鏂?/dc:creator><author>涓囪繛鏂?/author><pubDate>Mon, 02 Jan 2006 07:29:00 GMT</pubDate><guid>http://www.shnenglu.com/wlwlxj/archive/2006/01/02/2358.html</guid><wfw:comment>http://www.shnenglu.com/wlwlxj/comments/2358.html</wfw:comment><comments>http://www.shnenglu.com/wlwlxj/archive/2006/01/02/2358.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wlwlxj/comments/commentRss/2358.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wlwlxj/services/trackbacks/2358.html</trackback:ping><description><![CDATA[<P>1銆佹秷鎭槧灝勭殑閾炬帴<BR><BR>濡傛灉榪欎釜綾繪槸ATL紿楀彛綾伙紝鎴戜滑鍙互浠庤繖涓獥鍙g被媧劇敓鑷繁鐨勭被錛屽氨璞ase Class Chaining涓弿榪扮殑涓鏍楓?BR>class CBase : public CWindowImpl<CBase>  <BR>{<BR>public:<BR> BEGIN_MSG_MAP(CBase)<BR>  MESSAGE_HANDLER(WM_DESTROY, OnDestroy)<BR>  MESSAGE_HANDLER(WM_LBUTTONDOWN, OnButtonDown)<BR>  ALT_MSG_MAP(100)<BR>  MESSAGE_HANDLER(WM_DESTROY, OnDestroy)<BR>  MESSAGE_HANDLER(WM_LBUTTONDOWN, OnButtonDown2)<BR> END_MSG_MAP()<BR>public:<BR> CBase();<BR> virtual ~CBase();<BR> <BR> LRESULT OnDestroy(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  PostQuitMessage(0);<BR>  return 0;<BR> }<BR> LRESULT OnButtonDown(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  MessageBox("baseclass : button down\n");<BR>  return 0;<BR> }<BR> LRESULT OnButtonDown2(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  MessageBox("baseclass : button down2\n");<BR>  return 0;<BR> }<BR>};<BR><BR>class CDerived: public CBase<BR>{<BR> BEGIN_MSG_MAP(CDerived)<BR>  MESSAGE_HANDLER(WM_LBUTTONDOWN, OnButtonDown)<BR>  CHAIN_MSG_MAP_ALT(CBase, 100) //閾炬帴鍒板熀綾?BR> END_MSG_MAP()<BR> <BR> LRESULT OnButtonDown(UINT, WPARAM, LPARAM, BOOL& bHandle)<BR> {<BR>  MessageBox("derivedclass : button down\n");<BR>  bHandle = FALSE; //鍐沖畾鏄惁緇х畫浼犳秷鎭?BR>  return 0;<BR> }<BR>};<BR><BR>2銆佽秴綾誨寲<BR><BR>濡傛灉鎴戜滑鎯蟲墿灞曚竴涓瀹氫箟鐨勭獥鍙g被錛堝鎸夌航綾繪垨鍒楄〃妗嗙被錛夌殑鍔熻兘錛屾垜浠彲浠ヨ秴綾誨寲瀹冦傚氨鏄垱寤轟竴涓熀浜庤繖涓瀹氫箟綾葷殑鏂扮被錛屽茍鍦ㄦ秷鎭槧灝勮〃涓坊鍔犳秷鎭槧灝勪互澧炲己瀹冪殑鍔熻兘銆傝繖涓湪浣跨敤MFC寮鍙戜嬌鐢ㄦ渶澶氥?BR>class CBeepButton : public CWindowImpl<CBeepButton>  <BR>{<BR>public:<BR> CBeepButton();<BR> virtual ~CBeepButton();<BR> <BR> DECLARE_WND_SUPERCLASS(_T("BeepButton"), _T("Button"))<BR>  BEGIN_MSG_MAP(CBeepButton)<BR>  MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown)<BR> END_MSG_MAP()</P> <P><BR> LRESULT OnLButtonDown(UINT, WPARAM, LPARAM, BOOL& bHandled)<BR> {<BR>  MessageBeep(MB_ICONASTERISK);<BR>  bHandled = FALSE; //緇х畫璋冪敤鍩虹被鐨勫嚱鏁?BR>  return 0;<BR>   }<BR>};</P> <P>3銆佸瓙綾誨寲<BR><BR>鏈変簺鏃跺欙紝鎴戜滑闇瑕佹敼鍙樹竴涓凡緇忓瓨鍦ㄧ殑紿楀彛瀹炰緥鐨勮涓猴紝鑰屼笉鏄竴涓獥鍙g被鈥斺旀垨璁告垜浠璁╀竴涓璇濇涓婄殑緙栬緫妗嗗仛鐐逛粈涔堢壒鍒殑浜嬫儏銆傚湪榪欑鎯呭喌涓嬶紝鎴戜滑鍙互鍐欎竴涓柊鐨凙TL紿楀彛綾伙紝騫跺瓙綾誨寲榪欎釜宸茬粡瀛樺湪鐨勭紪杈戞銆備換浣曟湰璇ュ彂閫佸埌榪欎釜緙栬緫妗嗙殑娑堟伅閮戒細鍏堣鍙戦佸埌榪欎釜瀛愮被鐨勫璞°?BR><BR>class CNoNumEdit : public CWindowImpl<CNoNumEdit><BR>{<BR>public:<BR> CNoNumEdit();<BR> virtual ~CNoNumEdit();<BR> <BR> BEGIN_MSG_MAP(CNoNumEdit)<BR>  MESSAGE_HANDLER(WM_CHAR, OnChar)<BR> END_MSG_MAP()</P> <P> LRESULT OnChar(UINT, WPARAM wParam, LPARAM, BOOL& bHandled)<BR> {<BR>  TCHAR ch = wParam;<BR>  if(_T('0')<=ch && ch<=_T('9'))<BR>   MessageBeep(0);<BR>  else<BR>   bHandled = FALSE;   //涓嶅鐞嗭紝浜ょ粰緙栬緫妗嗚嚜宸卞鐞?BR>  return 0;<BR>   }<BR>};<BR>4銆佸鍣ㄧ獥鍙?BR><BR>鍙﹀涓縐嶅彲閫夌殑鏂規硶錛氭垜浠篃鍙互璁╄繖涓紪杈戞鎴愪負涓涓鍖呭惈鐨勭獥鍙o紝鎵鏈夊彂閫佸埌榪欎釜緙栬緫妗嗙殑娑堟伅閮戒細緇忚繃瀹冪殑瀹瑰櫒紿楀彛錛涙垜浠彲浠ュ湪榪欎釜瀹瑰櫒紿楀彛涓負榪欎釜琚寘鍚殑紿楀彛瀹炵幇鐗規畩鐨勬秷鎭鐞嗐?BR><BR>class CMyWindow : public CWindowImpl<CMyWindow><BR>{<BR>public:<BR> CMyWindow();<BR> virtual ~CMyWindow();</P> <P> BEGIN_MSG_MAP( CMyWindow )<BR>  MESSAGE_HANDLER(WM_CREATE, OnCreate)<BR>  MESSAGE_HANDLER(WM_DESTROY, OnDestroy)<BR>  ALT_MSG_MAP(99) //contained window's messages come here...<BR>  MESSAGE_HANDLER(WM_CHAR, OnChar)<BR> END_MSG_MAP()</P> <P> LRESULT OnCreate(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  RECT rc = { 10, 10, 200, 35 };<BR>  m_wndContained.Create(m_hWnd, rc, _T("non-numeric edit"),<BR>   WS_CHILD|WS_VISIBLE|WS_BORDER, 0, 666);<BR>  return 0;<BR> }</P> <P> LRESULT OnChar(UINT, WPARAM wParam, LPARAM, BOOL& bHandled)<BR> {<BR>  TCHAR ch = wParam;<BR>  if(_T('0')<=ch && ch<=_T('9'))<BR>   MessageBeep( 0 );<BR>  else<BR>   bHandled = FALSE;   //涓嶅鐞嗭紝浜ょ粰緙栬緫妗嗚嚜宸卞鐞?BR>  return 0;<BR> }<BR> <BR> LRESULT OnDestroy(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  PostQuitMessage( 0 );<BR>  return 0;<BR> }</P> <P>private:<BR> CContainedWindow m_wndContained;<BR>};<BR><BR>CMyWindow::CMyWindow() : m_wndContained(_T("edit"), this, 99)<BR>{</P> <P>}<BR><BR>5銆佹秷鎭弽灝?BR><BR>鏈鍚庣殑涓縐嶆柟娉曞氨鏄秷鎭弽灝勶紝褰撲竴涓獥鍙f敹鍒頒竴涓秷鎭悗涓嶅鐞嗗畠錛岃屾槸鍙嶅皠緇欏彂閫佽繖涓秷鎭殑紿楀彛鑷繁澶勭悊錛岃繖縐嶆妧鏈彲浠ョ敤鏉ュ垱寤鴻嚜鍖呭惈鐨勬帶浠躲?BR><BR>class CStaticLink : public CWindowImpl<CStaticLink>  <BR>{<BR>public:<BR> DECLARE_WND_SUPERCLASS(_T("StaticLink"), _T("Static"))</P> <P> CStaticLink();<BR> virtual ~CStaticLink();</P> <P> void SetLinkText(LPCTSTR szLink)<BR> {<BR>  USES_CONVERSION;<BR>  m_bstrLink = T2OLE(szLink);<BR> }</P> <P> BEGIN_MSG_MAP(CStaticLink)<BR>  //uses message reflection: WM_* comes back as OCM_*<BR>  MESSAGE_HANDLER(OCM_COMMAND, OnCommand)<BR>  MESSAGE_HANDLER(OCM_CTLCOLORSTATIC, OnCtlColor)<BR>  MESSAGE_HANDLER(WM_DESTROY, OnDestroy) //not a reflected message<BR>  DEFAULT_REFLECTION_HANDLER()<BR> END_MSG_MAP()</P> <P> LRESULT OnDestroy(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  if(m_hFont)<BR>  {<BR>   DeleteObject(m_hFont);<BR>   m_hFont = NULL;<BR>  }<BR>  return 0;<BR> }</P> <P>   LRESULT OnCommand(UINT, WPARAM wParam, LPARAM, BOOL&)<BR>   {<BR>    USES_CONVERSION;<BR>    int code = HIWORD(wParam);<BR>    if(code==STN_CLICKED || code==STN_DBLCLK)<BR>    {<BR>     if(m_bstrLink.Length() == 0)<BR>     {<BR>      GetWindowText(&m_bstrLink);<BR>     }<BR>     if((int)ShellExecute(m_hWnd, _T("open"),<BR>      OLE2T(m_bstrLink), NULL, NULL, SW_SHOWNORMAL) > 32)<BR>     {<BR>      m_bVisited = TRUE;   //return codes>32 => success<BR>      Invalidate();<BR>     }<BR>     else<BR>     {<BR>      MessageBeep(0);<BR>      ATLTRACE(_T("Error: CStaticLink couldn't open file"));<BR>     }<BR>    }<BR>    return 0;<BR>   }</P> <P>   LRESULT OnCtlColor(UINT, WPARAM wParam, LPARAM, BOOL&)<BR>   {<BR>    // notify bit must be set to get STN_* notifications<BR>    ModifyStyle(0, SS_NOTIFY);<BR>    HBRUSH hBr = NULL;<BR>    if((GetStyle()&0xff) <= SS_RIGHT)<BR>    {<BR>     // it's a text control: set up font and colors<BR>     if(!m_hFont)<BR>     {<BR>      LOGFONT lf;<BR>      GetObject(GetFont(), sizeof(lf), &lf);<BR>      lf.lfUnderline = TRUE;<BR>      m_hFont = CreateFontIndirect(&lf);<BR>     }<BR>     HDC hDC = (HDC)wParam;<BR>     SelectObject(hDC, m_hFont);<BR>     SetTextColor(hDC, m_bVisited?m_clrVisited:m_clrUnvisited);<BR>     SetBkMode(hDC, TRANSPARENT);<BR>     hBr = (HBRUSH)GetStockObject(HOLLOW_BRUSH);<BR>    }<BR>    return (LRESULT)hBr;<BR>   }</P> <P>private:<BR> COLORREF m_clrUnvisited;<BR> COLORREF m_clrVisited;<BR> BOOL  m_bVisited;<BR> HFONT  m_hFont;<BR> CComBSTR m_bstrLink;<BR>};</P> <P> </P> <P>class CReflectDlg : public CDialogImpl<CReflectDlg><BR>{<BR>public:<BR> enum { IDD = IDD_DIALOG1 };</P> <P> BEGIN_MSG_MAP(CReflectDlg)<BR>  COMMAND_RANGE_HANDLER(IDOK, IDCANCEL, OnClose)<BR>  MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)<BR>  REFLECT_NOTIFICATIONS()  //reflect messages back to static links<BR> END_MSG_MAP()</P> <P> LRESULT OnInitDialog(UINT, WPARAM, LPARAM, BOOL&)<BR> {<BR>  CenterWindow( GetParent() );<BR>  //a textual static control:<BR>  s1.SubclassWindow(GetDlgItem(IDS_TEST1));<BR>  //a static control displaying an icon<BR>  s2.SubclassWindow(GetDlgItem(IDS_TEST2));<BR>  //set the icon's link<BR>  s2.SetLinkText(_T("<A ));<BR>  return 0;<BR> }</P> <P> LRESULT OnClose(UINT, WPARAM wID, HWND, BOOL&)<BR> {<BR>  EndDialog(wID);<BR>  return 0;<BR> }</P> <P>private:<BR> CStaticLink s1, s2;<BR>}; <BR><BR>浠ヤ笂渚挎槸榪?縐嶆柟娉曪紝鍦ㄨ蔣浠惰璁℃椂鏈夋椂鍊欒揪鍒頒竴涓洰鐨勭殑鏂規硶寰堝錛岃繖鏃跺欐渶閲嶈鐨勫氨鏄夋嫨鏈閫傚悎鐨勬柟娉曪紝浣塊」鐩敼鍔ㄦ洿灝忥紝鎵╁睍鏈濂姐?BR><BR><A href="/Files/wlwlxj/ATLWindow.rar">涓嬭澆鎵鏈夋紨紺轟緥瀛?/A></P><img src ="http://www.shnenglu.com/wlwlxj/aggbug/2358.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wlwlxj/" target="_blank">涓囪繛鏂?/a> 2006-01-02 15:29 <a href="http://www.shnenglu.com/wlwlxj/archive/2006/01/02/2358.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ATL紿楀彛緇ф壙瀹炵幇鏈哄埗http://www.shnenglu.com/wlwlxj/archive/2005/12/20/1905.html涓囪繛鏂?/dc:creator>涓囪繛鏂?/author>Tue, 20 Dec 2005 08:32:00 GMThttp://www.shnenglu.com/wlwlxj/archive/2005/12/20/1905.htmlhttp://www.shnenglu.com/wlwlxj/comments/1905.htmlhttp://www.shnenglu.com/wlwlxj/archive/2005/12/20/1905.html#Feedback5http://www.shnenglu.com/wlwlxj/comments/commentRss/1905.htmlhttp://www.shnenglu.com/wlwlxj/services/trackbacks/1905.html瀛︿範WTL鏃訛紝鍙戠幇鍏剁獥鍙e疄鐜版ā寮忛噰鐢ˋTL紿楀彛瀹炵幇鏂瑰紡錛屼簬鏄ATL紿楀彛瀹炵幇鏈哄埗鐮旂┒涓涓嬨?/div>
鍏朵富瑕佹濇兂榪樻槸緇ф壙鍜屾ā鏉匡紝閬垮厤闇鍑芥暟瀵艱嚧榪愯鏃剁被緇撴瀯澧炲ぇ銆傚埄鐢ㄦ帶鍒跺彴紼嬪簭妯℃嫙濡備笅錛?/div>
#include <iostream>
template<class T>
class A
{
public:
聽A()
聽{
聽}
聽virtual ~A()
聽{
聽}
聽void Say()
聽{
聽聽(static_cast<T*>(this))->Say();
聽}
};
class DeriveA : public A<DeriveA>
{
public:
聽DeriveA() : A<DeriveA>()
聽{
聽}
聽void Say()
聽{
聽聽std::cout << "Hello, World!" << std::endl;
聽}
};
int main(int argc, char* argv[])
{
聽A<DeriveA>*聽聽pA = new DeriveA();
聽pA->Say();
delete pA;
聽return 0;
}
涓昏閫氳繃鍩虹被鐨則his鎸囬拡璇嗗埆瀵硅薄銆?br />


]]> 一级做a爰片久久毛片16| 国内精品久久久久久久久电影网| 欧美va久久久噜噜噜久久| 亚洲精品国产美女久久久| 久久精品国产亚洲AV无码偷窥| 久久精品欧美日韩精品| 欧美久久久久久精选9999| 狠狠精品久久久无码中文字幕| 成人久久久观看免费毛片 | 无码国产69精品久久久久网站| www性久久久com| 香蕉久久影院| 国产一区二区精品久久岳| 少妇内射兰兰久久| 色悠久久久久久久综合网| 国产精品久久久久9999高清| 无码8090精品久久一区| 欧美亚洲另类久久综合| 久久精品国产亚洲AV蜜臀色欲| 成人精品一区二区久久| 久久精品国产亚洲精品2020| 2020久久精品亚洲热综合一本| 久久亚洲国产欧洲精品一| 日韩久久久久久中文人妻 | 久久w5ww成w人免费| 一级做a爰片久久毛片毛片| 国产精品久久久天天影视香蕉 | 久久91精品国产91久久户| 亚洲综合日韩久久成人AV| 亚洲一级Av无码毛片久久精品| 久久国产精品二国产精品| 欧美777精品久久久久网| 久久久久女人精品毛片| 亚洲精品无码久久久久| 一本一本久久A久久综合精品| 日日狠狠久久偷偷色综合96蜜桃 | 久久这里只有精品首页| 久久强奷乱码老熟女网站| 久久人人爽人人爽人人片AV东京热 | 99久久精品日本一区二区免费| 久久无码人妻一区二区三区|