Click here to Skip to main content
16,012,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to retrieve data frm ini file & display in a combo? Pin
Hamid_RT29-May-07 0:18
Hamid_RT29-May-07 0:18 
QuestionCreating Access Data Project(ADP) file Pin
aaaan28-May-07 20:15
aaaan28-May-07 20:15 
Questionvisual studio- pls [modified] Pin
saisp28-May-07 20:15
saisp28-May-07 20:15 
AnswerRe: visual studio- pls Pin
Hamid_RT29-May-07 1:12
Hamid_RT29-May-07 1:12 
QuestionWS_POPUP style windows Pin
HakunaMatada28-May-07 19:55
HakunaMatada28-May-07 19:55 
AnswerRe: WS_POPUP style windows Pin
Naveen28-May-07 20:00
Naveen28-May-07 20:00 
GeneralRe: WS_POPUP style windows Pin
HakunaMatada28-May-07 21:04
HakunaMatada28-May-07 21:04 
GeneralRe: WS_POPUP style windows Pin
Naveen28-May-07 21:15
Naveen28-May-07 21:15 
HakunaMatada wrote:
I believe that every window will have its own message loop


No. Only one meesage loop will be there. When a window is created, there will no message loop. we have to explicitly write the message after creating the function( MFC is internally doing this). In the MainFrame case you said the sequence will be...

1. Create MainFrame
2. Create 5 popup window
3. Start the message loop
     while( GetMessage())// this loop is normally called as message loop<br />
{<br />
	TranslateMessage();<br />
	DispatchMessage();<br />
}


you can find this message loop in the CWinThread::PumpMessage() function.

nave

GeneralRe: WS_POPUP style windows Pin
HakunaMatada28-May-07 21:42
HakunaMatada28-May-07 21:42 
GeneralRe: WS_POPUP style windows Pin
Naveen28-May-07 21:53
Naveen28-May-07 21:53 
GeneralRe: WS_POPUP style windows Pin
HakunaMatada28-May-07 23:23
HakunaMatada28-May-07 23:23 
AnswerRe: WS_POPUP style windows Pin
jhwurmbach28-May-07 22:34
jhwurmbach28-May-07 22:34 
GeneralRe: WS_POPUP style windows Pin
HakunaMatada28-May-07 23:36
HakunaMatada28-May-07 23:36 
QuestionNtQueryInformationFile Pin
nitin328-May-07 19:39
nitin328-May-07 19:39 
AnswerRe: NtQueryInformationFile Pin
Naveen28-May-07 19:48
Naveen28-May-07 19:48 
GeneralRe: NtQueryInformationFile Pin
nitin328-May-07 19:54
nitin328-May-07 19:54 
GeneralRe: NtQueryInformationFile Pin
Naveen28-May-07 19:59
Naveen28-May-07 19:59 
AnswerRe: NtQueryInformationFile Pin
Hamid_RT28-May-07 20:05
Hamid_RT28-May-07 20:05 
Questioncreating submenu for a menu Pin
prithaa28-May-07 19:28
prithaa28-May-07 19:28 
AnswerRe: creating submenu for a menu Pin
nitin328-May-07 19:50
nitin328-May-07 19:50 
AnswerRe: creating submenu for a menu Pin
Naveen28-May-07 19:53
Naveen28-May-07 19:53 
GeneralRe: creating submenu for a menu Pin
prithaa29-May-07 0:06
prithaa29-May-07 0:06 
GeneralRe: creating submenu for a menu Pin
Naveen29-May-07 0:31
Naveen29-May-07 0:31 
GeneralRe: creating submenu for a menu Pin
prithaa29-May-07 1:34
prithaa29-May-07 1:34 
GeneralRe: creating submenu for a menu Pin
Naveen29-May-07 14:57
Naveen29-May-07 14: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.