锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产日韩欧美一区二区,久久久av水蜜桃,欧美日韩综合精品http://m.shnenglu.com/Error/category/20043.htmlzh-cnTue, 23 Oct 2012 16:27:47 GMTTue, 23 Oct 2012 16:27:47 GMT603.Godofmoney鐨凜NetClienthttp://m.shnenglu.com/Error/archive/2012/10/11/193177.htmlEnicEnicThu, 11 Oct 2012 09:34:00 GMThttp://m.shnenglu.com/Error/archive/2012/10/11/193177.htmlhttp://m.shnenglu.com/Error/comments/193177.htmlhttp://m.shnenglu.com/Error/archive/2012/10/11/193177.html#Feedback0http://m.shnenglu.com/Error/comments/commentRss/193177.htmlhttp://m.shnenglu.com/Error/services/trackbacks/193177.html闃呰鍏ㄦ枃

Enic 2012-10-11 17:34 鍙戣〃璇勮
]]>
2.GodOfMoney涓敤鍒扮殑涓縐峂FC浣撶郴鐨勫唴瀛楧C瀹炵幇http://m.shnenglu.com/Error/archive/2012/10/08/192982.htmlEnicEnicMon, 08 Oct 2012 02:41:00 GMThttp://m.shnenglu.com/Error/archive/2012/10/08/192982.htmlhttp://m.shnenglu.com/Error/comments/192982.htmlhttp://m.shnenglu.com/Error/archive/2012/10/08/192982.html#Feedback0http://m.shnenglu.com/Error/comments/commentRss/192982.htmlhttp://m.shnenglu.com/Error/services/trackbacks/192982.html////////////////////////////////////////////////////////////////

綆浠嬶細鍐呭瓨DC錛屽張鍚嶁滃弻緙撳啿鈥濓紝鏄В鍐硍indows紿楀彛鑷粯涓嚭鐜扳滈棯灞忊濈殑甯歌鎵嬫銆?/p>

1)銆佷負灞忓箷 DC 鍒涘緩鍏煎鐨勫唴瀛?DC
2)銆佸垱寤轟綅鍥?br>3)銆佹妸浣嶅浘閫夊叆璁懼鐜
4)銆佹妸緇樺埗濂界殑鍥懼艦鈥滄嫹璐濃滃埌灞忓箷涓?

 

鐪嬭繖涓唬鐮侊細

棣栧厛鐪嬫瀯閫狅紝浠庝竴涓狢DC鏋勯犮傜劧鍚庣湅浜嗕竴涓嬫垚鍛樺嚱鏁幫紝濂藉儚娌″嚑涓紝浼拌榪欐槸涓涓彲浠ュ畬鍏ㄦ浛鎹㈢殑CDC鐨勭渷蹇冪殑涓滀笢銆?/p>

鐒跺悗鐪嬫瀽鏋勶細鏋愭瀯鏄竴涓狟itBit錛岃仈鎯寵嚜宸卞仛鍐呭瓨DC鐨勬椂鍊欙紝鏈鍚庝竴姝ヤ篃鏄唴瀛樺埌DC鐨勮創鍥懼姩浣溿?/p>

鍏紑鎺ュ彛灝變袱涓紝閲嶈澆鐨凜DC* 鍜?->鎿嶄綔錛岀洿鎺ヨ兘褰撲綔CDC浣跨敤銆?/p>

榪欏嚑涓粏鑺傞渶瑕佹敞鎰忥細

1.m_bMemDC = !pDC->IsPrinting();  // 浠ュ墠鍏蟲敞涓嶅錛岃繖鏄敤浜庡垽鏂繖涓狣C鏄笉鏄敤浜巔rint錛屽鏋滄槸灝變笉浣跨敤鈥滃唴瀛楧C鈥濓紝鑷充簬涓轟粈涔堣繕涓嶄簡瑙c傛垜鐞嗚В鏄病鏈夐渶瑕併?/p>

2.FillSolidRect(m_rect, pDC->GetBkColor());  // WM_ERASEBKGND錛岄拡瀵硅繖涓秷鎭殑緇嗚妭澶勭悊銆?/p>

 

榪欎釜綾繪寔鏈変簡涓涓滃墠鍙扳滵C錛屽畠鏈韓鏄竴涓滃悗鍙扳滵C錛屾瘡嬈″悗鍙板厠闅嗗墠鍙版墽琛岀粯鐢葷劧鍚庢妸緇撴灉璐村洖鍘匯?/p>

榪欓噷榪樻湁涓涓粏鑺傦紝灝辨槸SelectObject銆備負浜嗕繚璇佷笉娉勬紡錛屾渶濂界殑鍔炴硶鏄紝姣忔宸ヤ綔瀹屾垚灝嗘墍鏈夌殑GDI瀵硅薄澶嶄綅銆?/p>

///////////////////////////////////////////////////////////////

class CMemDC : public CDC
{
public:

    // constructor sets up the memory DC
    CMemDC(CDC* pDC) : CDC()
    {
        ASSERT(pDC != NULL);

        m_pDC = pDC;
        m_pOldBitmap = NULL;
#ifndef _WIN32_WCE_NO_PRINTING
        m_bMemDC = !pDC->IsPrinting();
#else
        m_bMemDC = FALSE;
#endif

        if (m_bMemDC)    // Create a Memory DC
        {
            pDC->GetClipBox(&m_rect);
            CreateCompatibleDC(pDC);
            m_bitmap.CreateCompatibleBitmap(pDC, m_rect.Width(), m_rect.Height());
            m_pOldBitmap = SelectObject(&m_bitmap);
#ifndef _WIN32_WCE
            SetWindowOrg(m_rect.left, m_rect.top);
#endif
            // EFW - Bug fix - Fill background in case the user has overridden
            // WM_ERASEBKGND.  We end up with garbage otherwise.
            // CJM - moved to fix a bug in the fix.
            FillSolidRect(m_rect, pDC->GetBkColor());
        }
        else        // Make a copy of the relevent parts of the current DC for printing
        {
#if !defined(_WIN32_WCE) || ((_WIN32_WCE > 201) && !defined(_WIN32_WCE_NO_PRINTING))
            m_bPrinting = pDC->m_bPrinting;
#endif
            m_hDC       = pDC->m_hDC;
            m_hAttribDC = pDC->m_hAttribDC;
        }

    }

    // Destructor copies the contents of the mem DC to the original DC
    ~CMemDC()
    {
        if (m_bMemDC)
        {
            // Copy the offscreen bitmap onto the screen.
            m_pDC->BitBlt(m_rect.left, m_rect.top, m_rect.Width(), m_rect.Height(),
                          this, m_rect.left, m_rect.top, SRCCOPY);

            //Swap back the original bitmap.
            SelectObject(m_pOldBitmap);
        } else {
            // All we need to do is replace the DC with an illegal value,
            // this keeps us from accidently deleting the handles associated with
            // the CDC that was passed to the constructor.
            m_hDC = m_hAttribDC = NULL;
        }
    }

    // Allow usage as a pointer
    CMemDC* operator->() {return this;}
    // Allow usage as a pointer
    operator CMemDC*() {return this;}

private:
    CBitmap  m_bitmap;      // Offscreen bitmap
    CBitmap* m_pOldBitmap;  // bitmap originally found in CMemDC
    CDC*     m_pDC;         // Saves CDC passed in constructor
    CRect    m_rect;        // Rectangle of drawing area.
    BOOL     m_bMemDC;      // TRUE if CDC really is a Memory DC.
};

Enic 2012-10-08 10:41 鍙戣〃璇勮
]]>
香蕉久久夜色精品国产小说| 丰满少妇人妻久久久久久| 91精品国产91久久久久久| 久久男人AV资源网站| 久久婷婷五月综合色奶水99啪| 久久精品国产99久久久| 久久亚洲av无码精品浪潮| 久久久精品人妻一区二区三区蜜桃| 国产成人99久久亚洲综合精品| 久久99热这里只频精品6| 国产综合久久久久| 国色天香久久久久久久小说 | 亚洲成色WWW久久网站| 国产精品99久久精品爆乳| 亚洲精品tv久久久久久久久| 久久精品成人影院| 日韩精品久久久久久| 久久精品无码午夜福利理论片| 婷婷久久精品国产| 99久久久久| 人人狠狠综合久久亚洲婷婷| 久久久久亚洲精品无码蜜桃| 久久精品国产男包| 国内精品伊人久久久久777| 一本大道久久香蕉成人网| 精品无码久久久久久久动漫| 99久久人人爽亚洲精品美女| 久久精品成人免费看| 久久国产精品成人影院| 久久综合给合久久狠狠狠97色69| 久久经典免费视频| 久久精品国产亚洲AV久| 久久久久久伊人高潮影院| 久久久久免费精品国产| 久久天天躁夜夜躁狠狠| 99蜜桃臀久久久欧美精品网站| 久久AV高潮AV无码AV| 少妇久久久久久被弄高潮| 99久久精品国产麻豆| 欧美一区二区精品久久| 久久青青国产|