Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DocumentProperties anyone?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010251
Message ID:
01011440
Views:
18
>
>DECLARE INTEGER SendMessage IN user32;
>    INTEGER hWnd,;
>    INTEGER Msg,;
>    INTEGER wParam,;
>    INTEGER lParam
>
>Note that the second parameter is the message to send, but it's an integer! In fact, all the parameters are integers. The example on http://www.amyuni.com/downloads/tn02.htm indicates that the changed Devmode is what you'd send in this second parameter, but it looks like the same problem I have with SetPrinter().
>

A bit more on this...

I've found that the WM_DEVMODECHANGE parameter in the example is actually a constant from the windows.h file. It's 28, so I just sent the function a 28 as the second parameter. It doesn't blow up, but it also doesn't seem to do anything. So I'm back to where I started, i.e. trying to figure out why the call to DocumentProperties that's supposed to save the Devmode settings isn't doing its job.
Previous
Reply
Map
View

Click here to load this message in the networking platform