Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Programmatically Send a menu command Pin
Michael Dunn22-Feb-02 16:26
sitebuilderMichael Dunn22-Feb-02 16:26 
GeneralRe: Programmatically Send a menu command Pin
22-Feb-02 16:32
suss22-Feb-02 16:32 
Generalwriting to a file Pin
Steve L.22-Feb-02 14:32
Steve L.22-Feb-02 14:32 
GeneralRe: writing to a file Pin
22-Feb-02 16:29
suss22-Feb-02 16:29 
QuestionResource ID for standard "drop" cursor? Pin
David Fleming22-Feb-02 12:14
David Fleming22-Feb-02 12:14 
AnswerRe: Resource ID for standard "drop" cursor? Pin
Henry Jacobs22-Feb-02 12:58
Henry Jacobs22-Feb-02 12:58 
GeneralAnother MFC Doc/View Question Pin
Aaron Schaefer22-Feb-02 11:22
Aaron Schaefer22-Feb-02 11:22 
GeneralRe: Another MFC Doc/View Question Pin
Michael Dunn22-Feb-02 13:11
sitebuilderMichael Dunn22-Feb-02 13:11 
Use CDocument::GetFirstViewPosition() and GetNextView() to iterate through the open views. Something like this:
POSITION pos = AfxGetMainWnd()->GetActiveDocument()->GetFirstViewPosition();
 
  while ( NULL != pos )
    {
    CView* pView = AfxGetMainWnd()->GetActiveDocument()->GetNextView(pos);
 
    if ( pView->IsKindOf ( RUNTIME_CLASS(CTheViewYoureLookingFor) ))
      {
      CFrameWnd* pFrame = pView->GetParentFrame();
      
      pFrame->ShowWindow ( SW_SHOWMAXIMIZED );
      break;
      }
    }


--Mike--
Fetchez la vache!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.

GeneralMoving objects in GDI+ Pin
Mazdak22-Feb-02 10:57
Mazdak22-Feb-02 10:57 
GeneralRe: Moving objects in GDI+ Pin
Nish Nishant22-Feb-02 11:10
sitebuilderNish Nishant22-Feb-02 11:10 
GeneralRe: Moving objects in GDI+ Pin
Mazdak22-Feb-02 11:42
Mazdak22-Feb-02 11:42 
GeneralRe: Moving objects in GDI+ Pin
Mazdak22-Feb-02 11:55
Mazdak22-Feb-02 11:55 
GeneralRe: Moving objects in GDI+ Pin
Christian Graus22-Feb-02 21:35
protectorChristian Graus22-Feb-02 21:35 
GeneralMFC:: CString & Serialize ::C++ Pin
valikac22-Feb-02 10:33
valikac22-Feb-02 10:33 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
David Fedolfi22-Feb-02 10:54
David Fedolfi22-Feb-02 10:54 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
Michael Dunn22-Feb-02 13:16
sitebuilderMichael Dunn22-Feb-02 13:16 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
valikac22-Feb-02 16:50
valikac22-Feb-02 16:50 
GeneralDrawing Tools Pin
Flatline22-Feb-02 10:12
Flatline22-Feb-02 10:12 
GeneralRe: Drawing Tools Pin
Mazdak22-Feb-02 10:17
Mazdak22-Feb-02 10:17 
GeneralRe: Drawing Tools Pin
Christian Graus22-Feb-02 21:40
protectorChristian Graus22-Feb-02 21:40 
GeneralRe: Drawing Tools Pin
Flatline25-Feb-02 20:32
Flatline25-Feb-02 20:32 
GeneralRe: Drawing Tools Pin
Christian Graus26-Feb-02 10:49
protectorChristian Graus26-Feb-02 10:49 
GeneralRe: Drawing Tools Pin
Flatline1-Mar-02 9:37
Flatline1-Mar-02 9:37 
GeneralATL based spash screen Pin
koteswara22-Feb-02 9:45
koteswara22-Feb-02 9:45 
GeneralRe: ATL based spash screen Pin
Paul M Watt22-Feb-02 18:15
mentorPaul M Watt22-Feb-02 18:15 

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.