Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About VPOS and HPOS
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00574283
Message ID:
00575012
Views:
22
Terry,
Actually, this is the conversion Doug uses for his Treeview control and Dragging/Dropping. I don't think it's valid for report specifications.

>>How do i transform VPOS HPOS HEIGHT and WIDTH of the *.FRX file in
>>
>>TOP
>>BOTTOM
>>LEFT
>>RIGHT
>>HRIGHT
>>WIDTH
>>
>>Thank you All
>Maybe this will help - I think the code came from Hening.
>
>local liHwnd,liHDC,liPixelsPerInchX,liPixelsPerInchY
>* Constants
>* log_pixels_x from wingdi 88
>* log_pixels_Y             90
>* twips_per_inch         1440
>* Declare APIs
>declare integer GetActiveWindow in WIN32API
>declare integer GetDC in WIN32API integer iHDC
>declare integer GetDeviceCaps in WIN32API integer iHDC,integer iIndex
>* Device context
>liHwnd=GetActiveWindow()
>liHDC=GetDC(liHwnd)
>* Pixels per Inch
>liPixelsPerInchX=GetDeviceCaps(liHDC,88)
>liPixelsPerInchY=GetDeviceCaps(liHDC,90)
>* Twips per pixel and store
>unLTVX=1440/liPixelsPerInchX
>unLTVY=1440/liPixelsPerInchY
>*_vfp.AutoYield=.t.
>CLEAR DLLS
>
/
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform