Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Issue with localtime() Pin
Yusuf9-Mar-09 13:42
Yusuf9-Mar-09 13:42 
AnswerRe: Issue with localtime() Pin
Don Rummelhart10-Mar-09 11:25
Don Rummelhart10-Mar-09 11:25 
QuestionPath of Root and Virtual directory in ISAPI ? Pin
mmayur9-Mar-09 8:35
mmayur9-Mar-09 8:35 
QuestionDoubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
sarathbabununna9-Mar-09 7:55
sarathbabununna9-Mar-09 7:55 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
David Crow9-Mar-09 8:26
David Crow9-Mar-09 8:26 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:36
Iain Clarke, Warrior Programmer10-Mar-09 1:36 
QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 
QuestionCHtmlView not displaying anything [modified] Pin
Brahmandcoder9-Mar-09 7:08
Brahmandcoder9-Mar-09 7:08 
Hi,
I have created splitter window ,one of the window is of type CFrameWnd which
creates a CHtmlView in it ,so the problem is that whenever Navigate2() (or
Navigate()) is called in OnInitialUpdate() the page is displayed ,but if I
call it in any other function (created by me) and which is called from
CFrameWnd window it does not display anything although OnDocumentComplete()
gets called but nothing is displayed.

here is the code:
To Create the view inside CFrameWnd where CBrowserView is CHtmlView derived
class.

BOOL CBrowserFrame::OnCreateClient(LPCREATESTRUCT lpcs,CCreateContext* 
pContext)
{
    // Create a contextt.
    CCreateContext context;
    pContext = &context;
    // Assign custom view.
  
    pContext->m_pNewViewClass = RUNTIME_CLASS(CBrowserView);

    // Create the view.
	pview = (CBrowserView *) CreateView(pContext, AFX_IDW_PANE_FIRST);
	((CMainFrame*)GetParentFrame())->pBView=pview;
    if (pview ==NULL)
        return FALSE;
   pview->Test(); //Nothing is displayed!!
    // Notify the view.
    pview->SendMessage(WM_INITIALUPDATE);
    SetActiveView(pview, FALSE);
	return CFrameWnd::OnCreateClient(lpcs,pContext);
    
}


In the CBrowserView:

void CBrowserView::OnInitialUpdate()
{
	Navigate2("http://localhost");
	CHtmlView::OnInitialUpdate();
}
void CBrowserView::OnDocumentComplete(LPCTSTR lpszURL)
{
	MessageBox("OnDocumentComplete()");
	CHtmlView::OnDocumentComplete(lpszURL);
}
void CBrowserView::Test()
{
	Navigate("http://www.google.com");
}
And I also want to draw something in this view is it possible using
CClientDC as I am not able to draw anything , and it seems as if the OnDraw()
function of a CHtmlView never gets called?
Please help me.

modified on Monday, March 9, 2009 11:38 PM

QuestionAccessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 6:36
ForNow9-Mar-09 6:36 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
BobInNJ9-Mar-09 7:32
BobInNJ9-Mar-09 7:32 
QuestionRe: Accessing Private member of a base Class from a Derived Class Pin
David Crow9-Mar-09 8:28
David Crow9-Mar-09 8:28 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:23
ForNow9-Mar-09 12:23 
GeneralRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:33
ForNow9-Mar-09 12:33 
QuestionI use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Astitva239-Mar-09 5:10
Astitva239-Mar-09 5:10 
AnswerRe: I use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Eytukan9-Mar-09 5:31
Eytukan9-Mar-09 5:31 
Generaloverlayered text Pin
Astitva239-Mar-09 5:57
Astitva239-Mar-09 5:57 
GeneralRe: overlayered text Pin
Eytukan9-Mar-09 6:03
Eytukan9-Mar-09 6:03 
GeneralRe: overlayered text Pin
Astitva239-Mar-09 8:05
Astitva239-Mar-09 8:05 
Questionunicode application Pin
tom groezer9-Mar-09 4:47
tom groezer9-Mar-09 4:47 
QuestionRe: unicode application Pin
David Crow9-Mar-09 4:49
David Crow9-Mar-09 4:49 
AnswerRe: unicode application Pin
Eytukan9-Mar-09 5:04
Eytukan9-Mar-09 5:04 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:03
tom groezer9-Mar-09 7:03 
GeneralRe: unicode application Pin
Eytukan9-Mar-09 7:35
Eytukan9-Mar-09 7:35 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:45
tom groezer9-Mar-09 7:45 
GeneralRe: unicode application Pin
Jeremy Falcon9-Mar-09 8:09
professionalJeremy Falcon9-Mar-09 8:09 

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.