M
mphanke
Hi,
I have a snippet which makes me go mad!
The clip region of the Cursor is set correctly, but I can't reset it
anymore afterwards! This really drives me nuts, because I don't
understand what is exactly happening at thsi point.
Can anybody tell me what is wrong with this:
void OnMouseClick(Object * sender, MouseEventArgs * mea)
{
if(mea->Button == MouseButtons::Left)
{
m_bLeft = !m_bLeft;
if(m_bLeft)
{
Cursor::Current->Clip =
Rectangle(m_PicBox->PointToScreen(Point(m_PicBox->ClientRectangle.Left,
m_PicBox->ClientRectangle.Top)), m_PicBox->Size);
}
else
{
Cursor::Current = Cursors:efault;
}
}
}
Thanks,
Martin
I have a snippet which makes me go mad!
The clip region of the Cursor is set correctly, but I can't reset it
anymore afterwards! This really drives me nuts, because I don't
understand what is exactly happening at thsi point.
Can anybody tell me what is wrong with this:
void OnMouseClick(Object * sender, MouseEventArgs * mea)
{
if(mea->Button == MouseButtons::Left)
{
m_bLeft = !m_bLeft;
if(m_bLeft)
{
Cursor::Current->Clip =
Rectangle(m_PicBox->PointToScreen(Point(m_PicBox->ClientRectangle.Left,
m_PicBox->ClientRectangle.Top)), m_PicBox->Size);
}
else
{
Cursor::Current = Cursors:efault;
}
}
}
Thanks,
Martin