Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading bitmaps Pin
22-Feb-02 6:49
suss22-Feb-02 6:49 
GeneralRe: Loading bitmaps Pin
Not Active22-Feb-02 7:11
mentorNot Active22-Feb-02 7:11 
GeneralRe: Loading bitmaps Pin
Paul M Watt22-Feb-02 7:15
mentorPaul M Watt22-Feb-02 7:15 
GeneralBroadcasting the command Pin
yellowine22-Feb-02 6:23
yellowine22-Feb-02 6:23 
GeneralRe: Broadcasting the command Pin
Tim Smith22-Feb-02 6:30
Tim Smith22-Feb-02 6:30 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 6:34
yellowine22-Feb-02 6:34 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
Tim Smith22-Feb-02 6:46
Tim Smith22-Feb-02 6:46 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
Nish Nishant22-Feb-02 9:18
sitebuilderNish Nishant22-Feb-02 9:18 
yellowine wrote:

if ID_COMMAND1 is send by pView1

then I want:

pView2->WelcomeYou();
pView3->MakeDinnerForYou();
...
pViewn->GoFishing()..


I think you might maintain a global stack of messages and handle them individually in the individual views iterating through each message in the stack. Push only those msgs into the stack that you wish to have handlers for in the different views.

My most recent CP article :-

A newbie's elementary guide to spawning processes

www.busterboy.org
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 10:35
yellowine22-Feb-02 10:35 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
pba_22-Feb-02 10:40
pba_22-Feb-02 10:40 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 10:42
yellowine22-Feb-02 10:42 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
pba_22-Feb-02 12:04
pba_22-Feb-02 12:04 
GeneralRe: Broadcasting the command Pin
22-Feb-02 7:00
suss22-Feb-02 7:00 
GeneralRe: Broadcasting the command Pin
yellowine22-Feb-02 10:36
yellowine22-Feb-02 10:36 
GeneralDeallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:17
Aaron Schaefer22-Feb-02 6:17 
GeneralRe: Deallocating Tree Control Data Pin
Tim Smith22-Feb-02 6:19
Tim Smith22-Feb-02 6:19 
GeneralRe: Deallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:20
Aaron Schaefer22-Feb-02 6:20 
GeneralRe: Deallocating Tree Control Data Pin
Tim Smith22-Feb-02 6:29
Tim Smith22-Feb-02 6:29 
GeneralRe: Deallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:30
Aaron Schaefer22-Feb-02 6:30 
GeneralCToolBar question... Pin
Jamie Hale22-Feb-02 5:19
Jamie Hale22-Feb-02 5:19 
GeneralRe: CToolBar question... Pin
Jamie Hale22-Feb-02 5:20
Jamie Hale22-Feb-02 5:20 
GeneralRe: CToolBar question... Pin
Jon Hulatt22-Feb-02 6:05
Jon Hulatt22-Feb-02 6:05 
GeneralCListBox colors Pin
Stevieslu22-Feb-02 5:17
Stevieslu22-Feb-02 5:17 
GeneralRe: CListBox colors Pin
Paul M Watt22-Feb-02 5:23
mentorPaul M Watt22-Feb-02 5:23 
GeneralRe: CListBox colors Pin
Mazdak22-Feb-02 5:21
Mazdak22-Feb-02 5:21 

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.