Click here to Skip to main content
16,008,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Send Message to CMainFrame Class To Redraw all child windows Pin
23-Sep-01 20:52
suss23-Sep-01 20:52 
AnswerRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
Steen Krogsgaard24-Sep-01 0:03
Steen Krogsgaard24-Sep-01 0:03 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
24-Sep-01 0:31
suss24-Sep-01 0:31 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
#realJSOP24-Sep-01 1:33
professional#realJSOP24-Sep-01 1:33 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
24-Sep-01 2:01
suss24-Sep-01 2:01 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
#realJSOP24-Sep-01 2:50
professional#realJSOP24-Sep-01 2:50 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
24-Sep-01 4:50
suss24-Sep-01 4:50 
GeneralRe: How to Send Message to CMainFrame Class To Redraw all child windows Pin
#realJSOP24-Sep-01 5:35
professional#realJSOP24-Sep-01 5:35 
You'll have to do three things:

1) Use this function call inside your iterator function (the one I gave you earlier):

posDoc->UpdateAllViews(NULL, (WPARAM)1);


2) In your view->OnUpdate() function, add code to handle the second parameter. If it's set to 1, update the frame like so:

GetParentFrame()->SendMessage(MY_MESSAGE, 0, 0);


3) Add a message handler in your frame class to handle the message.
GeneralNetMeeting SDK Pin
tfElep23-Sep-01 16:31
tfElep23-Sep-01 16:31 
GeneralRe: NetMeeting SDK Pin
Michael P Butler23-Sep-01 22:20
Michael P Butler23-Sep-01 22:20 
Generalreading from netware directory Pin
Hong Wye Kean23-Sep-01 15:57
Hong Wye Kean23-Sep-01 15:57 
GeneralChris's Grid Control Doc/View Pin
Matt Newman23-Sep-01 15:53
Matt Newman23-Sep-01 15:53 
GeneralRe: Chris's Grid Control Doc/View Pin
Christian Graus23-Sep-01 16:12
protectorChristian Graus23-Sep-01 16:12 
GeneralRe: Chris's Grid Control Doc/View Pin
Matt Newman23-Sep-01 16:24
Matt Newman23-Sep-01 16:24 
GeneralRe: Chris's Grid Control Doc/View Pin
Christian Graus23-Sep-01 16:40
protectorChristian Graus23-Sep-01 16:40 
GeneralRe: Chris's Grid Control Doc/View Pin
Matt Newman24-Sep-01 14:25
Matt Newman24-Sep-01 14:25 
GeneralRe: Chris's Grid Control Doc/View Pin
Christian Graus24-Sep-01 15:05
protectorChristian Graus24-Sep-01 15:05 
GeneralRe: Chris's Grid Control Doc/View Pin
Matt Newman24-Sep-01 15:46
Matt Newman24-Sep-01 15:46 
GeneralRe: Chris's Grid Control Doc/View Pin
Chris Maunder24-Sep-01 15:39
cofounderChris Maunder24-Sep-01 15:39 
GeneralRe: Chris's Grid Control Doc/View Pin
Matt Newman24-Sep-01 15:47
Matt Newman24-Sep-01 15:47 
GeneralCustom AppWizard Pin
23-Sep-01 14:53
suss23-Sep-01 14:53 
GeneralRe: Custom AppWizard Pin
abarbs20-Oct-04 2:39
abarbs20-Oct-04 2:39 
GeneralPosting to a form Pin
Christian Skovdal Andersen23-Sep-01 12:23
Christian Skovdal Andersen23-Sep-01 12:23 
GeneralGetting file status without using MFC !!! Pin
Hadi Rezaee23-Sep-01 10:55
Hadi Rezaee23-Sep-01 10:55 
GeneralRe: Getting file status without using MFC !!! Pin
Chris Losinger23-Sep-01 11:07
professionalChris Losinger23-Sep-01 11:07 

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.