Click here to Skip to main content
15,906,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString acting weird Pin
jhwurmbach9-Dec-02 4:28
jhwurmbach9-Dec-02 4:28 
QuestionHow to Notify Parent ? Pin
bumper7-Dec-02 12:56
bumper7-Dec-02 12:56 
AnswerRe: How to Notify Parent ? Pin
Nitron7-Dec-02 13:13
Nitron7-Dec-02 13:13 
GeneralRe: How to Notify Parent ? Pin
bumper7-Dec-02 22:59
bumper7-Dec-02 22:59 
AnswerRe: How to Notify Parent ? Pin
Joan M9-Dec-02 20:42
professionalJoan M9-Dec-02 20:42 
GeneralHandles to View Classes :: MFC Pin
valikac7-Dec-02 12:27
valikac7-Dec-02 12:27 
GeneralRe: Handles to View Classes :: MFC Pin
Christian Graus7-Dec-02 16:24
protectorChristian Graus7-Dec-02 16:24 
GeneralRe: Handles to View Classes :: MFC Pin
Roman Fadeyev8-Dec-02 0:39
Roman Fadeyev8-Dec-02 0:39 
If you mean sending to some views belonging to the same document, the way is to use

POSITION pos = GetFirstViewPosition();
  while (pos != NULL) {
    CView* pView = GetNextView(pos);
 ...
}


For some documents use
CDocTemplate::GetFirstDocPosition/GetNextDoc and then - the code above

To enumerate all views of all documents of all types you can use
CDocManager::GetFirstDocTemplatePosition/GetNextDocTemplate, then see above

How to get instance of docmanager see CWinApp documentation. If my memory doesn't fail me, CWinApp have a member m_pDocManager
GeneralRe: Handles to View Classes :: MFC Pin
valikac8-Dec-02 4:58
valikac8-Dec-02 4:58 
Questionplz ans? Pin
imran_rafique7-Dec-02 10:01
imran_rafique7-Dec-02 10:01 
AnswerRe: plz ans? Pin
Rickard Andersson207-Dec-02 11:47
Rickard Andersson207-Dec-02 11:47 
GeneralRe: plz ans? Pin
imran_rafique8-Dec-02 9:24
imran_rafique8-Dec-02 9:24 
GeneralAdvanced C++ Books Pin
monrobot137-Dec-02 8:55
monrobot137-Dec-02 8:55 
GeneralRe: Advanced C++ Books Pin
Jon Sagara7-Dec-02 9:17
Jon Sagara7-Dec-02 9:17 
GeneralRe: Advanced C++ Books Pin
monrobot137-Dec-02 9:49
monrobot137-Dec-02 9:49 
GeneralRe: Advanced C++ Books Pin
Jon Sagara7-Dec-02 10:07
Jon Sagara7-Dec-02 10:07 
GeneralRe: Advanced C++ Books Pin
Christian Graus7-Dec-02 11:36
protectorChristian Graus7-Dec-02 11:36 
GeneralRe: Advanced C++ Books Pin
Rickard Andersson207-Dec-02 11:59
Rickard Andersson207-Dec-02 11:59 
GeneralRe: Advanced C++ Books Pin
valikac7-Dec-02 12:29
valikac7-Dec-02 12:29 
GeneralRe: Advanced C++ Books Pin
Nemanja Trifunovic7-Dec-02 17:11
Nemanja Trifunovic7-Dec-02 17:11 
GeneralRe: Advanced C++ Books Pin
monrobot138-Dec-02 12:06
monrobot138-Dec-02 12:06 
GeneralRe: Advanced C++ Books Pin
Joe Woodbury9-Dec-02 19:39
professionalJoe Woodbury9-Dec-02 19:39 
GeneralC++ Datatypes and OS Datatypes :: C++ Pin
valikac7-Dec-02 8:40
valikac7-Dec-02 8:40 
GeneralRe: C++ Datatypes and OS Datatypes :: C++ Pin
Alvaro Mendez7-Dec-02 10:23
Alvaro Mendez7-Dec-02 10:23 
GeneralRe: C++ Datatypes and OS Datatypes :: C++ Pin
Maximilien7-Dec-02 10:41
Maximilien7-Dec-02 10:41 

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.