• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            幽魂國度

             

            CDC類對象的行為函數(shù)

            (1)、常用的繪畫成員函數(shù):
                 SetPixel():用指定的顏色在指定的坐標(biāo)畫一個點(diǎn),返回值為RGB顏色值;
                                    函數(shù)原型 COLORREF SetPixel( int x, int y, COLORREF crColor );
                                                      COLORREF
            SetPixel( POINT point, COLORREF crColor );
                 MoveTo():移動當(dāng)前位置到指定的坐標(biāo),返回值為以前位置的坐標(biāo);
                                    函數(shù)原型  CPoint MoveTo( int x, int y );
                                                      
            CPoint MoveTo( POINT point );
                 LineTo():從當(dāng)前位置到指定位置畫一條直線,成功返回非0;
                                    函數(shù)原型  BOOL LineTo( int x, int y ); 
                                                      BOOL LineTo( POINT point );
                 Polyline():從當(dāng)前位置,繪畫多條曲線,成功返回非0;
                                    函數(shù)原型 BOOL Polyline( LPPOINT lpPoints, int nCount/*數(shù)目*/ );
                 Rectangle():根據(jù)指定參數(shù)繪制一個矩形,成功返回非0;
                                    函數(shù)原型  BOOL Rectangle( int x1, int y1, int x2, int y2 );
                                                      B
            OOL Rectangle( LPCRECT lpRect );
                 Ellipse(): 根據(jù)指定的矩形繪制一個內(nèi)切橢圓,成功返回非0;
                                    函數(shù)原型 BOOL Ellipse( int x1, int y1, int x2, int y2 );
                                                     
            BOOL Ellipse( LPCRECT lpRect );
                 DrawIcon():在指定位置畫一個圖標(biāo),成功返回非0;
                                    函數(shù)原型 BOOL DrawIcon( int x, int y, HICON hIcon );
                                                      BOOL DrawIcon( POINT point, HICON hIcon );
            (2)、有關(guān)文本處理的常用函數(shù):
                 TextOut():在函數(shù)參數(shù)指定的位置顯示文本串。
                                    函數(shù)原型 virtual BOOL TextOut( int x, int y, LPCTSTR lpszString, int nCount );
                                                      BOOL TextOut( int x, int y, const CString& str );
                 DrawText():在函數(shù)參數(shù)指定的矩形區(qū)域內(nèi)顯示文本串。
                                    函數(shù)原型 virtual int DrawText( LPCTSTR lpszString, int nCount, LPRECT lpRect, UINT nFormat /*類型*/);
                                                     
            int DrawText( const CString& str, LPRECT lpRect, UINT nFormat );
                 SetTextColor():設(shè)置顯示文本的顏色,返回當(dāng)前文本RGB顏色值;
                                     函數(shù)原型 virtual COLORREF SetTextColor( COLORREF crColor );
                
            GetTextColor():獲得當(dāng)前文本顏色; 函數(shù)原型 COLORREF GetTextColor( ) const;
                 SetBkColor():設(shè)置顯示文本的背景顏色,返回當(dāng)前文本背景RGB顏色值;
                                     函數(shù)原型 virtual COLORREF SetBkColor( COLORREF crColor );
                 GetBkColor():獲得當(dāng)前文本背景顏色; 函數(shù)原型 COLORREF GetBkColor( ) const;
                 SetBkMode():設(shè)置文本的背景模式,返回當(dāng)前背景模式值;
                                     函數(shù)原型 int SetBkMode( int nBkMode /*模式*/); TRANSPARENT透明,OPAQUE 不透明  
                 GetBkMode():獲得當(dāng)前文本背景模式; 函數(shù)原型 int GetBkMode( ) const;
                
            SetTextAlign():設(shè)置顯示文本的對齊方式,成功返回非0;
                                      函數(shù)原型  UINT SetTextAlign( UINT nFlags );
                 GetTextAlign():獲得文本的對齊方式,函數(shù)原型 UINT GetTextAlign( ) const;

            posted on 2010-03-29 22:15 閱讀(869) 評論(1)  編輯 收藏 引用

            評論

            # re: CDC類對象的行為函數(shù) 2012-07-09 02:19 tianpeng

            TextOut()的三個參數(shù)在2010中好像變了,博主不妨試試看,我的不知怎么回事提示參數(shù)不對  回復(fù)  更多評論   


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            三级韩国一区久久二区综合| 国产福利电影一区二区三区,免费久久久久久久精 | 国产69精品久久久久9999| 久久精品国产免费一区| 久久综合狠狠综合久久激情 | 久久久网中文字幕| 久久久亚洲AV波多野结衣| 久久久久亚洲精品无码蜜桃| 国产精品成人久久久久三级午夜电影| 久久本道久久综合伊人| 久久亚洲精品国产亚洲老地址| 新狼窝色AV性久久久久久| 91久久精品国产免费直播| 久久无码AV一区二区三区| 国产一区二区三区久久精品| 四虎久久影院| 99久久综合狠狠综合久久| 亚洲精品美女久久777777| 久久精品国产清自在天天线| 色综合久久久久久久久五月| 久久精品国产精品亚洲| 国产精品久久99| 亚洲综合伊人久久大杳蕉| 久久久久国产一级毛片高清板 | 中文字幕无码免费久久| 久久996热精品xxxx| 国产精品欧美久久久天天影视| 久久久久久精品无码人妻| 久久久久成人精品无码| 99久久精品国产毛片| 久久精品国产半推半就| 无码专区久久综合久中文字幕 | 色综合久久久久| 久久精品国产亚洲AV无码偷窥| 欧美精品乱码99久久蜜桃| 一本久久a久久精品综合香蕉| 91久久精品电影| 久久99精品久久久久久齐齐| 久久精品中文字幕有码| 免费一级做a爰片久久毛片潮 | 99久久人人爽亚洲精品美女|