Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > WINDOWS PROGRAMMING (NNTP) > How to access from one view to another in MDI?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 19th May 21:11
cffung
External User
 
Posts: 1
Default How to access from one view to another in MDI?


I am working on an MDI Splitter application and encountering some
view-to-view
access problem. Hope somebody can help.

I have a CView (called CGraphView) and CFormView (called CTextView)
displaying
data in graphic and text formats, respectively, in the upper and lower
pane of
a splitter frame (called CSplitFrame). A button (called
IDC_PRINTGRAPH_BTN) on
CFormView is meant to print what is displayed in the CView.

My question is:
How do I access the (over-rided) OnPreparePrint() function from my
IDC_PRINTGRAPH_BTN?
  Reply With Quote


  sponsored links


2 19th May 21:12
jiangsheng[microsoft mvp of vc++]
External User
 
Posts: 1
Default How to access from one view to another in MDI?


try to access it by shared do***ents and custom update hints.
use CDo***ent::UpdateAllViews and override CView::OnUpdate to communicate
between do***ent and views.

"CFF" <cffung@myrealbox.com> дʼ
news:2560187f.0408050729.55fcbcb3@posting.google.c om...
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666