Print/Print preview for OCX controls
David Simpson -- dsimpson@cwb.com
Thursday, October 31, 1996
Environment: VC++ 4.2-flat, NT 3.51
Having put a graph OCX (the Pinicale one)
on a CFormView derivative succesfully, I
would like to implement Print/print preview
Supporting the default menu handlers in
the CFormView is no problem, _but_ is
there any way to get the OCX control
to render itself to the relevant dc.
Sending it a WM_PAINT message has no
effect.
Is there anyway to implement this
functionality for an OCX, or is there
a better way of doing this? I'd
really appreciate if someone could
just point me in the right direction.
TIA
David Simpson
dsimpson@cwb.com
Mike Lechner -- Mike_Lechner@msn.com
Sunday, November 03, 1996
Here's how I get the Pinnacle graph to draw into my printer DC.
fGraph[i].PrintInfo[0] = 0;
fGraph[i].PrintInfo[12] = LOWORD (pDC);
fGraph[i].PrintInfo[13] = HIWORD (pDC);
fGraph[i].DrawMode = CGraph::print;
I assume your problem is printing, not drawing onscreen?
There's a fairly good example in the samples provided by Pinnacle.
If you still have troubles, give me a call.
Mike Lechner
(303) 545-1640
Mike_Lechner@msn.com
----------
From: owner-mfc-l@majordomo.netcom.com on behalf of David Simpson
Sent: Thursday, October 31, 1996 10:19 AM
To: mfc-l@netcom.com
Subject: Print/Print preview for OCX controls
Environment: VC++ 4.2-flat, NT 3.51
Having put a graph OCX (the Pinicale one)
on a CFormView derivative succesfully, I
would like to implement Print/print preview
Supporting the default menu handlers in
the CFormView is no problem, _but_ is
there any way to get the OCX control
to render itself to the relevant dc.
Sending it a WM_PAINT message has no
effect.
Is there anyway to implement this
functionality for an OCX, or is there
a better way of doing this? I'd
really appreciate if someone could
just point me in the right direction.
TIA
David Simpson
dsimpson@cwb.com
| Вернуться в корень Архива
|