2010年2月4日 星期四

IuImageWnd

class IuImageWnd : public IuImageEx
{
public:
    virtual HDC GetDC() = 0;
    virtual void ReleaseDC() = 0;

    virtual BOOL BitBlt( HDC hDestDC, int xDest, int yDest, int nDestWidth, 
        int nDestHeight, int xSrc, int ySrc, DWORD dwROP = SRCCOPY ) = 0;

    virtual BOOL StretchBlt( HDC hDestDC, int xDest, int yDest, 
        int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, 
        int nSrcHeight, DWORD dwROP = SRCCOPY ) = 0;


    virtual operator HBITMAP() const = 0;

};
不管學院派對介面的定義為何! 在這裡介面獨立最好的地方是, 看起來就是輕巧, 使用起來壓力會小很多, 不必為了看到源碼或是太多功能搞的自己頭大!

沒有留言:

張貼留言