Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CArray of structs? Pin
Dan Savilonis6-Jun-03 12:00
Dan Savilonis6-Jun-03 12:00 
GeneralRe: CArray of structs? Pin
Anonymous6-Jun-03 3:08
Anonymous6-Jun-03 3:08 
GeneralClistCtrl control Pin
modular5-Jun-03 18:14
modular5-Jun-03 18:14 
GeneralRe: ClistCtrl control Pin
Ravi Bhavnani5-Jun-03 18:37
professionalRavi Bhavnani5-Jun-03 18:37 
GeneralRe: ClistCtrl control Pin
Ernesto D.5-Jun-03 22:47
Ernesto D.5-Jun-03 22:47 
QuestionHow to realize a Sequential-Verify test on floppy disk Pin
FlyingDancer5-Jun-03 17:33
FlyingDancer5-Jun-03 17:33 
QuestionHow to Display special document Pin
storein5-Jun-03 16:30
storein5-Jun-03 16:30 
AnswerRe: How to Display special document Pin
Roger Allen6-Jun-03 10:39
Roger Allen6-Jun-03 10:39 
You need to call MDIActive() on the view of the document you want to be active. If your in doc5, you can get a pointer to doc1 through the CDocTemplate object

CDocTemplate *pTemplate = GetDocTemplate();

iterate it to get the correct document pointer using GetFirstDocPosition() and GetNextDoc(). From there you can use the GetFirstViewPosition() and GetNextView() to get the view for the document you want to active. If you use GetParent() on this and cast it to a CChildFrm object I think you can call MDIActivate on that.


This is all from memory, so some or all of the steps may be slightly incorrect.

Hope its of help.


Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralRe: How to Display special document Pin
storein8-Jun-03 14:56
storein8-Jun-03 14:56 
GeneralAbout ActiveX Control Pin
wzw5-Jun-03 15:21
wzw5-Jun-03 15:21 
GeneralAbout Progress Control (MFC) Pin
jcpooh5-Jun-03 15:20
jcpooh5-Jun-03 15:20 
GeneralRe: About Progress Control (MFC) Pin
FlyingDancer5-Jun-03 15:55
FlyingDancer5-Jun-03 15:55 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 16:00
jcpooh5-Jun-03 16:00 
GeneralRe: About Progress Control (MFC) Pin
FlyingDancer5-Jun-03 16:37
FlyingDancer5-Jun-03 16:37 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 16:58
jcpooh5-Jun-03 16:58 
GeneralRe: About Progress Control (MFC) Pin
FlyingDancer5-Jun-03 17:22
FlyingDancer5-Jun-03 17:22 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 18:26
jcpooh5-Jun-03 18:26 
GeneralSubmenu MF_GREYOUT and MF_ENABLE Pin
adonisv5-Jun-03 11:55
adonisv5-Jun-03 11:55 
GeneralRe: Submenu MF_GREYOUT and MF_ENABLE Pin
Michael Dunn5-Jun-03 15:01
sitebuilderMichael Dunn5-Jun-03 15:01 
GeneralRe: Submenu MF_GREYOUT and MF_ENABLE Pin
Toni785-Jun-03 21:34
Toni785-Jun-03 21:34 
GeneralUpdating Cut, Copy, Paste on toolbar Pin
Steven M Hunt5-Jun-03 10:53
Steven M Hunt5-Jun-03 10:53 
GeneralRe: Updating Cut, Copy, Paste on toolbar Pin
valikac5-Jun-03 12:56
valikac5-Jun-03 12:56 
GeneralC++ code for derivation and integration Pin
zakimurtaza5-Jun-03 9:14
zakimurtaza5-Jun-03 9:14 
GeneralRe: C++ code for derivation and integration Pin
Andrew Walker5-Jun-03 22:22
Andrew Walker5-Jun-03 22:22 
GeneralRemoving focus from button in dlg-based app Pin
Vikram A Punathambekar5-Jun-03 9:12
Vikram A Punathambekar5-Jun-03 9:12 

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.