• <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 閱讀(873) 評論(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ì)

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            日韩av无码久久精品免费| 精品无码久久久久久尤物| 国产激情久久久久影院小草 | 99久久免费国产精品热| 国产韩国精品一区二区三区久久 | 久久99精品国产麻豆婷婷| 久久99精品国产99久久6| 久久福利资源国产精品999| 亚洲AV日韩AV天堂久久| 嫩草影院久久国产精品| 国产精品美女久久福利网站| 久久天天躁狠狠躁夜夜网站 | 亚洲国产精品一区二区久久hs| 99精品国产在热久久无毒不卡| 久久99精品国产麻豆婷婷| 久久精品国产99久久久| 色综合久久88色综合天天 | 精品久久久久香蕉网| 久久中文字幕无码专区| 99国产欧美久久久精品蜜芽| 亚洲欧洲精品成人久久奇米网| 久久精品草草草| 久久精品中文无码资源站| 日韩电影久久久被窝网| 99久久精品这里只有精品 | 精品久久国产一区二区三区香蕉| 人妻丰满AV无码久久不卡| 亚洲伊人久久成综合人影院| 精品久久久久久国产免费了| 91精品国产91久久久久福利| 亚洲AV无码久久精品色欲| 精品久久人人爽天天玩人人妻| 久久亚洲欧洲国产综合| 伊人久久免费视频| 91精品国产色综久久| 色综合合久久天天综合绕视看| 久久久久亚洲AV无码麻豆| 国内精品九九久久久精品| 国产精品久久久久久福利漫画 | 青青草原1769久久免费播放| 国产成人精品免费久久久久|