锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品亚洲日本波多野结衣,亚洲综合久久综合激情久久,97久久天天综合色天天综合色hd http://www.shnenglu.com/lanshengsheng/zh-cnWed, 07 May 2025 03:53:03 GMTWed, 07 May 2025 03:53:03 GMT60http://blog.csdn.net/lanshengsheng2012http://www.shnenglu.com/lanshengsheng/archive/2013/05/07/200084.html鐩涜儨鐩涜儨Tue, 07 May 2013 08:53:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/05/07/200084.htmlhttp://www.shnenglu.com/lanshengsheng/comments/200084.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/05/07/200084.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/200084.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/200084.htmlhttp://blog.csdn.net/lanshengsheng2012

鐢變簬榪欎釜鍗氬浠呴檺浜巆++鏂歸潰銆傜洰鍓嶈繘琛屾垜鐨勫崥瀹㈣漿縐誨埌csdn

鐩涜儨 2013-05-07 16:53 鍙戣〃璇勮
]]>
VC鍔ㄦ佸垱寤烘帶浠?/title><link>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199173.html</link><dc:creator>鐩涜儨</dc:creator><author>鐩涜儨</author><pubDate>Sun, 07 Apr 2013 06:36:00 GMT</pubDate><guid>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199173.html</guid><wfw:comment>http://www.shnenglu.com/lanshengsheng/comments/199173.html</wfw:comment><comments>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199173.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/lanshengsheng/comments/commentRss/199173.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lanshengsheng/services/trackbacks/199173.html</trackback:ping><description><![CDATA[<div style="color: #333333; font-family: Arial; background-color: #ffffff; word-wrap: break-word; word-break: break-all; line-height: 18px; font-weight: bold; overflow: hidden; visibility: visible !important; zoom: 1 !important;">VC鍔ㄦ佸垱寤烘帶浠?/div><div style="font-family: Arial; background-color: #ffffff; word-wrap: break-word; word-break: break-all; line-height: 18px; margin: 5px 0px 8px; color: #666666; visibility: visible !important; zoom: 1 !important;">2010-12-15 11:09</div><table style="color: #333333; font-family: Arial; font-size: 14px; line-height: 26px; background-color: #ffffff; table-layout: fixed; width: 960px;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; line-height: 18px; visibility: visible !important; zoom: 1 !important;"><div class="8myyi24" id="blog_text" style="word-wrap: break-word; word-break: normal; line-height: 20px; overflow: hidden; visibility: visible !important; zoom: 1 !important; position: relative !important;"><p style="line-height: normal;"><strong>鍔ㄦ佹帶浠舵槸鎸?span style="color: #0000ff;">鍦ㄩ渶瑕佹椂鐢盋reate()鍒涘緩鐨勬帶浠?/span>錛岃繖涓庨鍏堝湪瀵硅瘽妗嗕腑鏀劇疆鐨勬帶浠舵槸涓嶅悓鐨勩?nbsp;<br /><br />銆銆<span style="color: #ff0000;">涓銆佸垱寤哄姩鎬佹帶浠訛細</span><br /><br />銆銆涓轟簡瀵圭収錛屾垜浠厛鏉ョ湅涓涓嬮潤鎬佹帶浠剁殑鍒涘緩銆?br /><br />銆銆鏀劇疆闈欐佹帶浠舵椂蹇呴』鍏堝緩绔嬩竴涓鍣紝涓鑸槸瀵硅瘽妗嗭紝榪欐椂鎴戜滑鍦ㄥ璇濇緙栬緫紿楀彛涓紝浠庡伐鍏風獥鍙d腑鎷栧嚭鎵闇鎺т歡鏀懼湪瀵硅瘽妗嗕腑鍗沖彲錛屽啀閫傚綋淇敼鎺т歡ID錛岃緗帶浠跺睘鎬э紝涓涓潤鎬佹帶浠跺氨鍒涘緩濂戒簡錛屽綋瀵硅瘽妗嗚鏄劇ず鏃訛紝鍏朵笂鐨勬帶浠朵篃浼氭樉紺恒?br /><br />銆銆闈欐佹帶浠朵笉闇瑕佽皟鐢–reate()鍑芥暟鏉ュ垱寤恒?br /><br />銆銆鑰屽垱寤哄姩鎬佹帶浠舵湁寰堝ぇ涓嶅悓錛屼互涓嬩互鎸夐挳涓轟緥錛岀湅涓涓嬪姩鎬佹帶浠剁殑鍒涘緩榪囩▼錛?br /><br />銆銆1.寤虹珛鎺т歡ID鍙鳳細<br /><br />銆銆ID鍙鋒槸鎺т歡鐨勬爣璇嗭紝鍒涘緩鎺т歡鍓嶅繀欏誨厛涓哄畠璁劇疆涓涓狪D鍙楓?br /><br />銆銆鎵撳紑璧勬簮涓殑“String Table”錛屽湪絀虹櫧琛屼笂鍙屽嚮榧犳爣錛岃繖鏃朵細寮瑰嚭涓涓狪D灞炴у璇濇錛屽湪鍏朵腑鐨処D緙栬緫妗嗕腑杈撳叆ID錛屽錛欼DC_MYBUTTON錛屽湪Caption涓緭鍏ユ帶浠舵爣棰樻垨娉ㄨВ錛堟敞錛欳aption妗嗕笉鑳戒負絀猴紝涓虹┖浼氬鑷村垱寤哄け璐ワ級錛岃繖閲屾垜杈撳叆鐨勬槸鎸夐挳涓婅鏄劇ず鐨勬枃瀛?-鍔ㄦ佹寜閽?br /><br />銆銆2.寤虹珛鎺т歡瀵硅薄錛?br /><br />銆銆涓嶅悓縐嶇被鐨勬帶浠跺簲鍒涘緩涓嶅悓鐨勭被瀵硅薄錛?br /><br />銆銆·鎸夐挳鎺т歡 CButton 錛堝寘鎷櫘閫氭寜閽佸崟閫夋寜閽拰澶嶉夋寜閽級<br />銆銆·緙栬緫鎺т歡 CEdit<br />銆銆·闈欐佹枃鏈帶浠?CStatic<br />銆銆·鏍囩鎺т歡 CTabCtrl<br />銆銆·鏃嬭漿鎺т歡 CSpinButtonCtrl<br />銆銆·婊戞爣鎺т歡 CSliderCtrl<br />銆銆·澶氫俊鎭紪杈戞帶浠?CRichEditCtrl<br />銆銆·榪涘害鏉℃帶浠?CProgressCtrl<br />銆銆·婊氬姩鏉℃帶浠?CSrcollBar<br />銆銆·緇勫悎妗嗘帶浠?CComboBox<br />銆銆·鍒楄〃妗嗘帶浠?CListBox<br />銆銆·鍥懼儚鍒楄〃鎺т歡 CImageCtrl<br />銆銆·鏍戠姸鎺т歡 CTreeCtrl<br />銆銆·鍔ㄧ敾鎺т歡 CAnimateCtrl<br /><br />銆銆鏈緥涓垜浠垱寤轟竴涓狢Button綾葷殑鏅氭寜閽傛敞鎰忎笉鑳界洿鎺ュ畾涔塁Button瀵硅薄錛屽錛欳Button m_MyBut;榪欑瀹氫箟鍙兘鐢ㄦ潵緇欓潤鎬佹帶浠跺畾涔夋帶鍒跺彉閲忥紝涓嶈兘鐢ㄤ簬鍔ㄦ佹帶浠躲?br /><br />銆銆姝g‘鍋氭硶鏄敤new璋冪敤CButton鏋勯犲嚱鏁扮敓鎴愪竴涓疄渚嬶細<br /><br /></strong></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">CButton *p_MyBut = new CButton();</td></tr></tbody></table><br />銆銆鐒跺悗鐢–Button綾葷殑Create()鍑芥暟鍒涘緩錛岃鍑芥暟鍘熷瀷濡備笅錛?br /><br /><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">BOOL Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );</td></tr></tbody></table><br />銆銆lpszCaption鏄寜閽笂鏄劇ず鐨勬枃鏈紱dwStyle鎸囧畾鎸夐挳椋庢牸錛屽彲浠ユ槸鎸夐挳椋庢牸涓庣獥鍙i鏍肩殑緇勫悎錛屽彇鍊兼湁錛?br /><br />銆銆紿楀彛椋庢牸錛?br /><br />銆銆·WS_CHILD 瀛愮獥鍙o紝蹇呴』鏈?br />銆銆·WS_VISIBLE 紿楀彛鍙錛屼竴鑸兘鏈?br />銆銆·WS_DISABLED 紱佺敤紿楀彛錛屽垱寤哄垵濮嬬姸鎬佷負鐏拌壊涓嶅彲鐢ㄧ殑鎸夐挳鏃朵嬌鐢?br />銆銆·WS_TABSTOP 鍙敤Tab閿夋嫨<br />銆銆·WS_GROUP 鎴愮粍錛岀敤浜庢垚緇勭殑鍗曢夋寜閽腑鐨勭涓涓寜閽?br /><br />銆銆鎸夐挳椋庢牸錛?br /><br />銆銆·BS_PUSHBUTTON 涓嬪帇寮忔寜閽紝涔熷嵆鏅氭寜閽?br />銆銆·BS_AUTORADIOBUTTON 鍚嚜鍔ㄩ変腑鐘舵佺殑鍗曢夋寜閽?br />銆銆·BS_RADIOBUTTON 鍗曢夋寜閽紝涓嶅父鐢?br />銆銆·BS_AUTOCHECKBOX 鍚嚜鍔ㄩ変腑鐘舵佺殑澶嶉夋寜閽?br />銆銆·BS_CHECKBOX 澶嶉夋寜閽紝涓嶅父鐢?br />銆銆·BS_AUTO3STATE 鍚嚜鍔ㄩ変腑鐘舵佺殑涓夋佸閫夋寜閽?br />銆銆·BS_3STATE 涓夋佸閫夋寜閽紝涓嶅父鐢?br />銆<br />銆銆浠ヤ笂椋庢牸鎸囧畾浜嗗垱寤虹殑鎸夐挳綾誨瀷錛屼笉鑳藉悓鏃朵嬌鐢紝浣嗗繀欏繪湁鍏朵竴銆?br /><br />銆銆·BS_BITMAP 鎸夐挳涓婂皢鏄劇ず浣嶅浘<br />銆銆·BS_DEFPUSHBUTTON 璁劇疆涓洪粯璁ゆ寜閽紝鍙敤浜庝笅鍘嬪紡鎸夐挳錛屼竴涓璇濇涓彧鑳芥寚瀹氫竴涓粯璁ゆ寜閽?br />銆銆·rect鎸囧畾鎸夐挳鐨勫ぇ灝忓拰浣嶇疆錛?br />銆銆·pParentWnd鎸囩ず鎷ユ湁鎸夐挳鐨勭埗紿楀彛錛屼笉鑳戒負NULL錛?br />銆銆·nID鎸囧畾涓庢寜閽叧鑱旂殑ID鍙鳳紝鐢ㄤ笂涓姝ュ垱寤虹殑ID鍙楓?br /><br />銆銆涓嶅悓鎺т歡綾葷殑Create()鍑芥暟鐣ユ湁涓嶅悓錛屽彲鍙傝冪浉鍏寵祫鏂欍?br /><br />銆銆渚嬶細p_MyBut->Create( "鍔ㄦ佹寜閽?, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(20,10,80,40), this, IDC_MYBUTTON );<br />榪欐牱錛屾垜浠氨鍦ㄥ綋鍓嶅璇濇涓殑(20,10)澶勫垱寤轟簡瀹?0錛岄珮30錛屾寜閽枃瀛椾負“鍔ㄦ佹寜閽?#8221;鐨勪笅鍘嬪紡鎸夐挳銆?br /><br />銆銆涓轟簡浣垮垱寤鴻繃紼嬫洿鏂逛究鏄撶敤錛屾垜瀹氫箟浜嗗涓嬪嚱鏁幫細<br /><br /><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">CButton* CTextEditorView::NewMyButton(int nID,CRect rect,int nStyle)<br />{<br />CString m_Caption;<br />m_Caption.LoadString( nID ); //鍙栨寜閽爣棰?br />CButton *p_Button = new CButton();<br />ASSERT_VALID(p_Button);<br />p_Button->Create( m_Caption, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | nStyle, rect, this, nID ); //鍒涘緩鎸夐挳<br />return p_Button;<br />}</td></tr></tbody></table><br />銆銆鍏朵腑m_Caption.LoadString( nID )鏄粠瀛楃涓茶〃涓鍙栨寜閽枃鏈紝榪欐牱鍦ㄥ垱寤烘寜閽甀D鏃訛紝搴旇鎶婃枃鏈緗ソ錛屽弬鏁皀Style涓洪櫎蹇呴』椋庢牸澶栫殑棰濆椋庢牸銆?br /><br />銆銆浠ヤ笅錛岃皟鐢ㄨ鍑芥暟鍦∣NINIATIAL涓垱寤轟笁涓寜閽紝騫舵寚瀹氱涓涓寜閽負榛樿鎸夐挳錛屾寜閽殑ID鍦⊿TRING TABLE涓凡棰勫厛璁劇疆濂戒簡錛?br /><br /><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;"><p><span style="color: #ff0000;">//CButton *p_MyBtn[3];//涓轟簡鍦ㄥ悗闈㈤噴鏀捐祫婧愶紝鏀逛負鍦ㄧ被澶存枃浠朵腑澹版槑涓?/span></p><p><span style="color: #ff0000;">                                      //鍏湁鍙橀噺<br /></span> p_MyBtn[0]=NewMyButton(ID_MYBTN1,CRect(10,20,60,40),BS_DEFPUSHBUTTON);<br /> p_MyBtn[1]=NewMyButton(ID_MYBTN2,CRect(10,50,60,70),0);<br /> p_MyBtn[2]=NewMyButton(ID_MYBTN3,CRect(10,80,60,100),0);</p></td></tr></tbody></table><p> </p><p style="line-height: normal;"> </p><p style="line-height: normal;"><strong><span style="color: #ff0000;">浜屻佸姩鎬佹帶浠剁殑鍝嶅簲錛?/span><br /><br />銆銆鍔ㄦ佹帶浠剁殑鍝嶅簲鍑芥暟涓嶈兘鐢–lassWizard娣誨姞錛屽彧鑳芥墜鍔ㄦ坊鍔犮備粛浠ヤ笂闈㈢殑鎸夐挳涓轟緥錛屾垜浠埗浣滄寜閽殑鍗曞嚮鍝嶅簲鍑芥暟銆?br /><br />銆銆1.鍦∕ESSAGE_MAP涓坊鍔犲搷搴斿嚱鏁幫細<br /><br />銆銆MESSAGE_MAP琛ㄤ腑瀹氫箟浜嗘秷鎭搷搴斿嚱鏁幫紝鍏舵牸寮忎負錛氭秷鎭悕(ID,鍑芥暟鍚?錛屽綋鎴戜滑鐢–lassWizard娣誨姞鍑芥暟鏃訛紝浼氳嚜鍔ㄦ坊鍔犲湪AFX_MSG_MAP鎷搗鐨勫尯闂村唴錛屽錛?br /><br /></strong></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">BEGIN_MESSAGE_MAP(CTextEditorView, CFormView)<br />//{{AFX_MSG_MAP(CTextEditorView)<br />ON_BN_CLICKED(IDC_ICONBUT0, OnIconbut0)<br />//}}AFX_MSG_MAP<br />END_MESSAGE_MAP()</td></tr></tbody></table><p> </p><p style="line-height: normal;">銆<br />銆銆鎵嬪伐娣誨姞鏃朵笉瑕佹坊鍔犲埌AFX_MSG_MAP鍖洪棿鍐咃紝浠ラ槻ClassWizard涓嶈兘姝e父宸ヤ綔錛屽錛?nbsp;<br /><br /></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">BEGIN_MESSAGE_MAP(CTextEditorView, CFormView)<br />//{{AFX_MSG_MAP(CTextEditorView)<br />ON_BN_CLICKED(IDC_ICONBUT0, OnIconbut0)<br />//}}AFX_MSG_MAP<br />ON_BN_CLICKED(ID_MYBTN1, OnMybtn1)<br />ON_BN_CLICKED(ID_MYBTN2, OnMybtn2)<br />ON_BN_CLICKED(ID_MYBTN3, OnMybtn3)<br />END_MESSAGE_MAP()</td></tr></tbody></table><p> </p><p style="line-height: normal;"><br />銆銆鍏朵腑ON_BN_CLICKED鏄寜閽崟鍑繪秷鎭?br /><br />銆銆2.鍦ㄥご鏂囦歡涓坊鍔犲嚱鏁板畾涔夛細<br /><br />銆銆鐢–lassWizard娣誨姞鍑芥暟鏃訛紝浼氬湪澶存枃浠剁殑AFX_MSG鍖洪棿鍐呮坊鍔犲嚱鏁板畾涔夛紝濡傦細 <br /><br /></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">protected:<br />//{{AFX_MSG(CTextEditorView)<br />afx_msg void OnIconbut0();<br />//}}AFX_MSG<br />DECLARE_MESSAGE_MAP()</td></tr></tbody></table><p> </p><p style="line-height: normal;"><br />銆銆鎴戜滑妯′豢榪欑褰㈠紡錛屽彧鏄妸鍑芥暟瀹氫箟娣誨姞鍒癆FX_MSG鍖洪棿澶栧氨琛屼簡錛?br /><br /></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">protected:<br />//{{AFX_MSG(CTextEditorView)<br />afx_msg void OnIconbut0();<br />//}}AFX_MSG<br />afx_msg void OnMybtn1();<br />afx_msg void OnMybtn2();<br />afx_msg void OnMybtn3();<br />DECLARE_MESSAGE_MAP()</td></tr></tbody></table><p> </p><p style="line-height: normal;"><br />銆銆3.緙栧啓娑堟伅鍝嶅簲鍑芥暟錛?br /><br />銆銆浠ヤ笂鏄妸娑堟伅鍜屽嚱鏁板叧鑱旇搗鏉ヤ簡錛屽叿浣撳湪鍗曞嚮鎸夐挳鍚庡簲鍋氱殑宸ヤ綔鍦ㄥ嚱鏁頒腑瀹屾垚錛?nbsp;<br /><br /></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;">void CTextEditorView::OnMybtn1()<br />{<br />MessageBox( "鍝堬紒浣犲崟鍑諱簡鍔ㄦ佹寜閽? );<br />}<br />void CTextEditorView::OnMybtn2()<br />{<br />……<br />}<br />void CTextEditorView::OnMybtn3()<br />{<br />……<br />}</td></tr></tbody></table><p> </p><p style="line-height: normal;"><br />銆銆闄や簡鎸夐挳鐨勫搷搴斿嚱鏁板錛屼綘榪樺彲浠ョ敤涓婇潰鑾峰緱鐨勬寚閽堣闂寜閽紝濡傦細<br /><br />銆銆淇敼鎸夐挳鐨勫ぇ灝忓拰浣嶇疆錛歱_MyBtn[0]->MoveWindow(……);<br /><br />銆銆淇敼鎸夐挳鏂囨湰錛歱_MyBtn[0]->SetWindowText(……);<br /><br />銆銆鏄劇ず/闅愯棌鎸夐挳錛歱_MyBtn[0]->ShowWindow(……);絳夌瓑銆?br /></p><p style="line-height: normal;"><span style="color: #ff0000;">涓夈佸洖鏀惰祫婧愶細<br /></span><br />銆銆鐢變簬鍔ㄦ佹帶浠跺璞℃槸鐢眓ew鐢熸垚鐨勶紝瀹冧笉浼氳紼嬪簭鑷姩閲婃斁錛屾墍浠ラ渶鎵嬪伐閲婃斁銆傚湪鎺т歡涓嶅啀浣跨敤鏃跺彲浠ュ垹闄ゅ畠錛屽湪瀵硅瘽妗嗕腑鐨勬瀽鏋勫嚱鏁頒腑閿姣侊紙鏋愭瀯鍑芥暟娌℃湁鎵嬪姩娣誨姞錛夛細<br /><br /></p><p style="line-height: normal;"></p><table width="90%" align="center" bgcolor="#dadacf" border="1" style="table-layout: auto !important;"><tbody><tr><td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important;"><p>CMonthCalCtrlDlg::~CMonthCalCtrlDlg()<br />{<br /> for(int i=0;i<3;i++)<br />    {if(p_MyBtn[i])<br />     delete p_MyBtn[i];</p><p>    p_MyBtn[0]=NULL;//鑻ラ噰鐢ㄥ叾浠栨柟寮忛噴鏀撅紝鍒欏姞涓婅繖鍙ワ紝鍚﹀垯浼氬嚭閿?br />    }<br />}</p></td></tr></tbody></table><p> </p><p style="line-height: normal;"><br />銆銆浠ヤ笂灝辨槸鎸夐挳鎺т歡鍔ㄦ佺敓鎴愮殑鏂規硶銆?/p></div></td></tr></tbody></table><img src ="http://www.shnenglu.com/lanshengsheng/aggbug/199173.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lanshengsheng/" target="_blank">鐩涜儨</a> 2013-04-07 14:36 <a href="http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199173.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>vc 濡備綍寤哄姩鎬佹寜閽?/title><link>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199172.html</link><dc:creator>鐩涜儨</dc:creator><author>鐩涜儨</author><pubDate>Sun, 07 Apr 2013 06:33:00 GMT</pubDate><guid>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199172.html</guid><wfw:comment>http://www.shnenglu.com/lanshengsheng/comments/199172.html</wfw:comment><comments>http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199172.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/lanshengsheng/comments/commentRss/199172.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lanshengsheng/services/trackbacks/199172.html</trackback:ping><description><![CDATA[<p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="color: #1e1e1e;"><span style="font-size: medium;">vc 濡備綍寤哄姩鎬佹寜閽?/span></span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"> </span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="color: #1e1e1e;"><span style="font-size: medium;">鍦ㄧ被鐨勫畾涔変腑錛屽畾涔夊涓嬪彉閲?/span></span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="color: #1e1e1e;"></span></span></p><div bg_c-sharp"="" style="width: 687.046875px;"><div><div><strong>[c-sharp]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">copy</a><div style="position: absolute; left: 413px; top: 493px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1"><li style="line-height: 18px;">Cbutton m_btn;  </li></ol></div><p> </p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"> </span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="color: #1e1e1e;"><span style="font-size: medium;">閭d箞鍦ㄧ被鐨勬垚鍛樺嚱鏁頒腑灝卞彲浠ヤ嬌鐢ㄤ簡濡備笅鏉ュ垱寤烘寜閽?/span></span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="color: #1e1e1e;"><span style="font-size: medium;"></span></span></p><div bg_c-sharp"="" style="width: 687.046875px;"><div><div><strong>[c-sharp]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">copy</a><div style="position: absolute; left: 413px; top: 632px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1"><li style="line-height: 18px;">m_btn.Create("鍔ㄦ佸垱寤虹殑鎸夐挳",BS_DEFPUSHBUTTON|WS_VISIBLE|WS_CHILD,CRect(0,0,100,100),this,123);  </li></ol></div><p> </p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="color: #1e1e1e;"><span style="font-size: medium;">娉紝鍒涘緩絎簩嬈$殑鏃跺欎細鍑洪敊銆傛墍浠ヨ鐢ㄣ?/span></span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="color: #1e1e1e;"></span></p><div bg_c-sharp"="" style="width: 687.046875px;"><div><div><strong>[c-sharp]</strong> <a title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">view plain</a><a title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); padding: 1px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">copy</a><div style="position: absolute; left: 413px; top: 763px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1"><li style="line-height: 18px;">M_btn. DestroyWindow();  </li></ol></div><p> </p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="color: #1e1e1e;"><span style="font-size: medium;">鏉ラ噴鏀懼啀榪涜鍒涘緩銆?/span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="color: #1e1e1e;"><span style="font-size: medium;">鍊熺敱榪欎釜鍔ㄦ佸垱寤猴紝寮勬竻浜嗕竴浜汳FC鐨勬瀯鏋訛紝MFC鏄熀浜庢墍鏈夌殑綾昏屽緱鍑虹殑鎴愭灉錛屼竴涓被媧劇敓涓庡彟涓涓熀綾伙紝浠嶤Wnd鍒癈Dialog灝辨槸涓涓緢濂界殑渚嬪瓙銆侰Dialog媧劇敓涓嶤Wnd銆?/span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="color: #1e1e1e;"><span style="font-size: medium;">濡傛灉鎴戣鍒涘緩涓涓寜閽紝灝卞繀欏葷敤CDialog瀹氫箟涓涓柊鐨勫彉閲忥紝榪欎釜鍙橀噺灝辨垚浜嗕竴涓寜閽紝鎴戝氨鍙互鍒╃敤榪欎釜鎸夐挳綾昏繘琛?鍚勭被鎿嶄綔錛屼緥濡傚畾涔夊叾鐨勫ぇ灝忥紝椋庢牸銆?/span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"> </span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="font-size: medium;">鐨嗙敱姝ゅ彲瑙侊紝鎵鏈夌殑紿楀彛閮芥槸涓涓被瀹氫箟鏉ョ殑銆傛棤璁烘槸鎸夐挳錛屾爣絳撅紝ComBox錛孡ist絳夌瓑錛岄兘鍙互浣跨敤榪欎釜鏂規硶榪涜鍒涘緩銆?/span></span></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"></p><p align="left" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff;"><span style="font-size: 9pt;"><span style="font-size: medium;">鍦ㄧ紪杈戜唬鐮佹柟闈紝VC涓嶸B灝辨湁浜嗭紝瀵逛簬鐢ㄦ埛鏉ヨ錛屽氨鏈変簡鏈川涓婄殑宸埆錛孷B鐨勬垨璁告洿鍔犳柟渚匡紝鑰孷C闇瑕佸鐞嗙殑緇嗚妭澶浜嗐?br /><br /><br /></span></span><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">//鍒涘緩鎸夐挳 </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">CButton   *m_pBt1   =   new   CButton();     </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">ASSERT_VALID(m_pBt1); </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">m_pBt1-> Create(_T("榪涘叆[A]"),   WS_GROUP ¦WS_CHILD ¦WS_VISIBLE ¦BS_PUSHBUTTON,   CRect(10,10,20,20),   this,   IDC_AUTOCUT_POSTEACH   );         </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">m_pBt1-> MoveWindow(0,   152,   100,   100);   </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">//淇敼椋庢牸   </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">HWND       hwnd=m_pBt1-> GetSafeHwnd();       </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">long       lStyle=GetWindowLong(hwnd,GWL_EXSTYLE); </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">SetWindowLong(hwnd,GWL_EXSTYLE,lStyle ¦WS_EX_DLGMODALFRAME);               </span><br style="word-wrap: break-word; color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;" /><span style="color: #666666; font-family: 瀹嬩綋, Arial; font-size: 12px;">::SetWindowPos(hwnd,0,   12,   55,   55,   111,   SWP_NOREPOSITION ¦SWP_NOACTIVATE ¦SWP_NOMOVE ¦SWP_FRAMECHANGED);</span></p><img src ="http://www.shnenglu.com/lanshengsheng/aggbug/199172.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lanshengsheng/" target="_blank">鐩涜儨</a> 2013-04-07 14:33 <a href="http://www.shnenglu.com/lanshengsheng/archive/2013/04/07/199172.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>DATETIMEhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198944.html鐩涜儨鐩涜儨Sat, 30 Mar 2013 04:10:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198944.htmlhttp://www.shnenglu.com/lanshengsheng/comments/198944.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198944.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/198944.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/198944.html //m_pdbado->GetFieldValue(_T("AccountCreateDate"),str);
m_pdbado->GetFieldValue(_T("AccountCreateDate"),coledatetime);
str = coledatetime.Format("%Y-%m-%d %H:%M:%S");
if (str.size()>64)
{
m_strError = "瓚呰繃闀垮害";
//m_pdbado->CloseRecordset();
return false;
}
strcpy_s(user_info.AccountCreateDate,64,str.c_str());
瑕佺敤COleDateTime coledatetime; 璇誨彇錛屽啀鏍煎紡鍖?nbsp;

鐩涜儨 2013-03-30 12:10 鍙戣〃璇勮
]]>
MFC寮綰跨▼http://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198942.html鐩涜儨鐩涜儨Sat, 30 Mar 2013 02:18:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198942.htmlhttp://www.shnenglu.com/lanshengsheng/comments/198942.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/30/198942.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/198942.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/198942.htmlBOOL C*****::StartMakeing( void )
{
unsigned threadID = 0;   
m_start = true;
m_hThread =(HANDLE) _beginthreadex(NULL, 0, MakeMontage, (LPVOID)this, 0, &threadID );
return (m_start != NULL);   
}

unsigned __stdcall C*****::MakeMontage( LPVOID lpParameter )
{
if(lpParameter)
{
C***** *pclient = (CDossierMontage*)lpParameter;
pclient->doMake();
}
return 0xdead;
}

void C*****::doMake( )


鐩涜儨 2013-03-30 10:18 鍙戣〃璇勮
]]>
MFC緹庡寲http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198925.html鐩涜儨鐩涜儨Fri, 29 Mar 2013 09:30:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198925.htmlhttp://www.shnenglu.com/lanshengsheng/comments/198925.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198925.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/198925.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/198925.htmlOnPain()
CPaintDC *pdc=&dc;
CRect r;
GetClientRect(&r);
CBitmap *pBitmap= new CBitmap;
BITMAP bm;
pBitmap->LoadBitmap(IDB_BG_NEW);
pBitmap->GetBitmap(&bm);
CDC* pDisplayMemDC = new CDC;
pDisplayMemDC->CreateCompatibleDC(pdc);
pDisplayMemDC->SelectObject(pBitmap);
pdc->StretchBlt(r.left,r.top+30,r.Width(),r.Height()-30,pDisplayMemDC,
0,0,bm.bmWidth,bm.bmHeight,SRCCOPY);
pBitmap->DeleteObject();

ReleaseDC(pdc);
ReleaseDC(pDisplayMemDC);
delete pDisplayMemDC;
delete pBitmap;

OnCtlColor
//淇敼紿楀彛鎺т歡鑳屾櫙棰滆壊
if (nCtlColor == CTLCOLOR_STATIC)
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(#dedede);
pDC->SetBkColor(#383838);
hbr = CreateSolidBrush(#383838);
}
if (nCtlColor == CTLCOLOR_EDIT)
{
pDC->SetTextColor(#dedede);
pDC->SetBkColor(#13344d);
hbr = CreateSolidBrush(#13344d);
}
OnEraseBkgnd
CRect windowRect;
GetWindowRect(windowRect);
ScreenToClient(windowRect);
pDC->FillSolidRect(windowRect, #383838);
return TRUE;


鐩涜儨 2013-03-29 17:30 鍙戣〃璇勮
]]>
MFC絎笁鏂硅蔣浠舵墦寮鏂囦歡http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198924.html鐩涜儨鐩涜儨Fri, 29 Mar 2013 09:26:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198924.htmlhttp://www.shnenglu.com/lanshengsheng/comments/198924.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198924.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/198924.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/198924.html if (PathFileExists(path))
{
CString tempStr;
tempStr.Format("shell32.dll,OpenAs_RunDLL %s",path);
int isError=(int)ShellExecute(NULL, "open", "rundll32.exe ", tempStr, "", SW_SHOW);
if (isError<32)
{
MessageBox("鐩稿簲鏂囦歡鎵撳紑澶辮觸","鎻愮ず");
}
}
else
{
MessageBox("鏂囦歡璺緞鏈夎錛?);
}


鐩涜儨 2013-03-29 17:26 鍙戣〃璇勮
]]>
MFC鍙戦佹秷鎭?/title><link>http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198923.html</link><dc:creator>鐩涜儨</dc:creator><author>鐩涜儨</author><pubDate>Fri, 29 Mar 2013 08:58:00 GMT</pubDate><guid>http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198923.html</guid><wfw:comment>http://www.shnenglu.com/lanshengsheng/comments/198923.html</wfw:comment><comments>http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198923.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/lanshengsheng/comments/commentRss/198923.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lanshengsheng/services/trackbacks/198923.html</trackback:ping><description><![CDATA[<div>鍏抽棴<br />SendMessage(WM_SYSCOMMAND, SC_CLOSE);<br />鏈灝忓寲<br /><div>SendMessage(WM_SYSCOMMAND, SC_MINIMIZE);<br />鏈澶у寲<br /><div>SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE);<br />鎭㈠鍘熸潵澶у皬<br /><div>SendMessage(WM_SYSCOMMAND, SC_RESTORE);<br />瀵硅瘽妗嗘帴鍙楁嫋鍔?br /><div>PostMessage(WM_NCLBUTTONDOWN,HTCAPTION,MAKELPARAM(point.x,point.y));</div><br /><br /><em style="font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; text-indent: 30px; background-color: #ffffff;"><strong>B00L PostMessage錛?/strong>HWND<strong>hWnd錛?/strong>UINT<strong>Msg錛?/strong>WPARAM<strong>wParam錛?/strong>LPARAM<strong>lParam錛夛紱<br /></strong></em><div id="k0s2i2m" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><strong>hWnd</strong>錛氬叾紿楀彛紼嬪簭鎺ユ敹娑堟伅鐨勭獥鍙g殑鍙ユ焺銆傚彲鍙栨湁鐗瑰畾鍚箟鐨勪袱涓鹼細</div><div id="gmsomoo" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><em>        HWND_BROADCAST</em>錛氭秷鎭瀵勯佸埌緋葷粺鐨勬墍鏈夐《灞傜獥鍙o紝鍖呮嫭鏃犳晥鎴栦笉鍙鐨勯潪鑷韓鎷ユ湁鐨勭獥鍙c?nbsp; 琚鐩栫殑紿楀彛鍜屽脊鍑哄紡紿楀彛銆傛秷鎭笉琚瘎閫佸埌瀛愮獥鍙?/div><div id="oo2casg" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><em>        NULL</em>錛氭鍑芥暟鐨勬搷浣滃拰璋冪敤鍙傛暟dwThread璁劇疆涓哄綋鍓嶇嚎紼嬬殑<a target="_blank" style="color: #136ec2;">鏍囪瘑絎?/a>PostThreadMessage鍑芥暟涓鏍?/div><div id="uwocwca" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;">        <strong>Msg</strong>錛氭寚瀹氳瀵勯佺殑娑堟伅銆?/div><div id="qy24kg4" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><strong>wParam</strong>錛氭寚瀹氶檮鍔犵殑娑堟伅鐗瑰畾鐨勪俊鎭?/div><div id="seweoyo" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><strong>IParam</strong>錛氭寚瀹氶檮鍔犵殑娑堟伅鐗瑰畾鐨勪俊鎭?/div><div id="yicegys" class="para" style="margin-bottom: 14px; text-indent: 30px; font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; background-color: #ffffff;"><strong>榪斿洖鍊?/strong>錛氬鏋?a target="_blank" style="color: #136ec2;">鍑芥暟璋冪敤</a>鎴愬姛錛岃繑鍥為潪闆跺鹼細濡傛灉鍑芥暟璋冪敤澶辮觸錛岃繑鍥炲兼槸闆躲傝嫢鎯寵幏寰楁洿澶氱殑<a target="_blank" style="color: #136ec2;">閿欒淇℃伅</a>錛岃璋冪敤GetLastError鍑芥暟銆?/div><br /></div></div></div></div><img src ="http://www.shnenglu.com/lanshengsheng/aggbug/198923.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lanshengsheng/" target="_blank">鐩涜儨</a> 2013-03-29 16:58 <a href="http://www.shnenglu.com/lanshengsheng/archive/2013/03/29/198923.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SQL鏌ヨ鏁版嵁搴撴煇涓瓧孌靛間釜鏁?/title><link>http://www.shnenglu.com/lanshengsheng/archive/2013/03/26/198834.html</link><dc:creator>鐩涜儨</dc:creator><author>鐩涜儨</author><pubDate>Tue, 26 Mar 2013 06:16:00 GMT</pubDate><guid>http://www.shnenglu.com/lanshengsheng/archive/2013/03/26/198834.html</guid><wfw:comment>http://www.shnenglu.com/lanshengsheng/comments/198834.html</wfw:comment><comments>http://www.shnenglu.com/lanshengsheng/archive/2013/03/26/198834.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/lanshengsheng/comments/commentRss/198834.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/lanshengsheng/services/trackbacks/198834.html</trackback:ping><description><![CDATA[<div>SELECT COUNT(1) AS RecordNum FROM (SELECT MonitoryPointID FROM casedatarel WHERE 1=1 AND Type = 1 GROUP BY MonitoryPointID)a</div><img src ="http://www.shnenglu.com/lanshengsheng/aggbug/198834.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/lanshengsheng/" target="_blank">鐩涜儨</a> 2013-03-26 14:16 <a href="http://www.shnenglu.com/lanshengsheng/archive/2013/03/26/198834.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>VC涓紶鏍囩粡榪囨寜閽脊鍑哄姛鑳芥彁紺猴紙TIPS)http://www.shnenglu.com/lanshengsheng/archive/2013/03/25/198797.html鐩涜儨鐩涜儨Mon, 25 Mar 2013 01:25:00 GMThttp://www.shnenglu.com/lanshengsheng/archive/2013/03/25/198797.htmlhttp://www.shnenglu.com/lanshengsheng/comments/198797.htmlhttp://www.shnenglu.com/lanshengsheng/archive/2013/03/25/198797.html#Feedback0http://www.shnenglu.com/lanshengsheng/comments/commentRss/198797.htmlhttp://www.shnenglu.com/lanshengsheng/services/trackbacks/198797.html鍦╒C涓紝涔熷父甯鎬負涓浜涘浘鐗囨寜閽坊鍔犱竴浜涘姛鑳芥彁紺恒?/span>
涓嬮潰璁茶В瀹炵幇榪囩▼錛?/span>
璇ュ姛鑳界殑瀹炵幇涓昏鏄敤CToolTipCtrl綾匯傝綾誨湪VC  msdn涓湁璇︾粏璇存槑銆?/span>
棣栧厛鍦ㄥ璇濇鐨勫ご鏂囦歡涓姞鍏ュ垵濮嬪寲璇彞錛歱ublic:涓嬶紝鍔犲叆錛欳ToolTipCtrl    m_Mytip;
鐒跺悗鍦ㄥ垵濮嬪寲瀵硅瘽妗嗗嚱鏁頒腑鍔犲叆錛?/span>
m_Mytip.Create(this);  
m_Mytip.AddTool( GetDlgItem(IDC_BUTTON), "浣犳兂瑕佹坊鍔犵殑鎻愮ず淇℃伅" ); //IDC_BUTTON涓轟綘瑕佹坊鍔犳彁紺轟俊鎭殑鎸夐挳鐨処D
m_Mytip.SetDelayTime(200); //璁劇疆寤惰繜
m_Mytip.SetTipTextColor( #0000ff ); //璁劇疆鎻愮ず鏂囨湰鐨勯鑹?/span>
m_Mytip.SetTipBkColor( #ffffff); //璁劇疆鎻愮ず妗嗙殑鑳屾櫙棰滆壊
m_Mytip.Activate(TRUE); //璁劇疆鏄惁鍚敤鎻愮ず

鐒跺悗鍦ㄧ被鍚戝涓坊鍔燩reTranslateMessage娑堟伅鍝嶅簲鍑芥暟
BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
  if(pMsg->message==WM_MOUSEMOVE)
  m_Mytip.RelayEvent(pMsg);
return CDialog::PreTranslateMessage(pMsg);
}
娉細濡傛灉瑕佷負澶氫釜鎸夐挳娣誨姞鍔熻兘鎻愮ず鍙渶鍦?/span>
m_Mytip.AddTool( GetDlgItem(IDC_BUTTON), "浣犳兂瑕佹坊鍔犵殑鎻愮ず淇℃伅" );
鐨勪笅闈㈠啀鍔犱笂綾諱技璇彞錛屽
m_Mytip.AddTool( GetDlgItem(IDC_BUTTON1), "浣犳兂瑕佹坊鍔犵殑鎻愮ず淇℃伅1" );
m_Mytip.AddTool( GetDlgItem(IDC_BUTTON2), "浣犳兂瑕佹坊鍔犵殑鎻愮ず淇℃伅2" );
銆傘傘傘傘傘傘傘?br />

渚嬪瓙錛?br />
澹版槑錛?br />
CToolTipCtrl m_Tip;

鍒濆鍖栵細
BOOL C***Dlg::OnInitDialog()
{
鐪佺暐閮ㄥ垎銆傘傘傘傘傘傘傘傘傘?br />
//鎸夐挳嫻姩鎻愮ず
m_Tip.Create(this);
m_Tip.AddTool(&m_BtnPlay,"鎾斁");
m_Tip.SetDelayTime(100);
m_Tip.Activate(TRUE);
}
綾昏鍥句腑閲嶅啓錛?br />
BOOL C****Dlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: 鍦ㄦ娣誨姞涓撶敤浠g爜鍜?鎴栬皟鐢ㄥ熀綾?/div>
m_Tip.RelayEvent(pMsg);
}


鐩涜儨 2013-03-25 09:25 鍙戣〃璇勮
]]> 久久精品综合网| 国产综合久久久久| 精品国产乱码久久久久久呢| AAA级久久久精品无码片| 91久久香蕉国产熟女线看| 国产情侣久久久久aⅴ免费| 久久性精品| 亚洲一本综合久久| 97久久国产亚洲精品超碰热 | 精品久久久久久久中文字幕 | 成人资源影音先锋久久资源网| 久久天天躁狠狠躁夜夜av浪潮| 久久午夜福利无码1000合集 | 国产精品久久久久久久久| 久久国产精品无码HDAV| 日本精品久久久久中文字幕| 7777久久久国产精品消防器材| 国产国产成人精品久久| av无码久久久久不卡免费网站| 国产国产成人精品久久| 久久综合九色综合久99| 中文无码久久精品| 国产激情久久久久影院老熟女| 色综合久久中文综合网| 97久久精品人妻人人搡人人玩| 欧美精品久久久久久久自慰| 2021精品国产综合久久| 久久国产精品-久久精品| 久久国产欧美日韩精品| 91久久精品无码一区二区毛片| 伊人丁香狠狠色综合久久| 日本久久久久久中文字幕| 久久综合九色综合欧美就去吻| 亚洲人成网站999久久久综合| 久久96国产精品久久久| 国产成人综合久久精品尤物| 久久精品国产清自在天天线| 久久久久国产精品嫩草影院 | 亚洲精品无码久久久影院相关影片| 2021国产精品午夜久久| 99久久久精品|