Revision: 13686 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13686&view=rev Author: vszakats Date: 2010-01-23 13:05:50 +0000 (Sat, 23 Jan 2010)
Log Message: ----------- 2010-01-23 14:05 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/hbwapi.h * contrib/hbwin/wapi_alloc.c * contrib/hbwin/wapi_wingdi.c * contrib/hbwin/tests/testgdi.prg + Reworked the way DEVMODE structure is handled. As many winapi interfacing methods, this is also a strange beast, it contains some hidden information, so it must be created using some winapi calls. I finally settled with these three functions to handle DEVMODE structure from .prg level: __WAPI_DEVMODE_NEW( <cPrinterName> ) => <pDEVMODE> __WAPI_DEVMODE_SET( <pDEVMODE>, <hashToWriteFrom> ) __WAPI_DEVMODE_GET( <pDEVMODE>, <hashToReadInto> ) Then <pDEVMODE> can be passed to WAPI_CREATEDC() and WAPI_RESETDC(). Remember to recreate <pDEVMODE> after using __WAPI_DEVMODE_SET() and before using __WAPI_DEVMODE_GET() to refresh the structure content with actual device settings. Modified Paths: -------------- trunk/harbour/ChangeLog trunk/harbour/contrib/hbwin/hbwapi.h trunk/harbour/contrib/hbwin/tests/testgdi.prg trunk/harbour/contrib/hbwin/wapi_alloc.c trunk/harbour/contrib/hbwin/wapi_wingdi.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour