Mouse Event
-
Hi All how can i show message on Mouse right click event?Currently i am useing this code
CADlg::OnRButtonDown(UINT nFlags,CPoint point)
{
Afxmessage("Right Click");
..............
}This message is showing only click on Application.But i want to show click any where in system. Plz help me
-
Hi All how can i show message on Mouse right click event?Currently i am useing this code
CADlg::OnRButtonDown(UINT nFlags,CPoint point)
{
Afxmessage("Right Click");
..............
}This message is showing only click on Application.But i want to show click any where in system. Plz help me
Try calling
SetCapture
inOnInitDialog
.«_Superman_» I love work. It gives me something to do between weekends.
-
Hi All how can i show message on Mouse right click event?Currently i am useing this code
CADlg::OnRButtonDown(UINT nFlags,CPoint point)
{
Afxmessage("Right Click");
..............
}This message is showing only click on Application.But i want to show click any where in system. Plz help me
You may use a global mouse hook [^], for this. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Try calling
SetCapture
inOnInitDialog
.«_Superman_» I love work. It gives me something to do between weekends.
-
You may use a global mouse hook [^], for this. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
See, for instance, this article [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Davitor wrote:
Can you give some example link?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
See, for instance, this article [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]