Click here to Skip to main content
15,917,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading contents of other apps Window Pin
Hardy_Smith13-Mar-06 6:56
Hardy_Smith13-Mar-06 6:56 
QuestionRe: Reading contents of other apps Window Pin
David Crow13-Mar-06 7:02
David Crow13-Mar-06 7:02 
AnswerRe: Reading contents of other apps Window Pin
Hardy_Smith13-Mar-06 20:22
Hardy_Smith13-Mar-06 20:22 
GeneralRe: Reading contents of other apps Window Pin
David Crow14-Mar-06 3:14
David Crow14-Mar-06 3:14 
Questionwhat is different cdialog and cdialogbar? Pin
derek713-Mar-06 5:12
derek713-Mar-06 5:12 
AnswerRe: what is different cdialog and cdialogbar? Pin
toxcct13-Mar-06 5:17
toxcct13-Mar-06 5:17 
Questionhow to get cview or cdocment object pointer? Pin
derek713-Mar-06 5:10
derek713-Mar-06 5:10 
AnswerRe: how to get cview or cdocment object pointer? Pin
Hardy_Smith13-Mar-06 6:37
Hardy_Smith13-Mar-06 6:37 
First,

pos = AfxGetApp()->GetFirstDocTemplatePosition();
ASSERT(pos);
pTemplate=AfxGetApp()->GetNextDocTemplate(pos);
POSITION docpos=pTemplate->GetFirstDocPosition( );

get the first DocTemplate. Then you can enumerate your views.

CDocument *pDocument=NULL;
while (docpos)
{
pDocument = pTemplate->GetNextDoc(docpos);
ASSERT(pDocument);

POSITION viewpos = pDocument->GetFirstViewPosition();
while (viewpos != NULL)
{
...
}
}

Hope this helps,
Hardy.


GeneralRe: how to get cview or cdocment object pointer? Pin
derek713-Mar-06 16:18
derek713-Mar-06 16:18 
QuestionPassing large char array information to dll Pin
Blubbo13-Mar-06 4:24
Blubbo13-Mar-06 4:24 
AnswerRe: Passing large char array information to dll Pin
Cedric Moonen13-Mar-06 4:36
Cedric Moonen13-Mar-06 4:36 
QuestionLine Counter for VS 2005 Beta Pin
Priyank Bolia13-Mar-06 4:05
Priyank Bolia13-Mar-06 4:05 
AnswerRe: Line Counter for VS 2005 Beta Pin
toxcct13-Mar-06 4:22
toxcct13-Mar-06 4:22 
GeneralRe: Line Counter for VS 2005 Beta Pin
darkelv13-Mar-06 5:27
darkelv13-Mar-06 5:27 
GeneralRe: Line Counter for VS 2005 Beta Pin
toxcct13-Mar-06 5:30
toxcct13-Mar-06 5:30 
GeneralRe: Line Counter for VS 2005 Beta Pin
darkelv13-Mar-06 5:42
darkelv13-Mar-06 5:42 
GeneralRe: Line Counter for VS 2005 Beta Pin
toxcct13-Mar-06 5:47
toxcct13-Mar-06 5:47 
GeneralRe: Line Counter for VS 2005 Beta Pin
darkelv13-Mar-06 5:52
darkelv13-Mar-06 5:52 
GeneralRe: Line Counter for VS 2005 Beta Pin
toxcct13-Mar-06 5:53
toxcct13-Mar-06 5:53 
AnswerRe: Line Counter for VS 2005 Beta Pin
Ryan Binns13-Mar-06 17:19
Ryan Binns13-Mar-06 17:19 
QuestionDrivers and UNICODE_STRINGs Pin
Kharfax13-Mar-06 2:56
Kharfax13-Mar-06 2:56 
AnswerRe: Drivers and UNICODE_STRINGs Pin
Kharfax13-Mar-06 9:43
Kharfax13-Mar-06 9:43 
Questionexception in stl set class in Release mode Pin
Farhat Aisha13-Mar-06 2:28
Farhat Aisha13-Mar-06 2:28 
AnswerRe: exception in stl set class in Release mode Pin
Monty213-Mar-06 2:33
Monty213-Mar-06 2:33 
GeneralRe: exception in stl set class in Release mode Pin
Farhat Aisha13-Mar-06 2:37
Farhat Aisha13-Mar-06 2:37 

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.