Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 9:36
Mark_Murphy14-Sep-06 9:36 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 9:39
Zac Howland14-Sep-06 9:39 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 10:05
Mark_Murphy14-Sep-06 10:05 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 10:29
Eric Dahlvang14-Sep-06 10:29 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 11:45
Mark_Murphy14-Sep-06 11:45 
QuestionMiltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 5:55
mostafa_pasha14-Sep-06 5:55 
AnswerRe: Miltiple CDocument & handle massage! Pin
Jun Du14-Sep-06 7:06
Jun Du14-Sep-06 7:06 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 8:58
mostafa_pasha14-Sep-06 8:58 
i change order but nothing happen!
i try to search to how order for handling messages!

for MDI:
1)active view object
2)the document object for the active document
3)the document template object for active document!!!
4)the frame window object of active view
5) main frame window object
6)the application object

// Thanks Ivor Horton's book!

for sdi because have one active frame it is obviously what order is!

in my code i have Dockable window that create dynamically .
in my code with CCreateContext & CFrameWnd::Create... create Frame & related view & attach them to document dynamically!
it is seems that when i create new Frame can not be active frame because after i create pane i
get active view for MDI code such that:

<br />
CMDIFrameWnd *pFrame1 = <br />
             (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;<br />
<br />
// Get the active MDI child window.<br />
    CMDIChildWnd *pChild = <br />
             (CMDIChildWnd *) pFrame1->GetActiveFrame();<br />
<br />
// or CMDIChildWnd *pChild = pFrame->MDIGetActive();<br />
<br />
// Get the active view attached to the active MDI child<br />
// window.<br />
CView * pView  = pChild->GetActiveView();<br />


after debug i see pView is kind of another view that i create for pane!!!!

i try to active new frame with pFrame->GetParentFrame()->ActiveFrame(SW_RESTORE);

but nothing happen.
i have tree view class & two Document class & three template.
AnswerRe: Miltiple CDocument & handle massage! Pin
Sam Hobbs14-Sep-06 7:52
Sam Hobbs14-Sep-06 7:52 
AnswerRe: Miltiple CDocument & handle massage! Pin
PJ Arends14-Sep-06 8:39
professionalPJ Arends14-Sep-06 8:39 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 12:38
mostafa_pasha14-Sep-06 12:38 
QuestionConver 2005 to 2003 Pin
Matthew R. Miller14-Sep-06 5:39
Matthew R. Miller14-Sep-06 5:39 
AnswerRe: Conver 2005 to 2003 Pin
Joe Woodbury14-Sep-06 7:10
professionalJoe Woodbury14-Sep-06 7:10 
QuestionSurround Mixer Pin
lkm98514-Sep-06 5:18
lkm98514-Sep-06 5:18 
QuestionDynamic funtion calls from DLLs [modified] Pin
DanielRehn14-Sep-06 4:43
DanielRehn14-Sep-06 4:43 
AnswerRe: Dynamic funtion calls from DLLs Pin
ThatsAlok14-Sep-06 21:17
ThatsAlok14-Sep-06 21:17 
GeneralRe: Dynamic funtion calls from DLLs Pin
DanielRehn14-Sep-06 21:44
DanielRehn14-Sep-06 21:44 
Questionsubclassing Pin
Waldermort14-Sep-06 4:41
Waldermort14-Sep-06 4:41 
AnswerRe: subclassing Pin
Cedric Moonen14-Sep-06 4:46
Cedric Moonen14-Sep-06 4:46 
GeneralRe: subclassing Pin
Waldermort14-Sep-06 5:30
Waldermort14-Sep-06 5:30 
AnswerRe: subclassing Pin
Jun Du14-Sep-06 6:14
Jun Du14-Sep-06 6:14 
AnswerRe: subclassing Pin
ThatsAlok14-Sep-06 21:18
ThatsAlok14-Sep-06 21:18 
AnswerRe: subclassing Pin
ThatsAlok14-Sep-06 21:34
ThatsAlok14-Sep-06 21:34 
QuestionConsole Input Saved To Text File !!!!!!! New To C++ Pin
Mark_Murphy14-Sep-06 3:42
Mark_Murphy14-Sep-06 3:42 
AnswerRe: Console Input Saved To Text File !!!!!!! New To C++ Pin
Zac Howland14-Sep-06 3:57
Zac Howland14-Sep-06 3:57 

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.