MFC中Arc函式的引數分別是什麼意思

2021-05-05 07:36:33 字數 3594 閱讀 9618

1樓:匿名使用者

bool arc(hdc hdc,int xleft,int ytop,int xright,int ybottom,int xstart,int ystart,int xenda,int yend); 引數hdc 繪畫的視窗控制代碼

xleft和nytopt指定外接矩形左上角座標

xright和ybottom指定外接矩形右下角座標

xstart和nystart指定圓弧開始座標

xend和nyend指定圓弧結束座標

mfc中arc函式

易語言宣告

.版本 2

.dll命令 arc, 邏輯型, "gdi32", "arc", 公開, bool winapi arc

.引數 hdc, 整數型, , hdc hdc,

.引數 nleftrect, 整數型, , int nleftrect,

.引數 ntoprect, 整數型, , int ntoprect,

.引數 nrightrect, 整數型, , int nrightrect,

.引數 nbottomrect, 整數型, , int nbottomrect,

.引數 nxstartarc, 整數型, , int nxstartarc,

.引數 nystartarc, 整數型, , int nystartarc,

.引數 nxendarc, 整數型, , int nxendarc,

.引數 nyendarc, 整數型, , int nyendarc

2樓:匿名使用者

(x1,y1),(x2,y2)是弧所在圓的外接矩形左上角&右下角的點.

(x3,y3),(x4,y4)是弧線的起點&終點,它們不用必須在弧上

3樓:匿名使用者

bool arc(

hdc hdc, // handle to device context dc控制代碼

int nleftrect, // x-coord of rectangle's upper-left corner 包容矩形左x值

int ntoprect, // y-coord of rectangle's upper-left corner 包容矩形頂y值

int nrightrect, // x-coord of rectangle's lower-right corner 包容矩形右x值

int nbottomrect, // y-coord of rectangle's lower-right corner 包容矩形底y值

int nxstartarc, // x-coord of first radial ending point 第一點x座標

int nystartarc, // y-coord of first radial ending point 第一點y座標

int nxendarc, // x-coord of second radial ending point 結束點x座標

int nyendarc // y-coord of second radial ending point 結束點y座標

mfc中ddx_control的三個引數分別是什麼意思?

4樓:

ddx_control

引數: pdx是 指向cdataexchange物件的指標。這種結構為指定物件提供了建立資料交換的環境,也包括結構的指向。

nidc 子控制元件類的資源id繼承控制元件的屬性。

rcontrol 對對話方塊成員變數的一個引用,形成檢視資源,或者控制資料被交換的檢視物件。

比如說:ddx_control(pdx, idc_emsg, m_strmessage)

idc_emsg就是你的控制元件id,m_strmessage就是你為idc_emsg控制元件關聯的一個cstring型變數。

有關ddx的更多資訊參見《visual c++程式設計師指南》中的「對話方塊資料交換和校驗」和《visual c++教程》中的「加入對話方塊」。

用mfc畫圓時 pdc->ellipse(0,25,37,46) 裡面的引數各代表什麼意思啊

5樓:僧修敏

左上角和右下角的座標

cdc::ellipse

bool ellipse( int x1, int y1, int x2, int y2 );

bool ellipse( lpcrect lprect );

return value

nonzero if the function is successful; otherwise 0.

parameters

x1specifies the logical x-coordinate of the upper-left corner of the ellipse』s bounding rectangle.

y1specifies the logical y-coordinate of the upper-left corner of the ellipse』s bounding rectangle.

x2specifies the logical x-coordinate of the lower-right corner of the ellipse』s bounding rectangle.

y2specifies the logical y-coordinate of the lower-right corner of the ellipse』s bounding rectangle.

lprect

specifies the ellipse』s bounding rectangle. you can also pass a crect object for this parameter

mfc中ddx_control();括號中的三個引數分別是什麼意思呀?

6樓:匿名使用者

ddx_control

void afxapi ddx_control( cdataexchange* pdx, int nidc, cwnd& rcontrol );

引數: pdx是 指向cdataexchange物件的指標。這種結構為指定物件提供了建立資料交換的環境,也包括結構的指向。

nidc 子控制元件類的資源id繼承控制元件的屬性。

rcontrol 對對話方塊成員變數的一個引用,形成檢視資源,或者控制資料被交換的檢視物件。

說明:ddx_control函式管理著在對話方塊、**視或控制元件視中被子類化的控制元件與對話方塊、**視或控制元件視的cwnd資料成員之間的資料交換。

有關ddx的更多資訊參見《visual c++程式設計師指南》中的「對話方塊資料交換和校驗」和《visual c++教程》中的「加入對話方塊」。

比如說:ddx_control(pdx, idc_emsg, m_strmessage)

第一個「」pdx「不用管它,idc_emsg就是你的控制元件id,m_strmessage就是你為idc_emsg控制元件關聯的一個cstring型變數。

mfc中DDXControl括號中的引數分別是什

ddx control void afxapi ddx control cdataexchange pdx,int nidc,cwnd rcontrol 引數 pdx是 指向cdataexchange物件的指標。這種結構為指定物件提供了建立資料交換的環境,也包括結構的指向。nidc 子控制元件類的資...

汽車蓄電池引數分別是是什麼意思怎麼換算

假設有一蓄電池的引數為 12v 280a 60ah 分別表示 12v 12伏 是電池電壓 280a 280安 最大放電電流 60ah 60安時數 是電池容量,電流為一安時可放電60小時。汽車蓄電池三個引數分別是 額定輸出電 壓 伏特 容量 安時 最大輸出電流 安培 容量與使用時間換算關係 容量q 輸...

請問圖中引數分別是什麼意思啊,請問圖中三個引數分別是什麼意思啊?

display模組只具有顯示的功能,輸入是多少就顯示多少 具體是什麼意思要根據你的輸入判斷,發個圖可以幫你看一下 也可以直接聯絡我 圖中各引數都代表什麼意思啊?x,y是座標bai a r t l e分別表示轉角 兩du條直線的交角 zhi 圓曲線半徑 dao彎道的內緩急決定因素 容 切線長 圓曲線長...