mfc >> CHTMLView's enigma

by Michael Shestero » Sun, 30 Nov 2003 16:49:06 GMT

Hello.

I create SDI application based on CHTMLView. My application behaves like IE.
But not quite. My site used JSESSION id cookie and pop-up frames. Well, I
read "HOWTO: Use the WebBrowser Control NewWindow2 Event"
http://support.microsoft.com/support/kb/articles/Q184/8/76.asp
It helps: a new pop-up frames got JSESSION ok.
But I still cannot download a pdf-file from a page! My view doesn't send
correct cookie within HTTP header when it asked for file. So I've got a
login-and-password form instead of this file.
Links inside HTML to those files are like this (iid parameter isn't related
to session id):
<a
href="login.jsp?url=newsp_pdf_mem.jsp&iid=007520031126000219">pdf</a></td>
I want then user click for file the standart question appears (Save, Open,
Cansel) or it just downloaded without any question.
I also whant forbit pop-up frames. I.e. let them always replace the original
frame.

Bye,
Shestero Michael




Similar Threads

1. Tip of the Day enigma

I am in the process of adding German to an application, and
have just got to needing to enlarge the Tip of the Day component
added by the MFC wizard, in order to fit the German words in.

For the life of me I can't work out how the size of the white background
rectangle is determined. Nothing in the dialog template seems to
affect its size. (I make everything bigger but the white area stays the
same size.) The size appears to come from:

void CTipDlg::OnPaint()
{
 CPaintDC dc(this); // device context for painting

 // Get paint area for the big static control
 CWnd* pStatic = GetDlgItem(IDC_BULB);
 CRect rect;
 pStatic->GetWindowRect(&rect);
 ScreenToClient(&rect);

 // Paint the background white.
 CBrush brush;
 brush.CreateStockObject(WHITE_BRUSH);
 dc.FillRect(rect, &brush);

.... but IDC_BULB is a small roughly icon sized 'Picture'

There's obviously a concept I'm missing here!
----------

The other puzzle is what sets the font size for the words:

Did you know...

which is much bigger than usual, but I can find no reference
to fonts in the code of the component.


2. Searching for something like CHtmlView inside VC++ - CSharp/C#

3. CHtmlView zoom in/out images

I am using CHtmlView.Navigate2 to to use the web viewer features inside of my 
application. This way I can have a simple viewer.
This it is working but some browser features are not available, for example 
I want zoom in/out images.
Directly in browser this works well but when from my application show the 
image but it is not possible zoom in/out the image.
It is possible enable these features?
Thanks & Regards,
Rui


4. urgent: Calling an MFC ActiveX dll hosting CHtmlView from C# Class Library

5. chtmlview image click event

override

CWnd::OnRButtonDown 

6. CHtmlView and javascript window.returnValue

7. Extracting XMLDom from CHTMLView

Created a simple CHtmlView based SDI using Mfc App Wizard.

I Have called navigate2() to render an XML File.

is there a way to extract IXMLDOMDocument* from the Dispatch contained in 
the view ? 


8. Open .txt file in notepad (Custom Browser - CHtmlView )