• <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东京热| 热综合一本伊人久久精品| 国产精品久久久久a影院| 久久人人青草97香蕉| 777午夜精品久久av蜜臀| 久久久久久人妻无码| 国产精品久久久久乳精品爆| 亚洲一区精品伊人久久伊人| 亚洲精品美女久久久久99| 亚洲国产精品久久久久婷婷软件| 国内精品久久久久影院网站| 久久精品一本到99热免费| 久久91精品久久91综合| 亚洲人成网站999久久久综合 | 亚洲va中文字幕无码久久不卡| 99久久久精品| 久久受www免费人成_看片中文| 99re这里只有精品热久久| 日韩影院久久| 亚洲成人精品久久| 午夜精品久久久久久久| 久久久久久青草大香综合精品| 色偷偷久久一区二区三区| 99久久精品免费| 97精品久久天干天天天按摩| 97精品伊人久久久大香线蕉| 欧美午夜A∨大片久久 | 精品蜜臀久久久久99网站| 亚洲国产小视频精品久久久三级| 久久国产高潮流白浆免费观看| 久久国产亚洲精品| 久久青青草原精品国产软件| AAA级久久久精品无码片| 亚洲日韩中文无码久久| 亚洲国产精品久久久天堂| 少妇无套内谢久久久久| 亚洲?V乱码久久精品蜜桃| 午夜精品久久久久久久无码| 久久综合久久鬼色| 亚洲精品tv久久久久| 久久亚洲日韩看片无码|