Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PeekMessage in VFP??
Message
From
21/12/1998 15:41:24
 
 
To
21/12/1998 15:13:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00169417
Message ID:
00169435
Views:
17
>Is there anywhere in a form where one can trap
>WM_ messages like this C code?
>
>
>Best regards
>Per Simmersholm
>
>
> while(1) {
> while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
> if(msg.message==WM_QUIT)
> break;
> TranslateMessage(&msg);
> DispatchMessage(&msg);
> }
> if(msg.message==WM_QUIT)
> break;
> Refresh(); // idle, refresh the display
> }
> return(msg.wParam);

Nope - there's no way to insert something into the VFP event loop to intercept incoming Windows Messages. It might be doable with an ActiveX control or an API hook into the event loop, but I haven't tried, and it wouldn't be written in VFP to do this...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform