This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C8901F.A7DC07A0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi All
vfp9, SP1
I wanted to create a simple Word doc and then let the user edit; all =
this works fine
I also wanted vfp to wait until user closed Word
Instead of wait state or using wsh, I thought I would use bindevent and =
prevent return to vfp until Word closed (or at least document closed)
following Doub Hennig article =
http://msdn2.microsoft.com/en-us/library/ms947678.aspx
I created a link like: bindevent(_vfp.hWnd, WM_ACTIVATE, oApp, =
"WindowsEvents")
the bindevent works fine (it correctly gets to oApp.WindowsEvents)
however, I have 2 problems
1. if I return BROADCAST_QUERY_DENY for vfp Activate in WindowsEvents =
(not calling WindowProc), it does not stop vfp from coming forward
2. the 2nd time I click on vfp top bar (not in screen), it maximizes the =
window (like it thinks I double clicked even if some time has passed)
anyone know what I am doing wrong ?
al
------=_NextPart_000_0008_01C8901F.A7DC07A0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2900.3268" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi All</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>vfp9, SP1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I wanted to create a simple Word doc =
and then let=20
the user edit; all this works fine</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I also wanted vfp to wait until user =
closed=20
Word</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Instead of wait state or using wsh, I =
thought I=20
would use bindevent and prevent return to vfp until Word closed (or at =
least=20
document closed)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>following Doub Hennig article =
</FONT><FONT=20
face=3DArial size=3D2><A=20
href=3D"http://msdn2.microsoft.com/en-us/library/ms947678.aspx">http://ms=
dn2.microsoft.com/en-us/library/ms947678.aspx</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I created a link like: <FONT=20
face=3D"Courier New" color=3D#0000ff size=3D2>bindevent</FONT><FONT =
face=3D"Courier New"=20
size=3D2>(</FONT><FONT face=3D"Courier New" color=3D#0000ff =
size=3D2>_vfp</FONT><FONT=20
face=3D"Courier New" size=3D2>.</FONT><FONT face=3D"Courier New" =
color=3D#0000ff=20
size=3D2>hWnd</FONT><FONT face=3D"Courier New" size=3D2>, WM_ACTIVATE, =
</FONT><FONT=20
face=3D"Courier New" color=3D#0000ff size=3D2>oApp</FONT><FONT =
face=3D"Courier New"=20
size=3D2>, "WindowsEvents")</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the bindevent works fine (it correctly =
gets to=20
oApp.WindowsEvents)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>however, I have 2 problems</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1. if I return BROADCAST_QUERY_DENY for =
vfp=20
Activate in WindowsEvents (not calling WindowProc), it does not stop vfp =
from=20
coming forward</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>2. the 2nd time I click on vfp top bar =
(not in=20
screen), it maximizes the window (like it thinks I double clicked even =
if some=20
time has passed)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>anyone know what I am doing wrong =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>al</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0008_01C8901F.A7DC07A0--