PDA

Click to See Complete Forum and Search --> : How can I access the device context from a swflash.ocx



Paul111
10-27-2000, 09:38 AM
I'm trying to get the device context (DC) from Shockwave Flash Control.

I would like to know if anybody knows which is the best way to get the DC from Flash Control.

Should I use the Flash Source Code SDK ?

How can I download the SDK?

DJSole
10-28-2000, 09:16 AM
Having the Flash Source SDK is the easiest way to get the DC, but also more complicated to use in your program the Flash Control. Keep things simple, don't worry about the SDK unless you have a use for it.

If you are using the control with MFC, you can call the GetDC() function of the control.
Otherwise, with the handle of the control, use the GetDC(HWND) of GetWindowDC(HWND) functions. These both return the device context. The difference is irrelevant to the Flash Control, but with windows, GetDC returns the display area DC, and GetWindowDC returns the entire window DC including title bar etc.