Click here to Skip to main content
16,015,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LVITEM memory leak Pin
RChin22-Feb-05 0:45
RChin22-Feb-05 0:45 
GeneralRe: LVITEM memory leak Pin
ralfeus22-Feb-05 2:25
ralfeus22-Feb-05 2:25 
GeneralRe: LVITEM memory leak Pin
RChin22-Feb-05 3:00
RChin22-Feb-05 3:00 
GeneralRe: LVITEM memory leak Pin
Tim Smith22-Feb-05 4:09
Tim Smith22-Feb-05 4:09 
Questionarabic in menu? Pin
Anonymous21-Feb-05 21:51
Anonymous21-Feb-05 21:51 
AnswerRe: arabic in menu? Pin
ThatsAlok21-Feb-05 22:14
ThatsAlok21-Feb-05 22:14 
GeneralIterate view Pin
Yulianto.21-Feb-05 19:23
Yulianto.21-Feb-05 19:23 
GeneralRe: Iterate view Pin
Blake Miller22-Feb-05 4:51
Blake Miller22-Feb-05 4:51 
Is it possible that an app is called MDI because it is a multiple DOCUMENT Interface Roll eyes | :rolleyes:

However, I think that each of your documents only has one view associated with it, unless you are certain you opened up multiple VIEWS on each document.

You need nested loops to get all views in the program...

Firstly, use CWinApp::GetFirstDocTemplatePosition to get first document template position in the program, and iterate each of the found document templates.
Secondly, use CDocTemplate::GetFirstDocPosition to get first document of the currently iterated document template, and iterate all the documents associated with the currently iterated doeument template.
Thirdly, use CDocument::GetFirstViewPosition to begin iteration of each view associated with the currently iterated document.

In this way, you will get a pointer to each 'view' in your MDI program.

GeneralRe: Iterate view Pin
Yulianto.22-Feb-05 14:26
Yulianto.22-Feb-05 14:26 
GeneralRe: Iterate view Pin
Blake Miller23-Feb-05 3:56
Blake Miller23-Feb-05 3:56 
GeneralRe: Iterate view Pin
Yulianto.23-Feb-05 14:49
Yulianto.23-Feb-05 14:49 
QuestionWhat are the differences between ordinary variables, references and pointer variables? Pin
jahfer21-Feb-05 19:13
jahfer21-Feb-05 19:13 
AnswerRe: What are the differences between ordinary variables, references and pointer variables? Pin
Ravi Bhavnani22-Feb-05 2:04
professionalRavi Bhavnani22-Feb-05 2:04 
GeneralTwo Dimensional Array using Vector Class Pin
OutlawTornNMT21-Feb-05 18:52
OutlawTornNMT21-Feb-05 18:52 
GeneralRe: Two Dimensional Array using Vector Class Pin
Kevin McFarlane22-Feb-05 2:14
Kevin McFarlane22-Feb-05 2:14 
GeneralRelease Handle Pin
SoftEngi21-Feb-05 18:37
SoftEngi21-Feb-05 18:37 
GeneralToolbar in ActiveX Control Pin
Anand for every one21-Feb-05 18:35
Anand for every one21-Feb-05 18:35 
GeneralRe: Toolbar in ActiveX Control Pin
jahfer21-Feb-05 19:29
jahfer21-Feb-05 19:29 
GeneralRe: Toolbar in ActiveX Control Pin
Sheng Jiang 蒋晟22-Feb-05 13:31
Sheng Jiang 蒋晟22-Feb-05 13:31 
GeneralRe: Toolbar in ActiveX Control Pin
Anand for every one7-Mar-05 19:07
Anand for every one7-Mar-05 19:07 
GeneralRe: Toolbar in ActiveX Control Pin
Sheng Jiang 蒋晟10-Mar-05 13:34
Sheng Jiang 蒋晟10-Mar-05 13:34 
Questionhow to create an icon for dll file? Pin
includeh1021-Feb-05 17:46
includeh1021-Feb-05 17:46 
AnswerRe: how to create an icon for dll file? Pin
Blake Miller22-Feb-05 4:56
Blake Miller22-Feb-05 4:56 
GeneralInkvoke web service from C++ through SoapClient Pin
Member 80845921-Feb-05 15:23
Member 80845921-Feb-05 15:23 
Generalreading and outputting data from a binary file... Pin
Moochie521-Feb-05 14:36
Moochie521-Feb-05 14:36 

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.