Click here to Skip to main content
15,904,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Menu checked on Doc/View app? Pin
lordgreg6-Sep-05 21:47
lordgreg6-Sep-05 21:47 
QuestionRe: MFC Menu checked on Doc/View app? Pin
David Crow6-Jan-11 6:41
David Crow6-Jan-11 6:41 
QuestionMultiple selections in CTreeCtrl Pin
uma_kanth_k6-Sep-05 0:24
uma_kanth_k6-Sep-05 0:24 
GeneralRe: Multiple selections in CTreeCtrl Pin
prasad_som6-Sep-05 0:55
prasad_som6-Sep-05 0:55 
Questionwhat is %ld Pin
Member 21610045-Sep-05 23:52
Member 21610045-Sep-05 23:52 
AnswerRe: what is %ld Pin
toxcct5-Sep-05 23:57
toxcct5-Sep-05 23:57 
QuestionCHtmlEditView and MSHTML usage Pin
sotiris5-Sep-05 23:39
sotiris5-Sep-05 23:39 
Questiontrouble with UpdateAllViews() Pin
/*Trucker*\5-Sep-05 23:09
/*Trucker*\5-Sep-05 23:09 
Hi,

I have an SDI Application with 3 views: CLeftView, CTopRightView, CBottomRightView. CTopRightView has a CListCtrl. In the code for CLeftView, if some condition is met, I want to add an item to the list control in CTopRightView.

To do this, in CLeftView I set a Doc var to the item i want to add. Next, I call UpdateAllViews() so it can call my Overridden OnUpdate functions in my views. My overriden OnUpdate function in CtopRightView adds the item set in Doc class to the list control.

The Problem: UpdateAllViews() seems to call OnCreate() before it calls my OnUpdate function, thus clearing all the contents I had in the list control, and then calls OnUpdate(). Is there any way to prevent it from calling the OnCreate()? I don't want to recreate the list control, just add an item to it.Unsure | :~

TraileR ParK LifE 4Ever
AnswerRe: trouble with UpdateAllViews() Pin
MailtoGops6-Sep-05 2:30
MailtoGops6-Sep-05 2:30 
GeneralRe: trouble with UpdateAllViews() Pin
/*Trucker*\6-Sep-05 9:49
/*Trucker*\6-Sep-05 9:49 
AnswerRe: trouble with UpdateAllViews() Pin
David Crow6-Sep-05 4:31
David Crow6-Sep-05 4:31 
GeneralRe: trouble with UpdateAllViews() Pin
/*Trucker*\6-Sep-05 9:24
/*Trucker*\6-Sep-05 9:24 
GeneralRe: trouble with UpdateAllViews() Pin
David Crow6-Sep-05 9:49
David Crow6-Sep-05 9:49 
GeneralRe: trouble with UpdateAllViews() Pin
/*Trucker*\6-Sep-05 10:00
/*Trucker*\6-Sep-05 10:00 
GeneralRe: trouble with UpdateAllViews() Pin
David Crow7-Sep-05 3:47
David Crow7-Sep-05 3:47 
QuestionHow to use CRecordset with CByteArray for storing BLOBs Pin
snprani5-Sep-05 23:08
snprani5-Sep-05 23:08 
AnswerRe: How to use CRecordset with CByteArray for storing BLOBs Pin
G Haranadh6-Sep-05 0:31
G Haranadh6-Sep-05 0:31 
Questiondelete[] can't replace delete? Pin
followait5-Sep-05 22:59
followait5-Sep-05 22:59 
AnswerRe: delete[] can't replace delete? Pin
toxcct5-Sep-05 23:03
toxcct5-Sep-05 23:03 
AnswerRe: delete[] can't replace delete? Pin
S. Senthil Kumar6-Sep-05 2:35
S. Senthil Kumar6-Sep-05 2:35 
AnswerRe: delete[] can't replace delete? Pin
Tim Smith6-Sep-05 3:55
Tim Smith6-Sep-05 3:55 
AnswerRe: delete[] can't replace delete? Pin
David Crow6-Sep-05 4:34
David Crow6-Sep-05 4:34 
GeneralRe: delete[] can't replace delete? Pin
Bob Ciora6-Sep-05 7:55
Bob Ciora6-Sep-05 7:55 
AnswerThe problem is... Pin
followait6-Sep-05 15:57
followait6-Sep-05 15:57 
GeneralRe: The problem is... Pin
David Crow7-Sep-05 4:48
David Crow7-Sep-05 4:48 

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.