cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

How does the DrawingArea control work?

刘虎
4-Participant

How does the DrawingArea control work?

How does the DrawingArea control work, such as drawing a line? Or insert pictures? Is there an example for reference?

 

Below is my code, but the program does not show the DrawingArea control when it runs. I give you the area that does not display the desired content!

 

uifcDrawingArea_ptr drawArea = uifcDrawingAreaFind(strDlg, strDrawArea);

drawArea->SetDrawingMode(uifcDRAWING_MODE_XOR);
drawArea->SetDrawingColor(uifcColor::Create(0, 33, 255));
uifcPoint_ptr screnPos = drawArea->GetScreenOrigin();
xint areaWd = drawArea->GetWidth();
xint areaHT = drawArea->GetHeight();
uifcPoint_ptr pos1 = uifcPoint::Create(screnPos->GetX(), screnPos->GetY());
uifcPoint_ptr pos2 = uifcPoint::Create(10, 10);
drawArea->SetLineStyle(uifcLINE_STYLE_DOTTED);
drawArea->SetLineWidth(10);
drawArea->DrawLine(pos1,pos2);
drawArea->DrawText("AAAAAAAAAAA",pos1);
QQ:2571194117

0 REPLIES 0
Announcements


Top Tags