UseCustomOutput()
Posted: Tue Jun 28, 2011 4:15 am
Dear Fréd,
because the internal PB-Structures are unpublished, it's (nearly?) impossible to use the powerful 2DDrawing-Functions on DCs which are created via the API.
You will surely have good reasons to hide these informations and I truly can understand your decision with that.
But, to make it possible to use the 2DDrawing-Functions on own DCs, would it be possible for you, to implement an Output()-Command, which will generate the needed OutputChannel out of Data, passed by the user (e.g. a DC or whatever Data you need).
e.g. like:
StartDrawing( UseCustomOutput( *hDC ))
With this Method you could keep the secret of the internal PB-Structures, but give the Programmer the possibility to use own generated OutputChannels (e.g. DCs) for StartDrawing().
because the internal PB-Structures are unpublished, it's (nearly?) impossible to use the powerful 2DDrawing-Functions on DCs which are created via the API.
You will surely have good reasons to hide these informations and I truly can understand your decision with that.
But, to make it possible to use the 2DDrawing-Functions on own DCs, would it be possible for you, to implement an Output()-Command, which will generate the needed OutputChannel out of Data, passed by the user (e.g. a DC or whatever Data you need).
e.g. like:
StartDrawing( UseCustomOutput( *hDC ))
With this Method you could keep the secret of the internal PB-Structures, but give the Programmer the possibility to use own generated OutputChannels (e.g. DCs) for StartDrawing().