锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91精品国产91久久久久久蜜臀,精品久久亚洲中文无码,久久精品国产精品亜洲毛片http://cppblog.com/zyzx/category/21065.htmlC/C++錛孏UI錛屽祵鍏ュ紡紜洏瀛樺偍:鏉庣粛鑹?zyzx), zyzx_lsl@163.comzh-cnSun, 22 Mar 2015 17:53:57 GMTSun, 22 Mar 2015 17:53:57 GMT60浜斻佸崟紿楀彛緇撴瀯涓庣粯鍒?/title><link>http://m.shnenglu.com/zyzx/archive/2015/03/19/210111.html</link><dc:creator>zyzx</dc:creator><author>zyzx</author><pubDate>Thu, 19 Mar 2015 14:04:00 GMT</pubDate><guid>http://m.shnenglu.com/zyzx/archive/2015/03/19/210111.html</guid><wfw:comment>http://m.shnenglu.com/zyzx/comments/210111.html</wfw:comment><comments>http://m.shnenglu.com/zyzx/archive/2015/03/19/210111.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/zyzx/comments/commentRss/210111.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/zyzx/services/trackbacks/210111.html</trackback:ping><description><![CDATA[<div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div><div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal; font-size: 12pt;">/*</span><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;"> * Create By      : </span><span style="background-color: inherit; font-size: 12pt;">鏉庣粛鑹痆lsl](zyzx)</span></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;"> * </span><span style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal; font-size: 12pt;">Email</span><span style="font-size: 12pt;">            : </span><a href="mailto:zyzx_lsl@163.com" style="background-color: #ffffff; cursor: pointer; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;">zyzx_lsl@163.com</span></a></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;"> * Create Time  : 2015-03-19</span></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;"> * 杞澆璇鋒敞鏄庢潵婧愶細</span>http://m.shnenglu.com/zyzx/category/21065.html</div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;"><span style="font-size: 12pt;">*/</span></div></div></div></div>        鍓嶅嚑绔犲凡緇忓皢UI鐨勫熀紜閮ㄥ垎浠嬬粛瀹屾瘯錛岃繖绔犳濊冧簡寰堜箙錛屼笉鐭ラ亾濡備綍涓嬬瑪銆傚共鑴嗗氨浠ュ叆闂ㄧ晫闈㈡椂鐨勮冭檻浣滀負鍒囧叆鐐廣?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        灝變互浣跨敤windows鐣岄潰涓轟緥錛屽涓嬪叆鏄嬌鐢╯py++鎴彇鐨勭獥鍙f埅鍥俱?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><img src="http://m.shnenglu.com/images/cppblog_com/zyzx/LUI璧勬枡/vs2005_demo_test鎴浘.png" alt="" border="0" height="637" width="927" /></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        褰搒py++钀藉湪鏌愪釜鍖哄煙錛屽懆鍥寸殑涓涓粦妗嗭紝灝辮〃紺虹殑鏄繖涓獥鍙f墍鍦ㄥ尯鍩熴備笉鍋滅殑縐誨姩spy++鏌ユ壘紿楀彛錛屾垜浠彲浠ュ彂鐜板涓嬪浘鐨勮寰嬶細</div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><img src="http://m.shnenglu.com/images/cppblog_com/zyzx/LUI璧勬枡/vs2005_紿楀彛緇撴瀯_紺轟緥鍥?png" alt="" border="0" height="680" width="947" /></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        鐪嬪埌浠涔堟病鏈夛紝濡傛灉璁ょ湡瀛︿範榪囨暟鎹粨鏋勶紝灝辯煡閬撹繖鏄竴棰楁爲銆傛墍鏈夌殑UI鍏冪礌閮藉湪榪欓鏍戦噷闈紝涓涓璇濇錛屼篃灝卞彲浠ョ湅鎴愭槸涓涓爲錛岀獥鍙g粨鏋勪篃鍙互浣跨敤鏍戣繖縐嶆暟鎹粨鏋勬潵琛ㄨ揪銆?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        閭d箞Windows鐨勭獥鍙g粨鏋勫氨涓嶉毦鐞嗚В浜嗭紝瑕佷箞璁や負鏄竴涓互“緋葷粺”涓烘牴鐨勫ぇ鏍戯紝瑕佷箞涔熷彲浠ヨ涓烘槸鍘婚櫎“緋葷粺”榪欎釜鏍圭殑涓鐗囨.鏋椼傝屽湪鏌愭椂鍒伙紝姘歌繙鍙湁涓涓浜庢縺媧葷殑鏈欏跺眰紿楀彛錛屼篃灝辨槸寰楀埌榧犳爣絳夊搷搴旂殑閭i鏍戙?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        Windows鎶婄獥鍙f悶浜嗗緢澶氭蹇靛嚭鏉ワ紝鎷ㄥ紑榪欎簺榪烽浘錛屽疄闄呬笂鍦ㄦ垜鐪嬫潵鍙渶瑕?#8220;瀵硅瘽妗?#8221;涓?#8220;鎺т歡”瓚充互琛ㄨ揪綰風箒澶嶆潅鐨刄I鐣岄潰銆傚璇濇涓庢帶浠墮兘鏄鐢熻嚜紿楀彛鐨勬蹇點傚璇濇涓庢帶浠跺敮涓鐨勫尯鍒湪浜庯細鍙湁瀵硅瘽妗嗘墠鎷ユ湁綰跨▼鎵ц鏉冦?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">        榪欓噷鍏堝彧璁ㄨ濡備綍灝嗚繖棰楁爲緇樺埗鎴愪竴鍓疷I鍥劇墖銆傚叾瀹炰篃寰堢畝鍗曪紝灝辨槸閬嶅巻鏁撮鏍戯紝浣垮緱姣忎釜鑺傜偣紿楀彛緇樺埗(OnPaint鍑芥暟)灞炰簬鑷繁綆¤緰鐨勫尯鍩熴傞噰鐢ㄧ敾瀹剁畻娉曪紙鍚庨潰緇樺埗浼氭妸鍓嶉潰緇樺埗鐨勮鐩栵級錛屽姝I鐣岄潰灝辯粯鍒跺嚭鏉ヤ簡銆?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">濡備笅鍥撅紝涓棿鐨勫璇濇銆傜洰鍓嶄唬鐮佸彧瀹炵幇浜嗙獥鍙g粯鍒剁殑涓灝忛儴鍒嗭紝鎺т歡鍟ヤ篃娌℃湁銆?/div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><img src="http://m.shnenglu.com/images/cppblog_com/zyzx/LUI璧勬枡/lui_5_紿楀彛緇撴瀯涓庣粯鍒?png" alt="" border="0" height="671" width="819" /></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"></div><div style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-size: 14.399999618530273px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.799999237060547px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">闄勫綍錛氱珷鑺?婧愪唬鐮?br /><a href="/Files/zyzx/LUI浠g爜/my_lui_5_紿楀彛緇撴瀯涓庣粯鍒?zip">/Files/zyzx/LUI浠g爜/my_lui_5_紿楀彛緇撴瀯涓庣粯鍒?zip</a></div><img src ="http://m.shnenglu.com/zyzx/aggbug/210111.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/zyzx/" target="_blank">zyzx</a> 2015-03-19 22:04 <a href="http://m.shnenglu.com/zyzx/archive/2015/03/19/210111.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍥涖佹枃鏈笌瀛楀簱http://m.shnenglu.com/zyzx/archive/2015/03/16/210062.htmlzyzxzyzxMon, 16 Mar 2015 13:03:00 GMThttp://m.shnenglu.com/zyzx/archive/2015/03/16/210062.htmlhttp://m.shnenglu.com/zyzx/comments/210062.htmlhttp://m.shnenglu.com/zyzx/archive/2015/03/16/210062.html#Feedback0http://m.shnenglu.com/zyzx/comments/commentRss/210062.htmlhttp://m.shnenglu.com/zyzx/services/trackbacks/210062.html
/*
 * Create By      : 鏉庣粛鑹痆lsl](zyzx)
 * Email            : zyzx_lsl@163.com
 * Create Time  : 2015-03-16
 * 杞澆璇鋒敞鏄庢潵婧愶細http://m.shnenglu.com/zyzx/category/21065.html
*/
        涓轟粈涔堟垜浠彲浠ュ湪灞忓箷涓婄湅鍒版枃瀛楀憿錛?/div>
        鎴戜滑鐭ラ亾灞忓箷鏄劇ず鐨勬槸RGB涓夊師鑹詫紝杞歡灝辨槸灝嗕竴騫呬綅鍥撅紙RGB8888絳夋牸寮忥級浜ょ粰鏄懼崱錛屽啀鍛堢幇鍒扮敤鎴烽潰鍓嶃備篃灝辨槸璇碪I閲岄潰鍒掑垎鐨勬帶浠朵篃濂姐佹枃瀛椾篃緗紝浠諱綍鍙樉鍖栭儴鍒嗛兘浣跨敤BMP浣嶅浘鏉ヨ〃杈俱傛墍璋撶殑鎺т歡涔熶笉榪囨槸宸ョ▼甯堜滑璧嬩簣鏌愪釜鍚湁鐗瑰畾鍙樺寲閫昏緫鐨勪綅鍥懼尯鍩熴?/span>
        涔熷氨鏄鏂囧瓧鐨勮〃鐜板艦寮忔槸涓騫呬綅鍥撅紝閭d箞璁$畻鏈哄浣曡鯨璇嗗摢涓槸"A"錛屽摢涓槸"B"鍛紵浼熷ぇ鐨勮綆楁満璇翠簡錛氫竴鍒囬兘鏄暟錛屼篃灝辨槸0鎴?銆傜浉搴旂殑鍚勭緙栫爜鏍囧噯搴旇繍鑰岀敓錛屾瘮濡俛scii銆丟B2312銆丟BK絳夌瓑銆備篃灝辨槸璇翠竴涓暟鍊鹼紝琛ㄧず涓涓枃瀛楋紝鏄劇ず鐨勬椂鍊欏嵈鏄嬌鐢ㄨ繖涓暟鍊煎搴旂殑鍥劇墖銆?/span>
        閭d箞杞歡鎵浣跨敤鏂囧瓧灝辨湁浜屼釜閮ㄥ垎浜嗭細1.鎵鏈夌殑瀛楃涓詫紱2.瀛楃涓蹭腑姣忎釜瀛楃瀵瑰簲鐨勫浘鐗囥傚瓧絎︿覆璧勬簮鐨勫仛娉曞氨鍚勯椋庨獨浜嗭紝鏈変漢紜紪鐮侊紱MFC浣跨敤exe鐨勮祫婧愭錛涙墦鍖呭仛鍒頒簩榪涘埗鏂囦歡絳夌瓑銆備笉綆″浣曞鐞嗭紝鏈緇堥兘闇瑕佹妸涓涓瓧絎︿覆姣斿"Hello World!"浜ょ粰緇樺浘妯″潡銆傜粯鍥炬ā鍧楀垯闇瑕佹妸榪欎釜瀛楃涓叉媶鍒嗘垚鍗曚釜瀛楃錛屾寜鐓у悇涓璦瑙勫垯閫夊彇瀵瑰簲鐨勫浘鐗囷紝涓涓竴涓殑璐村埌灞忓箷涓婏紙鍏跺疄鏄悗鍙扮紦瀛橈級銆傚悗闈㈣繖涓楠や竴鑸敱鎿嶄綔緋葷粺瀹屾垚錛岄偅涔堟槸濡備綍鍋氬埌鐨勫憿錛熺瓟妗堝氨鏄瓧搴擄紝浠ュ強瀛楀簱鐨勬樉紺鴻鍒欍?/span>
        瀛楀簱涓鑸垎涓烘爡鏍煎瓧搴撳拰鐭㈤噺瀛楀簱錛屽畠浠殑鐩爣閮芥槸鏍規(guī)嵁涓涓紪鐮佸煎彇鍒板搴斿浘鐗囥傛爡鏍煎瓧搴撶浉瀵規(guī)潵璇寸畝鍗曘侀珮鏁堬紝緗戠粶涓婃湁寰堝鍏充簬榪欎釜鐨勬枃绔狅紝鍙互鎵炬壘鐩稿叧鐨勮祫鏂欍?/span>
        榪欓噷涓烘柟渚匡紝灝辯洿鎺ュ彇鍑?linux-3.18.3/lib/fonts/font_10x18.c"榪欎釜鏂囦歡浣滀負鎴戜滑瀛楀簱鏁版嵁銆傚叾浠栫被鍨嬬殑瀛楀簱鍜岃繖涓被浼鹼紝涓嶈繃鏄皢瀛楁ā鍜岃鍒欏瓨鏀句簬浜岃繘鍒舵枃浠朵腑鑰屽凡銆?/span>

        濡備笂鍥撅紝鍙寵竟鐨勬敞閲婃涓紝鏈変釜鏄庢樉鐨勭敱"1"緇勬垚鐨勫浘妗堛傚叾瀹炰篃灝辨槸鐢變竴涓釜姣旂壒浣嶇粍鎴愮殑浜屽煎浘鐗囥?/div>
        fontdata_10x18[FONTDATAMAX]榪欎簺鏁版嵁緇勬垚鐨勮鍒欎篃寰堢畝鍗曪細
1. 浜屽煎浘鐗囬珮涓?8錛屽涓?6(鏈夋晥瀹藉害涓?0)錛屾瘡涓琛屾湁2涓瓧鑺傦紝涓涓瓧妯″叡36瀛楄妭
2. 鏌恆scii鍊肩殑瀛楁ā棣栧湴鍧涓猴細fontdata_10x18[id * 36]
3. 榪欎釜鏄瓑瀹藉瓧浣?/span>
        閭d箞瑕佹樉紺?1"鍏跺疄灝辨槸灝辨槸闇瑕佸皢姣旂壒浣?鐨勫湴鏂圭潃鑹茬粯鍒跺睆騫曘?/div>
        濡備笅鍑芥暟鍗蟲槸灝嗘浜屽兼暟鎹紝緇樺埗鍒扮紦瀛樹腑銆?/div>
int_t CWinGraph::DrawFont(LUI_CANVAS *ptr, int_t zoom, char id, int_t x, int_t y, int_t &cx, int_t &cy,uint32 color, bool border, uint32 color_border)
{
//涓嬫浠g爜騫朵笉涓ヨ皚
//瀹為檯鐨勬儏鍐靛垯闇瑕佺湅鏍規(guī)嵁瀛楀簱鐨勮璁℃儏鍐?鎸夊涓嬬殑鎬濊礬鍗沖彲
int_t w = 10, h = 18;
unsigned char *pFont = &fontdata_10x18[id * 36];
unsigned char *pData = ptr->pData + y * ptr->pitch + x * ptr->bpp;
for(int j = 0; j < h; j++)
{
unsigned char *pd = pData;
for(int i = 0; i < w; i++)
{
unsigned char *pf = pFont + j * 2 + (i >> 3);
if(*pf & (0x1 << (7 - i & 0x7)))
{
memcpy(pd, &color, ptr->bpp);
}
else if(border)
{
//綆鍗曟弿杈圭畻娉?/div>
int xi = 0, yj = 0;
if(0 < j)
{
xi = i; yj = j - 1;
}
else if(j < (h - 1))
{
xi = i; yj = j + 1;
}
else if(0 < i)
{
xi = i - 1; yj = j;
}
else if (i < (cx - 1))
{
xi = i + 1; yj = j;
}
pf = pFont + yj * 2 + (xi >> 3);
if(*pf & (0x1 << (7 - xi & 0x7)))
{
memcpy(pd, &color_border, ptr->bpp);
}
}
pd += ptr->bpp;
}
pData += ptr->pitch;
}
cx = w;
cy = h;
 return 0;
}
        濂戒簡鑷充簬瀛楃涓詫紝閭e氨寰堢畝鍗曚簡錛屼竴涓竴涓皟鐢ㄨ繖涓嚱鏁板氨鍙互浜嗐?/div>
濡備笅鍥懼嵆鏄祴璇曠粯鍒剁殑瀛楃涓詫細
闄勪歡鏄珷鑺?鐨勬簮浠g爜
/Files/zyzx/LUI浠g爜/my_lui_4_鏂囨湰涓庡瓧搴?zip


zyzx 2015-03-16 21:03 鍙戣〃璇勮
]]>涓夈佸熀紜緇樺浘妯″潡http://m.shnenglu.com/zyzx/archive/2015/03/15/210040.htmlzyzxzyzxSun, 15 Mar 2015 06:08:00 GMThttp://m.shnenglu.com/zyzx/archive/2015/03/15/210040.htmlhttp://m.shnenglu.com/zyzx/comments/210040.htmlhttp://m.shnenglu.com/zyzx/archive/2015/03/15/210040.html#Feedback0http://m.shnenglu.com/zyzx/comments/commentRss/210040.htmlhttp://m.shnenglu.com/zyzx/services/trackbacks/210040.html/*
 * Create By      : 鏉庣粛鑹痆lsl](zyzx)
 * Email            : zyzx_lsl@163.com
 * Create Time  : 2015-03-14
 * 杞澆璇鋒敞鏄庢潵婧愶細http://m.shnenglu.com/zyzx
*/
濡傚浘錛岀粯鍥炬ā鍧楀熀鏈笂鏄竴浜涘浘褰㈣繍綆楁柟闈㈢殑鎺ュ彛銆?/span>
        緇樺浘妯″潡鍥寸粫鐨勪腑蹇冪殑鏄敾甯冿細
typedef struct LUI_CANVAS
{
    int_t cx;                              //鐢誨竷瀹?/span>
    int_t cy;                              //鐢誨竷楂?/span>
    int_t bpp;                           //鍍忕礌浣嶅 RGB1555 2瀛楄妭錛汻GB8888 4瀛楄妭
    int_t pitch;                         //琛岃法璺? = cx * bpp
    int_t len;                            //*pData鏁版嵁闀垮害 = pitch * cy
    unsigned char *pData;      //鐢寵鐨勫唴瀛?/span>
}LUI_CANVAS;
        鍏跺疄琛ㄥ緛鐨勫氨鏄竴涓猙mp鍥劇墖銆傚儚绱犵殑鏍煎紡涓鑸噰鐢≧GB1555錛屼笌RGB8888鏍煎紡錛屼袱榪欓兘鍙互灝嗛忔槑搴︿俊鎭〃紺哄嚭鏉ャ傞噰鐢≧GB1555鏍煎紡鍗沖彲浠ュ墿涓嬩笉灝戝唴瀛橈紝涔熷彲浠ラ檷浣嶤PU寮閿錛屽悓鏃禪I璁捐甯堜篃鍙互鐩稿瀹芥澗鐨勯夋嫨鍥劇墖鑹插僵銆傛垜浠仛鐨勫嚑浠d駭鍝侀兘娌℃湁閫冭劚閫夌敤RGB1555鏍煎紡鐨勫懡榪愶紝鍦ㄩ渶瑕佹敮鎸佸叏灞?920*1080P鐨勫垎杈ㄧ巼鐢氳嚦4K鐣岄潰鐨勫垎杈ㄧ巼銆丄RM紜歡錛堢敋鑷沖緢浣庣錛夎繖縐嶆潯浠朵笅錛屾兂浣跨敤RGB8888綆鐩村氨鏄竴縐嶅ア鏈涖?/span>
        鑷充簬濡備綍緇樺埗鍩虹鍥懼艦錛岃繖涓綉緇滀笂寰堝銆傚疄闄呴」鐩腑涔熶笉鏄垜浠啓鐨勬ā鎷熶唬鐮侊紝嫻鋒柉鍥懼艦澶勭悊鑺墖涓湁鐩稿叧鐨勫浘褰㈠姞閫熸ā鍧楋紝姣旇繖涓ā鎷熶唬鐮佹晥鐜囬珮澶氫簡銆?/span>
        鍒涘緩鍜岄攢姣佺敾甯冨湪榪欓噷璐熻矗錛屼富瑕佹槸闃叉鏌愪簺宓屽叆寮忚澶囧浘褰㈤儴鍒嗛渶瑕佷嬌鐢ㄨ澶囦笓灞炲唴瀛橈紝鑰屼笉鏄殢鎰弉ew鍑烘潵鐨勩?/span>
        緇樺埗鍥劇墖榪欎竴鍧楄繕闇瑕佸浘鐗囨墦鍖呮ā鍧楃殑鏀寔錛屽悗闈綔涓轟竴涓笓棰樸?/span>
        緇樺埗鏂囧瓧錛屾湁浜涢毦搴︼紝鎴戜滑涓鐩翠嬌鐢ㄧ殑鏄爡鏍煎瓧搴擄紙鍩轟簬鏁堢巼銆佷嬌鐢ㄤ究鍒╀笂鑰冭檻錛夛紝涔熷彲浠ユ墿灞曚嬌鐢ㄧ煝閲忓瓧搴撱傚浗闄呭寲鐨勭晫闈及璁℃槸鏁翠釜UI浣撶郴鐨勬渶澶ч毦鐐逛簡錛屾垜浠篃鍙槸灝介噺鍏煎鏇村鐨勮璦銆傝繖閮ㄥ垎涔熷悗闈綔涓轟竴涓笓棰樸?/span>
        鍒拌繖閲岋紝鍩虹鐞嗚宸笉澶氫簡銆傛垜浠渶瑕佸湪Windows涓婂緩绔嬭皟璇曠幆澧冿紝鍒欒繕闇瑕佸垱寤轟竴涓猈in32鐨刣emo宸ョ▼銆?/span>
        
        demo紼嬪簭浣跨敤鐨勬槸vs2005鐩存帴鐢熸垚鐨刉IN32紼嬪簭錛屼篃浠呬粎娣誨姞浜嗕竴涓被CWinGraph錛屾彃鍏ュ埌浜哤in32嫻佺▼涓備富瑕佺殑浣跨敤WIN紿楀彛鎶婃垜浠殑鐣岄潰鏄劇ず鍑烘潵
        涓昏鏄湪紿楀彛娑堟伅澶勭悊涓畝鍗曠殑鍔犲叆浜嗚繖浜涗唬鐮?/span>
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
// TODO: 鍦ㄦ娣誨姞浠繪剰緇樺浘浠g爜...
int_t cx, cy;
g_pGraph->ScreenSize(&cx, &cy);
g_pGraph->Refresh(0, 0, cx, cy);
EndPaint(hWnd, &ps);
case WM_CREATE: 
g_pGraph->Initial(hWnd, DLG_WIDTH, DLG_HEIGHT); 
break; 
case WM_DESTROY: 
g_pGraph->Quit(); 
PostQuitMessage(0); 
break;
       
        浠g爜鏈韓娌℃湁浣跨敤姣旇緝涓ヨ皚鐨勯鏍鹼紝寰堝鍙傛暟鍜屽仛娉曞悗闈㈣繕浼氬搷搴旂殑璋冩暣錛屼粎浠ユ鏉ヨ〃杈懼鎺ユā鍧楅渶瑕佸仛鐨勪簨鎯呫?/span>
        濡備笅鍥綿emo紼嬪簭璺戣搗鏉ョ殑鏁堟灉鍥撅紝铏界劧綆鍗曪紝浣嗗嵈鏄熀紜銆?/span>


zyzx 2015-03-15 14:08 鍙戣〃璇勮
]]>浜屻丩UI鍩虹妗嗘灦http://m.shnenglu.com/zyzx/archive/2015/03/15/210039.htmlzyzxzyzxSun, 15 Mar 2015 06:02:00 GMThttp://m.shnenglu.com/zyzx/archive/2015/03/15/210039.htmlhttp://m.shnenglu.com/zyzx/comments/210039.htmlhttp://m.shnenglu.com/zyzx/archive/2015/03/15/210039.html#Feedback0http://m.shnenglu.com/zyzx/comments/commentRss/210039.htmlhttp://m.shnenglu.com/zyzx/services/trackbacks/210039.html
/*
 * Create By      : 鏉庣粛鑹痆lsl](zyzx)
 * Email            : zyzx_lsl@163.com
 * Create Time  : 2015-03-14
 * 杞澆璇?span style="background-color: #ffffff; color: #000000; font-family: 寰蔣闆呴粦; font-style: normal; font-weight: normal;">娉ㄦ槑鏉ユ簮錛?a href="http://m.shnenglu.com/zyzx" style="background-color: inherit; cursor: pointer;">http://m.shnenglu.com/zyzx
*/
        鍙栧悕涓篖UI浠呬粎涓洪伩鍏嶅叾浠栧簱鍚嶅瓧鍐茬獊錛?/span>濡備笂鍥綠UI妗嗘灦鍩烘湰緇撴瀯鏃犲鍛煎洓涓熀紜妯″潡
1. 緇樺浘妯″潡錛氳礋璐g粯鍒跺熀鏈浘褰紙綰挎潯錛岀煩褰紝鍥劇墖錛屾枃鏈瓑錛夛紝璐熻矗灝嗙粯鍒剁殑UI鍥劇墖閫掍氦緇欐樉鍗?/div>
2. 娑堟伅鏈哄埗錛氳礋璐e皢鐢ㄦ埛浣跨敤澶栧洿璁懼錛堥紶鏍囥侀敭鐩樸佽Е鎽稿睆絳夛級浜х敓鐨勬秷鎭湁鏈虹殑浼犲鍒癠I宸ョ▼甯堟墍鍐欑殑鍝嶅簲浠g爜澶?/div>
3. 紿楀彛緇存姢錛氳礋璐e悗鍙板鐞哢I鐨勭獥鍙i摼銆佺獥鍙e叧緋伙紝鍗忚皟鏁翠釜UI浣撶郴
4. 鎺т歡錛氱粰UI宸ョ▼鎻愪緵鐨凙PI鎺ュ彛錛屾搷綰電晫闈?/div>
        姝ゅ榪樻湁闇瑕佹敞鎰忕殑鏄疷I鐨勮祫婧愶細鍥劇墖銆佸瓧絎︿覆銆佸瓧搴?/span>
        涓鑸潵璁詫紝浼氬皢榪欎簺璧勬簮鍋氭墦鍖呭鐞嗐傛瘮濡傚浘鐗囷紝鏈変笓闂ㄧ殑鍥劇墖綆$悊妯″潡錛岄偅涔堢晫闈笂鍏蟲敞鐨勫彧鏈夊浘鐗囩殑ID銆傚瓧絎︿覆涔熸槸濡傛錛岀晫闈笂涔熷彧鏄叧娉ㄥ瓧絎︾殑ID銆傝繖鏍鋒垜浠姩鎬佹浛鎹㈡垜浠蔣浠剁殑鐨偆鍜岃璦錛屽皢鍙樺緱闈炲父鏂逛究銆?/span>

        (^-^)錛岀湅鍚э紝紲炵鐨凣UI鍏跺疄灝辮繖涔堢偣閬撻亾錛屽叾浠栫殑鐗規(guī)ч兘鏄湪榪欎釜鍩虹涓婅鐢熷嚭鏉ョ殑銆?/div>


zyzx 2015-03-15 14:02 鍙戣〃璇勮
]]>
涓銆佸瘎璇細鍐嶆琚噸閫犵殑GUI杞瓙http://m.shnenglu.com/zyzx/archive/2015/03/15/210038.htmlzyzxzyzxSun, 15 Mar 2015 05:54:00 GMThttp://m.shnenglu.com/zyzx/archive/2015/03/15/210038.htmlhttp://m.shnenglu.com/zyzx/comments/210038.htmlhttp://m.shnenglu.com/zyzx/archive/2015/03/15/210038.html#Feedback2http://m.shnenglu.com/zyzx/comments/commentRss/210038.htmlhttp://m.shnenglu.com/zyzx/services/trackbacks/210038.html/*
 * Create By      : 鏉庣粛鑹痆lsl](zyzx)
 * Email            : zyzx_lsl@163.com
 * Create Time  : 2015-03-14
 * 杞澆璇?/span>娉ㄦ槑鏉ユ簮錛?/span>http://m.shnenglu.com/zyzx
*/
        鎸夌収鎯緥寰楀暟鍡︿竴鐣猑_^銆傛垜鎯沖啓鐨勮繖涓笓棰樺氨鏄啀嬈¢噸鏂板垱閫燝UI榪欎釜杞瓙銆?/span>
        浠庡ぇ涓涓嬪鏈燂紙2004騫村勾鍒濓級寮濮嬫帴瑙B錛岀涓嬈″啓鍑烘潵鐨?#8220;Hello World!”灝辨槸鐣岄潰紼嬪簭銆俈B緇欐垜甯︽潵鐨勬劅瑙夋槸鍐欑晫闈㈠姝ょ畝鍗曪紝浣嗛殢鍚庣殑瀛︿範鍜屽伐浣滃鐣岄潰鏄嵆鐖卞張鐙犮備嬌鐢∕FC絳夛紝鍐欎釜鐜╁叿鍊掓槸寰堢畝鍗曪紝鐪熸鎯沖啓鎴愬彲浠ヤ嬌鐢ㄧ殑杞歡鍗存槸鍧戠埞涔嬫瀬銆傚厛涓斾笉璁鴻嫳鏂囬殰紕嶏紝鎵句釜璧勬枡鎵懼崐澶╋紝榪樺緱涓杈瑰皾璇曚竴杈規(guī)帹鎯沖井杞湪搴曞眰鍒板簳騫蹭簡浜涘暐銆傝繖涔熸槸鍒濆鍋歐indows紼嬪簭鐨勬?zhèn)插搥鍚э紝鏁村ぉ鍥磋繖涓笩闂鎶樿吘銆?/span>
        鍦ㄥぇ瀛︼紝浠庡涔燰B錛屽啀鑷WIN32緙栫▼錛屽啀鍒頒嬌鐢∕FC銆傛瘯涓氬悗鍦ㄦ姹変竴瀹剁毊鍖呭叕鍙稿仛WinCE錛屼嬌鐢ㄧ殑鏄痺xWindows錛屽墠浜涘勾鐣欎笅鐨凚LOG灝辨槸閭d釜鏃跺欑殑絎旇鍜屽績寰椼傚湪姝︽眽寰呬簡涓ゅ勾鍚庯紝2009騫村湪娣卞湷鍒頒簡鐩墠鐨勮繖瀹跺叕鍙革紙鍋氬畨闃插祵鍏ュ紡DVR/NVR涔嬬被錛屽叾浠栫殑灝變笉璇翠簡錛屽綋鍓嶄篃澶勪簬鍗沖皢紱昏亴錛屾?zhèn)插搥鍟婏紝涔熷彧鏈夌鑱屾湡闂存墠鏈夋椂闂存葷粨錛夛紝鎵嶆繁娣辯殑琚渿鎾箋傚師鏉I涔熷彲浠ヨ嚜宸變竴閽堜竴綰匡紙涓鐐癸紝涓綰挎潯錛夊皢鍏跺疄鐜幫紝鍙槸褰撴椂鐨勫疄鐜版柟妗堟瘮杈冨師濮嬶紝浣嗙‘紜疄瀹炲惎鍙戜簡鎴戠殑鎬濈淮錛屼笉鍐嶈涓篏UI鍙湁寰蔣銆佽嫻鏋溿丵T銆乵imiGUI銆亀xWindows絳夋墠鍙互灝嗗叾瀹炵幇錛屾垜浠篃鍙互鏈夎嚜宸辯殑鎬濈淮鏉ュ疄鐜癎UI銆?/span>
        鍦ㄦ鐗瑰埆鎰熻阿褰撳勾鐨勫洟闃熷湪榪欎釜鏂歸潰鐨勬濈淮縐瘡銆侱VR3.0鏃朵唬鐣岄潰璁捐鎬濊礬鐢卞墠浜哄畬鎴愶紝鑰屾垜鍋氱殑灝辨槸鍦ㄨ繖涓晫闈㈡濊礬涓嬪疄鐜般佸畬鍠勩佷紭鍖栧拰鎵╁睍銆傛鏃剁殑鐣岄潰涔熷氨鎽嗚劚浜嗗綋鍒濈畝綆鍗曞崟鐨勭粨鏋勶紝涓哄叕鍙鎬駭鍝侀『鍒╂墦寮鍥介檯鍖栧競鍦猴紝鏍戠珛琛屼笟DVR鐨凮ME鍘傚晢鍝佺墝錛屽姛鍔充笉灝忋?012騫村乏鍙籌紝涓葷鍦ㄥ墠涓浠d駭鍝佺晫闈嬌鐢ㄤ笂鐨勪笉瓚籌紝鎻愬嚭鏉ユ柊涓浠d駭鍝佺晫闈㈤渶姹傦紝鑰屾垜鍒欏紑濮嬫瀯鎬滸UI浣撶郴錛岃鍒掑疄鐜頒簡4.0鐣岄潰妗嗘灦浣撶郴銆?.0浣跨敤鐨勬槸C++瀹炵幇錛屽茍鍒╃敤浜嗗熀鏈珻++綾葷壒鎬э紝涓轟繚瀵嗚搗瑙侊紝鎴戣鍐嶉犵殑GUI杞瓙灝嗘寜鏂扮殑鎬濊礬鎵╁睍錛岄噸鍐欒繖涓儴鍒嗙殑浠g爜銆?/span>
        
        濂藉惂錛岀湅鐪媍ppblog涓婅繕鏈変竴浣嶉燝UI杞瓙鐨勭墰浜簐czh(http://m.shnenglu.com/vczh/)銆傜湅鏉UI鐨勫疄鐜板彲涓嶅彧鏈変竴涓ょ鏂規(guī)錛屾瘡涓漢閮藉彲浠ュ疄鐜拌嚜宸盙UI銆?/span>
榪欓噷灝辨槸鎴戠殑GUI鐨勯渶姹傦細
1. 涓昏鐩爣鍥寸粫宓屽叆寮忓鉤鍙扮殑鐣岄潰錛岄渶瑕佽法騫沖彴瀹炵幇
2. 鍐呭瓨錛孋PU娑堣椾笉寰楄繃澶?/span>
3. 灝介噺綺劇畝錛屼互婊¤凍鍩烘湰瑕佹眰涓轟富
4. 鎺ュ彛浣跨敤鏍囧噯C錛屼互搴撶殑鏂瑰紡鎻愪緵
5. 鍙鐞哢I鐩稿叧鐨勯儴鍒嗭紝鍏朵粬涓寰嬩笉鑰冭檻
6. 鑳藉惁灝哢I浣跨敤lua鑴氭湰璇█鏉ュ疄鐜?/span>
7. 鍙嬌鐢ㄥ熀紜璇█錛屼笉浣跨敤楂樼駭璇█鐗規(guī)?/span>
        澶ф灝辮繖浜涘惂錛屽悗闈㈡兂鍒頒簡鍐嶅姞榪涙潵銆?/span>


zyzx 2015-03-15 13:54 鍙戣〃璇勮
]]> 国产福利电影一区二区三区,免费久久久久久久精| 91久久精品国产91性色也| 久久久免费观成人影院| 久久久久久久综合日本| 亚洲综合熟女久久久30p| 久久国产精品77777| 97久久国产亚洲精品超碰热| 99久久免费国产精品特黄| 青青热久久国产久精品| 蜜臀久久99精品久久久久久小说 | 97久久超碰国产精品旧版| 国产高潮国产高潮久久久91 | 久久亚洲精品无码VA大香大香| 激情伊人五月天久久综合| 热RE99久久精品国产66热| 国产亚洲精品美女久久久| 国产精品久久久久蜜芽| 91精品久久久久久无码| 亚洲中文字幕久久精品无码APP | 久久综合给久久狠狠97色| 久久久久亚洲精品天堂久久久久久| 亚洲欧美成人综合久久久| 99久久免费只有精品国产| 久久久精品2019免费观看| 久久人人青草97香蕉| yellow中文字幕久久网| 亚洲愉拍99热成人精品热久久| 青青草原精品99久久精品66| 午夜天堂av天堂久久久| 人妻无码精品久久亚瑟影视| 久久99精品国产自在现线小黄鸭| 人人狠狠综合久久亚洲高清| 国产精品伦理久久久久久| 久久精品九九亚洲精品天堂| 久久久精品国产sm调教网站| 亚洲AV无码一区东京热久久| 综合久久精品色| 亚洲美日韩Av中文字幕无码久久久妻妇 | 九九精品99久久久香蕉| 国产免费久久精品99久久| 欧美久久综合性欧美|