Hi Jacques,

Frontwindow() returns MapInfo's unique identifier for the window.

You need to try winhandl=WindowInfo(FrontWindow(),WIN_INFO_WND) to get the MsWin window handle

Regards

Stuart Morrison
ps.  Your website has been extremely useful over the years!


From: "Jacques Paris" <[EMAIL PROTECTED]>
To: "MIL" <[email protected]>
Subject: MI-L window handle in w2000
Date: Sun, 3 Apr 2005 14:56:39 -0400

If I run the following MB code

Declare Function IsWindow Lib "user32.dll" (ByVal hWnd As Integer) As
Integer
Dim retval, winhandl As Integer
winhandl=frontwindow()
retval=iswindow(winhandl)
note retval

the return value is 0 which means that the handle does not refer to a
window.

Windows2000 is a platform that supports IsWindow(). Does the problem comes
from MI6.5 that I am using?

Thanks for any help because IsWindow() is only the tip of the iceberg in my
case.

Jacques Paris
e-mail  [EMAIL PROTECTED]
MapBasic-MapInfo support  http://www.paris-pc-gis.com




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




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



Reply via email to