Rectangle rectangle = Rectangle(Point(10,10),System::Drawing::Size( cursor->Size.Width * 2, cursor->Size.Height * 2 )) Ĭursor->DrawStretched( graphics, rectangle ) Graphics^ graphics = this->CreateGraphics() If ( this->Cursor != Cursors::Hand & System::Windows::Forms::Cursor::Current = Cursors::Default ) cursor on the form in normal size and twice normal size. Current cursor is the Default, Draw the specified If the form's cursor is not the Hand cursor and the void DrawCursorsOnForm( System::Windows::Forms::Cursor^ cursor ) This example requires a Form and a Cursor object to pass into the method when it is called. The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. Property System::Drawing::Size Size member this.Size : Public ReadOnly Property Size As Size Property Value SizeĪ Size that represents the width and height of the Cursor.
0 Comments
Leave a Reply. |