0
我有兩個picurebox函數。我想用picturebox上的鼠標點擊繪製一些東西。C++在picturebox上用鼠標點擊繪製東西
private: System::Void pictureBox1_MouseClick(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) {
int Curx = e->X;
int Cury = e->Y;
}
和
private: System::Void pictureBox1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
e->Graphics->DrawEllipse(Pens::Blue, 200,200, 1, 1);
}
我想在另一個使用的一個功能。
這不是C#代碼,請儘量避免放置多個編程語言標記。 –
@SpencerWieczorek它看起來像使用.NET擴展的C++,使它成爲一個奇怪的鴨子。 –
@MarkRansom它是,.NET標籤需要在那裏。 –