Click here to Skip to main content
16,005,491 members
Home / Discussions / COM
   

COM

 
QuestionWord Automation Pin
g_dev23-Sep-08 18:37
g_dev23-Sep-08 18:37 
AnswerRe: Word Automation Pin
kattah28-Jan-09 13:03
kattah28-Jan-09 13:03 
QuestionWord Automation Pin
g_dev23-Sep-08 18:36
g_dev23-Sep-08 18:36 
Questionvc++ and .net Runtime error Pin
balu1234522-Sep-08 9:15
balu1234522-Sep-08 9:15 
QuestionSynchronization concepts.. [modified] Pin
kDevloper21-Sep-08 21:13
kDevloper21-Sep-08 21:13 
AnswerRe: Synchronization concepts.. Pin
John_Adams3-Oct-08 12:47
John_Adams3-Oct-08 12:47 
GeneralRe: Synchronization concepts.. Pin
kDevloper3-Oct-08 18:25
kDevloper3-Oct-08 18:25 
QuestionHow to draw sth. on owner flash ole container Pin
61934514220-Sep-08 14:38
61934514220-Sep-08 14:38 
I have already download the sourcecode of Transparent Flash Control
http://www.codeproject.com/KB/COM/flashcontrol.aspx

now I want to draw something on the flash control, I do it like this
OLECONTAINER(void)::Draw(HDC hdcDraw, const RECT *rcDraw, BOOL bErase)
{
HWND hwnd = GetHWND();
HRESULT hr;
RECT r;


IOleObject *lpO = m_lpO;
IViewObject *lpV = m_lpViewObjectEx ? (IViewObject
*)m_lpViewObjectEx : m_lpViewObject;


// if (!m_bTransparent)
{
RECT rTotal;
::GetClientRect(hwnd, &rTotal);
if (lpV)
{
if (!hdcDraw)
{
hdcDraw = ::GetDC(hwnd);
hr = OleDraw(lpV, DVASPECT_CONTENT, hdcDraw, &rTotal);
::ReleaseDC(hwnd, hdcDraw);
}
else
{
hr = OleDraw(lpV, DVASPECT_CONTENT, hdcDraw, &rTotal);
}
}


TextOut(hdcDraw, 0, 0, "test", 4); // <======= do it like this
return;
}

But I find that the text drawn on the hdc will always be covered drawn by flash control
how can I do it?
QuestionDynamic DLL creation Pin
Member 400849215-Sep-08 3:11
Member 400849215-Sep-08 3:11 
QuestionC++ and COM Pin
bhogavalli suresh14-Sep-08 19:19
bhogavalli suresh14-Sep-08 19:19 
AnswerRe: C++ and COM Pin
Lim Bio Liong14-Sep-08 21:44
Lim Bio Liong14-Sep-08 21:44 
GeneralRe: C++ and COM Pin
Ju@ncho19-Sep-08 9:57
Ju@ncho19-Sep-08 9:57 
AnswerRe: C++ and COM Pin
Jagdish Vasani19-Sep-08 21:34
Jagdish Vasani19-Sep-08 21:34 
QuestionError loading type library/DLL Pin
Sara1239-Sep-08 0:38
Sara1239-Sep-08 0:38 
AnswerRe: Error loading type library/DLL Pin
Lim Bio Liong9-Sep-08 1:35
Lim Bio Liong9-Sep-08 1:35 
GeneralRe: Error loading type library/DLL Pin
Sara1239-Sep-08 18:55
Sara1239-Sep-08 18:55 
GeneralRe: Error loading type library/DLL Pin
Lim Bio Liong9-Sep-08 19:23
Lim Bio Liong9-Sep-08 19:23 
AnswerRe: Error loading type library/DLL Pin
Ju@ncho19-Sep-08 10:01
Ju@ncho19-Sep-08 10:01 
GeneralRe: Error loading type library/DLL Pin
Ju@ncho19-Sep-08 10:06
Ju@ncho19-Sep-08 10:06 
QuestionActivex Control -&gt;Running Programaticly [modified] Pin
michael@cohen6-Sep-08 22:57
michael@cohen6-Sep-08 22:57 
AnswerRe: Activex Control -&gt;Running Programaticly Pin
guestcat11-Sep-08 22:38
guestcat11-Sep-08 22:38 
QuestionPrinting with COM in Web Pin
LeBarros5-Sep-08 9:27
LeBarros5-Sep-08 9:27 
QuestionLearning curve for 2003 COM addin [modified] Pin
Hatobeya5-Sep-08 4:28
Hatobeya5-Sep-08 4:28 
AnswerRe: Learning curve for 2003 COM addin Pin
Baltoro14-Sep-08 10:57
Baltoro14-Sep-08 10:57 
GeneralRe: Learning curve for 2003 COM addin Pin
Hatobeya17-Sep-08 2:33
Hatobeya17-Sep-08 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.