CPoint operatore +( SIZE size ) const;
CPoint operatore + (punto punto ) const;
CRect operatore + (const RECT * lpRect ) const;
Valore restituito
Un CPoint che è compensato da una dimensione, un CPoint che è compensato da un punto o un offset CRect da un punto.
Parametri
dimensioni
Contiene una struttura SIZE o un oggetto CSize.
punto
Contiene una struttura POINT o un oggetto CPoint.
lpRect
Contiene un puntatore a una struttura RECT o un oggetto CRect.
Osservazioni
Utilizzare questo operatore per compensato CPoint da un oggetto CPoint o CSize o per compensare un CRect da un CPoint.
Ad esempio, utilizzando uno dei primi due overload per compensare il puntoCPoint(25, -19)da un punto di CPoint(15, 5) o la dimensione CSize(15, 5) restituisce il valoreCPoint(40, -14).
Aggiunta di un rettangolo a un punto restituisce il rettangolo dopo essere compensati dalla i valori x e y specificati nel punto. Ad esempio, utilizzando l'ultimo overload per compensare un rettangolo CRect(125, 219, 325, 419) da un punto CPoint(25, -19) restituisceCRect(150, 200, 350, 400).
CPoint panoramica |nbsp; Membri della classe | Gerarchia Chart
Vedere a&nchenbsp;CPoint::operator – =, CPoint::operator-, + = CPoint::operator, CSize::operator +, CRect::operator +, CPoint::Offset, CRect::OffsetRect