Can I do this?
-
void MyFun()
{
Fun1();
//following function call sends a message that will triger the excution of
//function MessageHandlerFun()
FunSendingMessage();
//I want the program to pause right here, and continue after the
// MessageHandlerFun() renturns. can I realize this??
.........code
}void MessageHandlerFun()
{
.........code
.........code
}Thank you very much!!! ------------------- I am learning C++ and English
-
void MyFun()
{
Fun1();
//following function call sends a message that will triger the excution of
//function MessageHandlerFun()
FunSendingMessage();
//I want the program to pause right here, and continue after the
// MessageHandlerFun() renturns. can I realize this??
.........code
}void MessageHandlerFun()
{
.........code
.........code
}Thank you very much!!! ------------------- I am learning C++ and English
That's what will happen automatically if you use the
SendMessage
API to send the message. Steve -
void MyFun()
{
Fun1();
//following function call sends a message that will triger the excution of
//function MessageHandlerFun()
FunSendingMessage();
//I want the program to pause right here, and continue after the
// MessageHandlerFun() renturns. can I realize this??
.........code
}void MessageHandlerFun()
{
.........code
.........code
}Thank you very much!!! ------------------- I am learning C++ and English
the program control will run MyFun() then it will call FunSendingMessage(), since it is using SendMessage, the main function MyFun will not regain control until the function MessageHandleFun() will finish and return.... so basically you don't have to do anything :) Ask not what your application can do for you, Ask what you can do for your application