Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 19:36
Vadim Tabakman14-Jun-04 19:36 
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala14-Jun-04 20:00
Mr Bose Dayala14-Jun-04 20:00 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 20:29
Vadim Tabakman14-Jun-04 20:29 
GeneralRe: Sorting date with CListCtrl Pin
David Crow15-Jun-04 2:43
David Crow15-Jun-04 2:43 
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala15-Jun-04 17:02
Mr Bose Dayala15-Jun-04 17:02 
GeneralRe: Sorting date with CListCtrl Pin
David Crow16-Jun-04 2:46
David Crow16-Jun-04 2:46 
GeneralTraversing the views Pin
Poorniselva14-Jun-04 18:43
Poorniselva14-Jun-04 18:43 
GeneralRe: Traversing the views Pin
Vadim Tabakman14-Jun-04 19:00
Vadim Tabakman14-Jun-04 19:00 
Did you try :
CWinApp *pApp = AfxGetApp();
if(pApp)
{
  POSITION pos = pApp->GetFirstDocTemplatePosition();
  while(pos != NULL)
  {
    CDocTemplate *pDocTemplate = pApp->GetNextDocTemplate(pos);

    if(pDocTemplate )
    {
      POSITION pos2 = pDocTemplate->GetFirstDocPosition();
      while(pos2 != NULL)
      {
        CDocument *pDoc = pDocTemplate->GetNextDoc(pos2);
        // should now have a document pointer
      }
    }
  }
}

the other option, is if you are in a view already,
you can just called GetDocument
CDocument *pDoc = GetDocument(); 

GeneralRe: Traversing the views Pin
Poorniselva14-Jun-04 19:40
Poorniselva14-Jun-04 19:40 
GeneralRe: Traversing the views Pin
V.15-Jun-04 2:23
professionalV.15-Jun-04 2:23 
QuestionHow to get memory info of a process not using PSAPI, thanks Pin
xingworld14-Jun-04 18:40
xingworld14-Jun-04 18:40 
AnswerRe: How to get memory info of a process not using PSAPI, thanks Pin
David Crow15-Jun-04 2:46
David Crow15-Jun-04 2:46 
AnswerRe: How to get memory info of a process not using PSAPI, thanks Pin
ThatsAlok16-Jun-04 1:46
ThatsAlok16-Jun-04 1:46 
GeneralSOS [about Genetic Algorithms] Pin
onetwone14-Jun-04 17:56
onetwone14-Jun-04 17:56 
GeneralRe: SOS [about Genetic Algorithms] Pin
Vadim Tabakman14-Jun-04 18:10
Vadim Tabakman14-Jun-04 18:10 
GeneralRe: SOS [about Genetic Algorithms] Pin
onetwone14-Jun-04 22:19
onetwone14-Jun-04 22:19 
Questionhow to get these Rect Area Pin
yingkou14-Jun-04 16:50
yingkou14-Jun-04 16:50 
AnswerRe: how to get these Rect Area Pin
Johan Rosengren14-Jun-04 20:53
Johan Rosengren14-Jun-04 20:53 
GeneralException handling - catch(...) Pin
Tom Archer14-Jun-04 16:40
Tom Archer14-Jun-04 16:40 
GeneralRe: Exception handling - catch(...) Pin
Johnny ²14-Jun-04 21:19
Johnny ²14-Jun-04 21:19 
GeneralRe: Exception handling - catch(...) Pin
V.14-Jun-04 21:45
professionalV.14-Jun-04 21:45 
GeneralRe: Exception handling - catch(...) Pin
toxcct14-Jun-04 22:11
toxcct14-Jun-04 22:11 
GeneralSending messages with ::PostMessage Pin
kfaday14-Jun-04 16:32
kfaday14-Jun-04 16:32 
GeneralRe: Sending messages with ::PostMessage Pin
Vadim Tabakman14-Jun-04 16:38
Vadim Tabakman14-Jun-04 16:38 
GeneralRe: Sending messages with ::PostMessage Pin
kfaday14-Jun-04 17:19
kfaday14-Jun-04 17:19 

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.