Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can't add 2 pointers Pin
Mark Salsbery17-Nov-06 13:54
Mark Salsbery17-Nov-06 13:54 
GeneralRe: can't add 2 pointers Pin
ddpn4217-Nov-06 14:21
ddpn4217-Nov-06 14:21 
GeneralRe: can't add 2 pointers Pin
Mark Salsbery17-Nov-06 14:34
Mark Salsbery17-Nov-06 14:34 
GeneralRe: can't add 2 pointers Pin
ddpn4217-Nov-06 15:45
ddpn4217-Nov-06 15:45 
GeneralRe: can't add 2 pointers Pin
Mark Salsbery17-Nov-06 16:01
Mark Salsbery17-Nov-06 16:01 
AnswerRe: can't add 2 pointers Pin
Jörgen Sigvardsson17-Nov-06 13:30
Jörgen Sigvardsson17-Nov-06 13:30 
GeneralRe: can't add 2 pointers Pin
ddpn4217-Nov-06 13:39
ddpn4217-Nov-06 13:39 
QuestionNewWindow2 problem event sink Pin
yokos117-Nov-06 12:24
yokos117-Nov-06 12:24 
Hello i have a problem with event sink. I need to contol a NewWindow when it pops-up (to change if its visible toolbar)
i'm not sure about pDispParams->rgvarg[1].pdispVal; parametr. SOmehow i dont have handle to the new window.
Please help...


Code for NEWWINDOW2 event:


HRESULT __stdcall DWebBrowserEventsImpl::Invoke(DISPID dispIdMember,
REFIID riid,
LCID lcid,
WORD wFlags,
DISPPARAMS __RPC_FAR *pDispParams,
VARIANT __RPC_FAR *pVarResult,
EXCEPINFO __RPC_FAR *pExcepInfo,
UINT __RPC_FAR *puArgErr)
{







if (dispIdMember == DISPID_NEWWINDOW2)
{
//event sink is working because i can get a test message every time a new window pops
//but somehow i cant control a new wondow ?
MessageBox(NULL,"TEST","TEST",NULL);


//////////////////////////////////////////////////////////// this part wont work ?
CComQIPtr< IWebBrowser2> Nwin= pDispParams->rgvarg[1].pdispVal;



Nwin->put_Visible(TRUE);
Nwin->put_MenuBar(TRUE);
Nwin->put_ToolBar(FALSE);



}






return NOERROR;
}
QuestionDirectShow VMR9 Window inside Direct3D interface Pin
Dustin Henry17-Nov-06 10:27
Dustin Henry17-Nov-06 10:27 
AnswerRe: DirectShow VMR9 Window inside Direct3D interface Pin
Mark Salsbery17-Nov-06 10:38
Mark Salsbery17-Nov-06 10:38 
QuestionGlobal Explicit Static Variables Pin
switang17-Nov-06 10:23
switang17-Nov-06 10:23 
AnswerRe: Global Explicit Static Variables Pin
Mark Salsbery17-Nov-06 10:26
Mark Salsbery17-Nov-06 10:26 
AnswerRe: Global Explicit Static Variables Pin
switang17-Nov-06 10:40
switang17-Nov-06 10:40 
GeneralRe: Global Explicit Static Variables Pin
Mark Salsbery17-Nov-06 10:47
Mark Salsbery17-Nov-06 10:47 
GeneralRe: Global Explicit Static Variables Pin
switang17-Nov-06 10:58
switang17-Nov-06 10:58 
AnswerRe: Global Explicit Static Variables Pin
lafleon17-Nov-06 13:16
lafleon17-Nov-06 13:16 
GeneralRe: Global Explicit Static Variables Pin
switang17-Nov-06 13:30
switang17-Nov-06 13:30 
QuestionSaving a queue in a file Pin
Kharfax17-Nov-06 9:10
Kharfax17-Nov-06 9:10 
AnswerRe: Saving a queue in a file Pin
Zac Howland17-Nov-06 9:44
Zac Howland17-Nov-06 9:44 
GeneralRe: Saving a queue in a file Pin
Kharfax17-Nov-06 9:50
Kharfax17-Nov-06 9:50 
GeneralRe: Saving a queue in a file Pin
Zac Howland17-Nov-06 9:56
Zac Howland17-Nov-06 9:56 
AnswerRe: Saving a queue in a file Pin
lafleon17-Nov-06 13:19
lafleon17-Nov-06 13:19 
AnswerRe: Saving a queue in a file Pin
Kharfax20-Nov-06 3:36
Kharfax20-Nov-06 3:36 
QuestionGDIObject leak in my MFC method Pin
earlgraham17-Nov-06 8:33
earlgraham17-Nov-06 8:33 
AnswerRe: GDIObject leak in my MFC method Pin
Steve Echols17-Nov-06 8:40
Steve Echols17-Nov-06 8:40 

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.