Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Graphis::FillRectangle, brush align problem Pin
Nitheesh George7-May-08 21:02
Nitheesh George7-May-08 21:02 
Questionwhy SYSTEMTIME doesn't return Hour?? Pin
nintendoWii7-May-08 14:15
nintendoWii7-May-08 14:15 
AnswerRe: why SYSTEMTIME doesn't return Hour?? Pin
Christopher Duncan7-May-08 14:27
Christopher Duncan7-May-08 14:27 
GeneralRe: why SYSTEMTIME doesn't return Hour?? Pin
nintendoWii7-May-08 14:49
nintendoWii7-May-08 14:49 
GeneralRe: why SYSTEMTIME doesn't return Hour?? Pin
Naveen7-May-08 14:54
Naveen7-May-08 14:54 
GeneralRe: why SYSTEMTIME doesn't return Hour?? Pin
Christopher Duncan7-May-08 19:10
Christopher Duncan7-May-08 19:10 
QuestionRe: why SYSTEMTIME doesn't return Hour?? Pin
David Crow8-May-08 4:34
David Crow8-May-08 4:34 
QuestionIWebBrowser2->Navigate and IE7 tabs Pin
Christopher Duncan7-May-08 14:14
Christopher Duncan7-May-08 14:14 
Since IE7 provides tabs and yet, curiously, no tab API, I'm back in the all too familiar land of hacks and workarounds. Here's the current little jewel I'm grappling with. I navigate to a new page via IWebBrowser2::Navigate, specifying the flag to open in a new tab. This is a toolbar project, and IE actually creates a new instance for each tab.

Here's the problem. Normally, you'd check DISPID_DOCUMENTCOMPLETE and get the current url to know where you are. However, in this scenario, the url I've called with Navigate in tab 1 gets domain level redirected to a different domain / url in the destination tab 2.

What I need to know in the context of the new tab is the original url that was specified in the first tab. Unfortunately, none of the DISPID_... events I've tested allow me to determine what the original intent was before the redirect. At any point where I can get the current doc for this tab, it's already showing the domain redirect, not the original request. Given that there can be multiple tabs open, I haven't figured out any way for tab 2 to communicate with tab 1.

Any ideas on how to suss this out?

Thanks,


AnswerRe: IWebBrowser2->Navigate and IE7 tabs Pin
Rajkumar R7-May-08 20:08
Rajkumar R7-May-08 20:08 
GeneralRe: IWebBrowser2->Navigate and IE7 tabs Pin
Christopher Duncan8-May-08 5:30
Christopher Duncan8-May-08 5:30 
AnswerRe: IWebBrowser2->Navigate and IE7 tabs [modified] Pin
Rajkumar R8-May-08 6:08
Rajkumar R8-May-08 6:08 
GeneralRe: IWebBrowser2->Navigate and IE7 tabs Pin
Christopher Duncan8-May-08 7:24
Christopher Duncan8-May-08 7:24 
Questionhow can I programmatically enable "File & Printer sharing for Microsoft Networks" ? Pin
oncer7-May-08 12:08
oncer7-May-08 12:08 
QuestionStrings in Studio 2005 v. Studio 6.0 Pin
john john mackey7-May-08 9:19
john john mackey7-May-08 9:19 
AnswerRe: Strings in Studio 2005 v. Studio 6.0 Pin
Mark Salsbery7-May-08 9:56
Mark Salsbery7-May-08 9:56 
GeneralRe: Strings in Studio 2005 v. Studio 6.0 Pin
john john mackey7-May-08 10:19
john john mackey7-May-08 10:19 
QuestionApp which would work on every Windows system Pin
Lutosław7-May-08 7:42
Lutosław7-May-08 7:42 
AnswerRe: App which would work on every Windows system Pin
CPallini7-May-08 8:14
mveCPallini7-May-08 8:14 
AnswerRe: App which would work on every Windows system Pin
David Crow7-May-08 8:21
David Crow7-May-08 8:21 
QuestionOverriding the maximize button for the main window in a MDI application Pin
berger_the_great7-May-08 5:00
berger_the_great7-May-08 5:00 
AnswerRe: Overriding the maximize button for the main window in a MDI application Pin
Randor 7-May-08 6:00
professional Randor 7-May-08 6:00 
GeneralRe: Overriding the maximize button for the main window in a MDI application Pin
berger_the_great9-May-08 5:16
berger_the_great9-May-08 5:16 
QuestionHow to Get a TCHAR into a CString? Pin
Larry Mills Sr7-May-08 4:48
Larry Mills Sr7-May-08 4:48 
AnswerRe: How to Get a TCHAR into a CString? Pin
toxcct7-May-08 4:54
toxcct7-May-08 4:54 
AnswerRe: How to Get a TCHAR into a CString? Pin
CPallini7-May-08 5:06
mveCPallini7-May-08 5:06 

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.