Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: button to send message Pin
Member 216100425-Aug-05 20:55
Member 216100425-Aug-05 20:55 
Questionblock main thread and allow secondary to run first Pin
elephantstar25-Aug-05 11:27
elephantstar25-Aug-05 11:27 
QuestionUnwinding from a stack of dialogs... Pin
charlieg25-Aug-05 10:21
charlieg25-Aug-05 10:21 
AnswerRe: Unwinding from a stack of dialogs... Pin
dharani25-Aug-05 17:37
dharani25-Aug-05 17:37 
GeneralRe: Unwinding from a stack of dialogs... Pin
charlieg25-Aug-05 17:43
charlieg25-Aug-05 17:43 
GeneralRe: Unwinding from a stack of dialogs... Pin
namaskaaram25-Aug-05 23:46
namaskaaram25-Aug-05 23:46 
GeneralRe: Unwinding from a stack of dialogs... Pin
charlieg26-Aug-05 2:34
charlieg26-Aug-05 2:34 
GeneralRe: Unwinding from a stack of dialogs... Pin
namaskaaram26-Aug-05 4:31
namaskaaram26-Aug-05 4:31 
Good Morning!
hmmmm.....modal!.....well if those were non modal,u could post a message to the previous windows to close,then destroy the topmost one!....
since this is modal,all the dialogs run on the same thread!.....
i am not sure,but try the following out!

on the button click of the topmost modal dialog,a function say 'buttonclick()' should be called.This function should post a message(make that a userdefined message) to its immediate parent which would trigger a function say funct1()in itz parent.
Then,this 'buttonclick()'function should close the topmostdialog.
//NOW THE TOPMOST DIALOG CLOSES,AND ITS PARENT BECOMES THE TOPMOST.
now this message which was posted to the parent by the ex-topmostdialog gets recieved,and gets processed by the function corresponding to the message that was sent by its child(or the ex-topmost dialog).....this function in the parent called 'funct1()' should do the same process as done by the 'buttonclick()'function.....
use this technique,and u should be able to get as desired!....please note that ,i havent tried this out!justa solution.....
if u want to know how to send user defined messages and handle them just go thru the following link.....(try the WM_APP: constant messages,they should be easy to setup!)
http://www.codeproject.com/dialog/messagemgmt.asp[^]


cheerz.....Big Grin | :-D


"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
AnswerRe: Unwinding from a stack of dialogs... Pin
charlieg26-Aug-05 10:13
charlieg26-Aug-05 10:13 
Questiongetting first root node of treeview Pin
/*Trucker*\25-Aug-05 9:14
/*Trucker*\25-Aug-05 9:14 
AnswerRe: getting first root node of treeview Pin
David Crow25-Aug-05 9:29
David Crow25-Aug-05 9:29 
GeneralRe: getting first root node of treeview Pin
/*Trucker*\25-Aug-05 16:06
/*Trucker*\25-Aug-05 16:06 
GeneralRe: getting first root node of treeview Pin
David Crow26-Aug-05 2:41
David Crow26-Aug-05 2:41 
AnswerRe: getting first root node of treeview Pin
Jose Lamas Rios25-Aug-05 11:43
Jose Lamas Rios25-Aug-05 11:43 
GeneralRe: getting first root node of treeview Pin
/*Trucker*\25-Aug-05 16:15
/*Trucker*\25-Aug-05 16:15 
QuestionThreads Pin
Eytukan25-Aug-05 7:01
Eytukan25-Aug-05 7:01 
AnswerRe: Threads Pin
Jack Puppy25-Aug-05 7:20
Jack Puppy25-Aug-05 7:20 
AnswerRe: Threads Pin
David Crow25-Aug-05 7:46
David Crow25-Aug-05 7:46 
AnswerRe: Threads Pin
LighthouseJ25-Aug-05 17:03
LighthouseJ25-Aug-05 17:03 
QuestionThankz guys and about "ExitInstance()" ? Pin
Eytukan25-Aug-05 22:42
Eytukan25-Aug-05 22:42 
QuestionProgress Dialog Pin
swati2425-Aug-05 6:59
swati2425-Aug-05 6:59 
AnswerRe: Progress Dialog Pin
David Crow25-Aug-05 7:48
David Crow25-Aug-05 7:48 
GeneralRe: Progress Dialog -- Modified Pin
swati2425-Aug-05 8:28
swati2425-Aug-05 8:28 
General[Message Deleted] Pin
David Crow25-Aug-05 8:40
David Crow25-Aug-05 8:40 
GeneralRe: [Msg Deleted] Pin
swati2425-Aug-05 8:51
swati2425-Aug-05 8:51 

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.