Home > Software engineering >  There is no from the void to tagRectd appropriate constructor
There is no from the void to tagRectd appropriate constructor

Time:10-21


CButton * allButton [10]={NULL};
DWORD style=WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | BS_OWNERDRAW | BS_FLAT;
Int the x1=0, y1=0, x2=20, y2=10;
CRect the rect (x1, y1, x2, y2);
//cstrings tempStr;
for(int i=0; i <10; I++)
{
AllButton [I]=new CButton ();
If (allButton [I])
{
AllButton [I] - & gt; Create (_T (" Button "), the style, the rect. OffsetRect (4, 0), and this, buttonID + I);
}
The else
{
TRACE (_T (" new err "));
}
}

Crate where the rect shows wrong ~ ~ ~ please everyone a great god guidance!!

CodePudding user response:

CRect: : OffsetRect return type is void
https://technet.microsoft.com/zh-cn/library/aa299890
Still have even if you send the wrong area

CodePudding user response:

Could you tell me how to change to? Rookie a beginner, please advise
  • Related