Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question about cin Pin
George_George28-Sep-08 3:38
George_George28-Sep-08 3:38 
GeneralRe: question about cin Pin
followait28-Sep-08 4:16
followait28-Sep-08 4:16 
GeneralRe: question about cin Pin
George_George29-Sep-08 23:11
George_George29-Sep-08 23:11 
QuestionHow to determine if a GDI object handle is valid? Pin
followait27-Sep-08 20:10
followait27-Sep-08 20:10 
AnswerRe: How to determine if a GDI object handle is valid? Pin
Gary R. Wheeler28-Sep-08 2:17
Gary R. Wheeler28-Sep-08 2:17 
AnswerRe: How to determine if a GDI object handle is valid? Pin
Michael Dunn28-Sep-08 12:32
sitebuilderMichael Dunn28-Sep-08 12:32 
QuestionSharing DLL data among different process Pin
ForNow27-Sep-08 19:07
ForNow27-Sep-08 19:07 
Questionhow to catch the redraw event of flash control? Pin
61934514227-Sep-08 16:51
61934514227-Sep-08 16:51 
hello everybody!
now I want to draw something on the flash control background

I have already realized the ole container of flash control,
in the WM_PAINT message handle function,
I call OleDraw to Draw the content of Flash at first
after that, I Draw sth on the HDC,
But I found that some event of flash will redraw itself,
so, the content that I draw is always covered by the content of flash control
I want to draw sth. on the flash control background

reference url: http://www.codeproject.com/KB/COM/flashcontrol.aspx


I found that the IAdviseSink interface

hr = m_lpO->QueryInterface(IID_IViewObjectEx, (void **)&m_lpViewObjectEx);

after that,

if(S_OK == pview->SetAdvise(DVASPECT_CONTENT, 0, (IAdviseSink*)this) )
{
TRACE("S_OK");
}

the debug window display "S_OK"

the "this" pointer is
class COleContainerWnd : virtual public IOleClientSite,
virtual public IOleInPlaceSiteWindowless,
virtual public IOleInPlaceFrame,
virtual public IStorage,
virtual public IAdviseSink

but can't catch IAdviseSink::OnDataChange() and IAdviseSink::OnViewChange() Event

why? -_-!!!!!!


Now the question is
How to catch the redraw event of Flash control,
and add some extra code in the redraw handle function of flash control

Sincerely
QuestionDialog and Propertypage question? Pin
Rangarajan Varadan27-Sep-08 16:48
Rangarajan Varadan27-Sep-08 16:48 
QuestionWhat is the difference among the OnClose(),OnDestroy() and the DestroyWindow()? Pin
aygrhnwms30427-Sep-08 16:32
aygrhnwms30427-Sep-08 16:32 
QuestionRe: What is the difference among the OnClose(),OnDestroy() and the DestroyWindow()? Pin
David Crow27-Sep-08 16:38
David Crow27-Sep-08 16:38 
AnswerRe: What is the difference among the OnClose(),OnDestroy() and the DestroyWindow()? Pin
aygrhnwms30427-Sep-08 21:02
aygrhnwms30427-Sep-08 21:02 
AnswerRe: What is the difference among the OnClose(),OnDestroy() and the DestroyWindow()? Pin
Ali Tavakol28-Sep-08 4:47
Ali Tavakol28-Sep-08 4:47 
AnswerRe: What is the difference among the OnClose(),OnDestroy() and the DestroyWindow()? Pin
Michael Dunn28-Sep-08 12:34
sitebuilderMichael Dunn28-Sep-08 12:34 
Questionreading text file Pin
nomi khan27-Sep-08 12:55
nomi khan27-Sep-08 12:55 
AnswerRe: reading text file Pin
David Crow27-Sep-08 16:40
David Crow27-Sep-08 16:40 
AnswerRe: reading text file Pin
Hamid_RT29-Sep-08 7:31
Hamid_RT29-Sep-08 7:31 
QuestionMessage Queues for MFC windows classes Pin
sawerr27-Sep-08 7:51
sawerr27-Sep-08 7:51 
AnswerRe: Message Queues for MFC windows classes Pin
Mark Salsbery27-Sep-08 8:24
Mark Salsbery27-Sep-08 8:24 
GeneralRe: Message Queues for MFC windows classes Pin
sawerr27-Sep-08 9:58
sawerr27-Sep-08 9:58 
GeneralRe: Message Queues for MFC windows classes Pin
Mark Salsbery27-Sep-08 10:08
Mark Salsbery27-Sep-08 10:08 
GeneralRe: Message Queues for MFC windows classes Pin
sawerr27-Sep-08 10:46
sawerr27-Sep-08 10:46 
Questionan always-wrong password Pin
Joseph Marzbani27-Sep-08 4:50
Joseph Marzbani27-Sep-08 4:50 
AnswerRe: an always-wrong password Pin
Paul Conrad27-Sep-08 7:18
professionalPaul Conrad27-Sep-08 7:18 
AnswerRe: an always-wrong password Pin
Iain Clarke, Warrior Programmer27-Sep-08 11:23
Iain Clarke, Warrior Programmer27-Sep-08 11:23 

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.