// todo: 在此新增訊息處理程式**和/或呼叫預設值
//首先獲得裝置的表述表
//hdc hdc;
//hdc = ::getdc(m_hwnd);
移動到線條的起點
//movetoex(hdc,m_ptorign.x,m_ptorign.y,null);
畫線//lineto(hdc,point.x,point.y);
//::releasedc(m_hwnd,hdc);
cdc *pdc = getdc();
pdc->moveto(m_ptorign);
pdc->lineto(point);
releasedc(pdc);
cclientdc dc(this);
dc.moveto(m_ptorign);
dc.lineto(point);//cclientdc繼承與cdc,但是在使用時候不需要getdc和釋放,其操作在建構函式和析構函式中已經處理了
cwindowdc dc(getparent());
dc.moveto(m_ptorign);
dc.lineto(point);/cwindowdc 也是繼承自cdc類,可以用this,或者是用getparent();不需要getdc和釋放,其操作在建構函式和析構函式中已經處理了
cwnd::onlbuttonup(nflags, point);
在控制器獲取View資料的4種方法
前台 fieldset legend submit data legend using ajax.beginform submitdata home new ajaxoptions fieldset 介面顯示 1 傳統方法,通過name獲取input的值 結果輸出 2 通過formcollectio...
JAVA 中遍歷Map的4種方法
public static void main string args 1415 第二種 通過iterator迭代器遍歷迴圈map.entryset iterator 16 system.out.println 通過map.entryset使用iterator遍歷key和value 17 itera...
C 中遍歷Hashtable的4種方法
直接上 中使用四種方法遍歷hashtable。using system using system.cwww.cppcns.comollections namespace hashtableexample console.writeline 遍歷方法二 遍歷雜湊表中的值 foreach string ...