Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XP Visual Styles / Toolbar Backgrounds Pin
Michael Dunn5-Jun-04 5:32
sitebuilderMichael Dunn5-Jun-04 5:32 
GeneralC++ + Delphi Pin
Ni@m5-Jun-04 0:38
Ni@m5-Jun-04 0:38 
GeneralRe: C++ + Delphi Pin
bikram singh5-Jun-04 4:24
bikram singh5-Jun-04 4:24 
GeneralRe: C++ + Delphi Pin
palbano5-Jun-04 16:38
palbano5-Jun-04 16:38 
GeneralImplementing span tag Pin
Member 5281555-Jun-04 0:09
Member 5281555-Jun-04 0:09 
GeneralUsing span tag Pin
Member 5281554-Jun-04 23:32
Member 5281554-Jun-04 23:32 
GeneralRe: Using span tag Pin
Johan Rosengren5-Jun-04 21:47
Johan Rosengren5-Jun-04 21:47 
GeneralHelp! Navigating to a new page in an ATL Active X control Pin
mcase4-Jun-04 22:46
mcase4-Jun-04 22:46 
I wrote an Active X control in Visual C++ using only ATL (no MFC), for use on a web page. When the control ends, it needs to go to another web page within the SAME IE browser window.

I am currently using:
ShellExecute(NULL,"open",NewPage,NULL,NULL,SW_SHOW)
to do this.

The problem is that this opens the new web page (whose URL is NewPage) in the default Browser, which isn't always always IE (it might be Netscape for example). It also opens a new IE window if the user has unselected "Reuse windows for launching shortcuts" in their IE Internet options. The most common problem, however, is that it opens a new "tab" in "Slimbrowser" and other "tab" based browsers.

The only solution seems to be to get a "IServiceProvider" pointer to the current browser window, then I can do a "IServiceProvider::QueryService" to get a "IWebBrowser2" pointer, and then use "IWebBrowser2::Navigate" to go to the new URL in the same window. This technique is described here: http://msdn.microsoft.com/msdnmag/issues/01/06/c/

However, I can't for the life of me figure out how to get the "IServiceProvider" pointer. In the above mentioned article, they said they got the pointer from the "Active Accessibility SDK", but not how. Also, I would prefer not to have to use this SDK.

I'm sure there is an easier way to do this. Remember that I can't use MFC!

Thanks in advance for any help you can give me!


GeneralRe: Help! Navigating to a new page in an ATL Active X control Pin
Michael Dunn5-Jun-04 5:35
sitebuilderMichael Dunn5-Jun-04 5:35 
Generalskinmagic skinbuilder problem Pin
kanetheterrible14-Jun-04 21:47
kanetheterrible14-Jun-04 21:47 
General24bit color Bitmap to Grayscale Pin
Anonymous4-Jun-04 21:41
Anonymous4-Jun-04 21:41 
GeneralRe: 24bit color Bitmap to Grayscale Pin
grigsoft4-Jun-04 22:59
grigsoft4-Jun-04 22:59 
GeneralRe: 24bit color Bitmap to Grayscale Pin
cmk5-Jun-04 11:36
cmk5-Jun-04 11:36 
GeneralAccessing the CFormview controls Pin
aparajita4-Jun-04 20:57
aparajita4-Jun-04 20:57 
GeneralRe: Accessing the CFormview controls Pin
Johan Rosengren5-Jun-04 21:52
Johan Rosengren5-Jun-04 21:52 
QuestionRe: Accessing the CFormview controls Pin
fermisk30-Mar-09 22:12
fermisk30-Mar-09 22:12 
Generalmake image in one view visible based on input from another view Pin
elephantstar4-Jun-04 20:14
elephantstar4-Jun-04 20:14 
Questionbest way to allocate memory? Pin
nm_1144-Jun-04 19:48
nm_1144-Jun-04 19:48 
AnswerRe: best way to allocate memory? Pin
Johnny ²4-Jun-04 21:21
Johnny ²4-Jun-04 21:21 
AnswerRe: best way to allocate memory? Pin
Gary R. Wheeler5-Jun-04 3:25
Gary R. Wheeler5-Jun-04 3:25 
AnswerRe: best way to allocate memory? Pin
Paul Ranson5-Jun-04 11:27
Paul Ranson5-Jun-04 11:27 
QuestionHow can i Select item from CListCtrl by Mouse selection Pin
Zeeshan Bilal4-Jun-04 19:36
Zeeshan Bilal4-Jun-04 19:36 
AnswerRe: How can i Select item from CListCtrl by Mouse selection Pin
Ravi Bhavnani4-Jun-04 20:33
professionalRavi Bhavnani4-Jun-04 20:33 
QuestionHow can get embedded objects from a powerpoint slide and get its type? Pin
Fasial4-Jun-04 18:57
Fasial4-Jun-04 18:57 
GeneralTab Control Pin
Archer2824-Jun-04 18:19
Archer2824-Jun-04 18:19 

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.