Hi:

I am trying to disable MapInfo in its entireity while an external
application runs. I have tried to use the Windows API function whose
declaration is:

Public Declare Function EnableWindow Lib "user32.dll" (ByVal hwnd As Long,
ByVal fEnable As Long) As Long

lRetVAlue = EnableWindow(7537398, 0)

but this has no effect. However if I call this function from a button on a
Visual Basic form, I can enable and disable MapInfo as desired.

Any ideas of how I can get the disabling to work within MapInfo using this
or an alternative method would be most appreciated!

Cheers,

Andrew Hyman






---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4425

Reply via email to