Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Frustrated Pin
Saurabh.Garg11-Jun-06 2:26
Saurabh.Garg11-Jun-06 2:26 
GeneralRe: Frustrated Pin
antonaras11-Jun-06 21:28
antonaras11-Jun-06 21:28 
GeneralRe: Frustrated Pin
David Crow12-Jun-06 3:35
David Crow12-Jun-06 3:35 
Questionhelp with editable listview control Pin
Tara1410-Jun-06 22:55
Tara1410-Jun-06 22:55 
AnswerRe: help with editable listview control Pin
Hamid_RT11-Jun-06 0:58
Hamid_RT11-Jun-06 0:58 
GeneralRe: help with editable listview control Pin
Tara1411-Jun-06 1:58
Tara1411-Jun-06 1:58 
GeneralRe: help with editable listview control Pin
Hamid_RT11-Jun-06 2:35
Hamid_RT11-Jun-06 2:35 
QuestionMFC LoadFrame Bug [modified] Pin
fangzj10-Jun-06 22:10
fangzj10-Jun-06 22:10 
pFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, NULL);

as we know, this is a simple way to create and load the frame with its resouces,

and we notice that the pContext is NULL. And we get a bug:

if pContext is NULL, it will fire CView::OnInitalUpdate Twice!



Here is My explain:

BOOL CFrameWnd::LoadFrame(...)
{
...

if ( !Create(...) ) /// it will fire CView::OnInitialUpdate()
{
return FALSE;
}

...

if ( pContext == NULL )
{
/// it will fire CView::OnInitialUpdate() again
SendMessageToDescendants(WM_INITIALUPDATE, 0, 0, TRUE, TRUE);
}

return TRUE;
}

So, why these four lines:

if ( pContext == NULL )
{
SendMessageToDescendants(WM_INITIALUPDATE, 0, 0, TRUE, TRUE);
}

Can anyone help me or fix it?
Thanks!


-- modified at 4:14 Sunday 11th June, 2006
QuestionHOw to list all the deleted files ina directory???? Pin
Inder gujral10-Jun-06 21:55
Inder gujral10-Jun-06 21:55 
AnswerRe: HOw to list all the deleted files ina directory???? Pin
Michael Dunn10-Jun-06 22:57
sitebuilderMichael Dunn10-Jun-06 22:57 
AnswerRe: HOw to list all the deleted files ina directory???? Pin
Hamid_RT11-Jun-06 0:44
Hamid_RT11-Jun-06 0:44 
QuestionLooking for some API method \ or some other way to get all file list in some folder. Pin
Yanshof10-Jun-06 21:15
Yanshof10-Jun-06 21:15 
AnswerRe: Looking for some API method \ or some other way to get all file list in some folder. Pin
YaronNir10-Jun-06 22:14
YaronNir10-Jun-06 22:14 
AnswerRe: Looking for some API method \ or some other way to get all file list in some folder. Pin
Hamid_RT11-Jun-06 0:36
Hamid_RT11-Jun-06 0:36 
Questionhttp post & cookie response... for 'logins' Pin
chasetoys10-Jun-06 20:28
chasetoys10-Jun-06 20:28 
QuestionThermometer Pin
pblais10-Jun-06 15:13
pblais10-Jun-06 15:13 
AnswerRe: Thermometer Pin
Jun Du10-Jun-06 15:30
Jun Du10-Jun-06 15:30 
GeneralRe: Thermometer Pin
pblais10-Jun-06 18:33
pblais10-Jun-06 18:33 
GeneralRe: Thermometer Pin
Jun Du11-Jun-06 1:46
Jun Du11-Jun-06 1:46 
GeneralRe: Thermometer Pin
pblais11-Jun-06 15:19
pblais11-Jun-06 15:19 
Questionchat application help please Pin
amyy8610-Jun-06 12:48
amyy8610-Jun-06 12:48 
AnswerRe: chat application help please Pin
Sebastian Schneider10-Jun-06 14:45
Sebastian Schneider10-Jun-06 14:45 
QuestionHow to add a menu to a propertysheet :doh: Pin
tbrake10-Jun-06 10:14
tbrake10-Jun-06 10:14 
QuestionRTC Pin
Julian Goldsmith10-Jun-06 9:19
Julian Goldsmith10-Jun-06 9:19 
AnswerRe: RTC Pin
YaronNir10-Jun-06 22:17
YaronNir10-Jun-06 22:17 

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.