Click here to Skip to main content
15,885,876 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
I want the message map structure in MFC and also where the first message is comming from and how it is forwarded to actual class.
Please provide me the documentation for this. I also want to know the execution flow of MDI i.e. how the frame is created and how the view is created & attached.

I also want to know about the document view architecture in mfc.
Posted
Updated 14-Dec-10 20:19pm
v2

// Please provide me the documentation for this

You could start here[^] :)
 
Share this answer
 
>>I want the message map structure in MFC and also where the first message is comming from and how it is forwarded to actual class. Please provide me the documentation for this.

These things are not 'documented' beyond a reasonable extent, as they're the internals of the framework. I reckon reading most of the details of the workings of the framework in the book "MFC Internals", which you may want to give a read.

>> I also want to know the execution flow of MDI i.e. how the frame is created and how the view is created & attached.

Since MFC comes with source code, you could always single-step the code to see what's happening.

>>I also want to know about the document view architecture in mfc.

I'd recommend the book "Programming Windows with MFC" by Jeff Prosise.
 
Share this answer
 
v4
Comments
patilvaibhavrao 15-Dec-10 4:22am    
acrually when the frame widow ,view & document is created & how the was connected to each other
patilvaibhavrao 15-Dec-10 4:26am    
also i want more about the information of mfc classes & methods of that classes if you know the documentation please provide me also i want to crate one my own control. so please provide me the information how can i start it.
Rajesh R Subramanian 15-Dec-10 4:53am    
Seriously, read a good book on MFC.
patilvaibhavrao 15-Dec-10 5:23am    
please give me some names of books that is good for me
Rajesh R Subramanian 15-Dec-10 6:10am    
"Programming Windows with MFC" by Jeff Prosise
"MFC Internals: Inside the Microsoft(c) Foundation Class Architecture" by George Shepherd and Scott Wingo
bleedingfingers gave you recommendation for another book - look at his answer.
What Rajesh said is correct. These aren't documented, so you would not have much luck looking for that on the net. (I could be wrong but when I started out, I didn't find any.)

However certain books on MFC like Mike Blaczszak's Professional MFC, and not necessarily the "internals" series, do provide some understanding on the implementation in the starting chapters that introduce the framework. That together with stepping through the code would help elucidate the flow.
 
Share this answer
 
Comments
patilvaibhavrao 15-Dec-10 6:39am    
please me provide the mfc basic & advance documentation Or Books Or Sites
For how MFC works a good introduction is:

Paul DiLascia - "Meandering Through the Maze of MFC Message and Command Routing", MSJ July 1995.

It was available online yonks ago and it might still be somewhere. While I'm on the subject of Paul DiLascia he wrote an excellent book on writing Windows application frameworks:

Paul DiLascia - "Windows++: Writing Reusable Windows Code in C++", Addison Wesley 1993 [IIRC]

While it won't tell you about MFC it'll give you some insight into the design decisions that the MFC programmers made when creating their library. One word of warning DiLascia's writing style isn't very formal and I've heard complaints from readers whose first language isn't English that his work is a bit idiomatic.

For how MDI works a good introduction is in:

Charles Petzold - "Programming Windows", Microsoft Press 2000.

I think every edition of his book from the Windows 3.1 edition (which must have come out in the early 90s and was the first version of windows to support MDI) had essentially the same coverage. Petzold's coding style is a bit archaic these days (actually it was a bit archaic in the 90s, even for C programming) but his descriptions of how to fit programs together isn't bad.

On the other books recommended here... Shepherd and Wingo is okay as a read, but it dishes out too much attention to OLE and is a bit superficial on how the core library works in places. Prosise's book is a bit like eating sandpaper - his writing style is a really dry which hides some decent technical content. It's a book I've never managed to read cover to cover without wanting death to take me.

Cheers,

Ash
 
Share this answer
 
Comments
patilvaibhavrao 16-Dec-10 0:40am    
i see the site thanks but it gives only message handlinmg details in MFC can tou provide me Documentation for classes & it methods of mfc

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900