>Hi:
>
>Its called PageSetupDlg and its in comdlg32.dll. I'm creating a mini word processor using the RTF control and I want to allow the users to control the margin settings. The problem is it expects a structure. I don't know how to do this in Fox.
>
>Thanx,
>Charlie
Sorry. If you do this, you will need Ed Rauh's CLSHEAP because the structure contains pointers to 2 other structures: DEVMODE and DEVNAMES. Both are fixed length with no pointers so you should be able to translate them. Use the DWORD and WORD conversion routines in Ed's class. It also contains pointers to call backs but these allow for NULL values so you don't have to use them.
While the class is fairly well documented, you can get some more information on how to use it by reading the Pointers on Pointers (Parts I and II) entries on the Wiki. Ed gave a Wednesday session on it a couple of months ago.
Good luck!
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao