Board index » Visual Studio » Disable Mouse clicks

Disable Mouse clicks

Visual Studio161
In some lengthy operations, I want to change the cursor to a WaitCursor.

I'm using Martyn's CPersistentCursor to hold this WaitCursor.

www.codeproject.com/dialog/persistentwaitcursor.asp



But for my surprise, a WaitCursor don't block the mouse clicks.

How could I achieve this?


-
 

Re:Disable Mouse clicks

Same as yesterday! What's wrong with BeginWaitCursor(); and EndWaitCursor()?



AliR.



"Renegade" <renegade@hotmail.com>wrote in message

Quote
In some lengthy operations, I want to change the cursor to a WaitCursor.

I'm using Martyn's CPersistentCursor to hold this WaitCursor.

www.codeproject.com/dialog/persistentwaitcursor.asp">www.codeproject.com/dialog/persistentwaitcursor.asp



But for my surprise, a WaitCursor don't block the mouse clicks.

How could I achieve this?









-

Re:Disable Mouse clicks

sorry about that.

My outlook was a little bit insane.



"AliR" <AliR@newsgroup.nospam>wrote in message

Quote
Same as yesterday! What's wrong with BeginWaitCursor(); and

EndWaitCursor()?



AliR.



"Renegade" <renegade@hotmail.com>wrote in message

news:uV9S0%23tRFHA.580@TK2MSFTNGP15.phx.gbl...

>In some lengthy operations, I want to change the cursor to a WaitCursor.

>I'm using Martyn's CPersistentCursor to hold this WaitCursor.

>www.codeproject.com/dialog/persistentwaitcursor.asp">www.codeproject.com/dialog/persistentwaitcursor.asp

>

>But for my surprise, a WaitCursor don't block the mouse clicks.

>How could I achieve this?

>

>









-

Re:Disable Mouse clicks

you can even set WaitCursor urself using SetCursor with IDC_WAIT as

argument! and after finishing your work set it back to normal!





--

-----

cheers,

Alok Gupta

Visit me at alok.bizhat.com">alok.bizhat.com

"Renegade" <renegade@hotmail.com>wrote in message

Quote
sorry about that.

My outlook was a little bit insane.



"AliR" <AliR@newsgroup.nospam>wrote in message

news:VX7ae.1068$yd7.614@newssvr11.news.prodigy.com...

>Same as yesterday! What's wrong with BeginWaitCursor(); and

EndWaitCursor()?

>

>AliR.

>

>"Renegade" <renegade@hotmail.com>wrote in message

>news:uV9S0%23tRFHA.580@TK2MSFTNGP15.phx.gbl...

>>In some lengthy operations, I want to change the cursor to a

WaitCursor.

>>I'm using Martyn's CPersistentCursor to hold this WaitCursor.

>>www.codeproject.com/dialog/persistentwaitcursor.asp">www.codeproject.com/dialog/persistentwaitcursor.asp

>>

>>But for my surprise, a WaitCursor don't block the mouse clicks.

>>How could I achieve this?

>>

>>

>

>









-