So he has already put her brake point jam here.
So now we're going to restart the program clique run and we are now at the entry point.
Click and run again and the data is showing gained any wrong here.
Click on button check.
And now it has passed and the break point.
So just finally we are going to examine the push for the cause.
So the first Bush was already done here.
And if you examine this tech this is called the stack.
And this thing is a temporary location in RAM memory use for a recall.
So every time you have a car you create a temporary stack for that call when a call finishes this straight
the stack is removed.
So now this new state is being created here for the purposes of this message box.
So now the first push is put 0 has already taken place since we are here now.
That means this has been pushed to the stack.
So if you look at this thing this zero here is the one that has been pushed by this instruction.
Now we are going to jump and go down here to press effort to jump.
And now we are here we are about to push this string to this thing.
So yes press.
And now this string has been pushed to the stack.
This string is a caption for our message box.
Now we are ready to push the next string to this thing.
So press f it again and a string wrong zero key has been pushed to this day.
So this would be the message in a message.
Is up.
Now we are here.
We are going to push the loss barometer to this day which is zero.
So let's press F it and now zero has pushed this thing.
So all the four parameters has been pushed to this take so if you recall in a previous lesson I did
tell unit the order and you issue this push it is thing is reversed from the order in a function call
yourself in a function is there the order is from top to bottom.
But when you're pushing the DEA you push on bottom to the top 10 is the fourth barometer is pushed first.
So the fourth barometer is is 0 here which is pushed through this thing first and noticed that growth
from the bottom up.
So it is zero here is pushed to the bottom and then next barometer is your caption.
So the caption is pushed over here sorry.
So it is push you to stay.
He is poised just above the zero.
So because here after that you will push the second parameter the test which is this tax year.
So when he pushes this respect he will appear to disagree.
So notice this is growing upwards.
And finally the last barometer is your parent window.
If you will be pushing at this instruction here a man is pushing this thing English right.
A thought to stay here so you can see the the order of the pushes is reverse.
From the order of the function in the middle is and when it is pushed to this day.
Magically the order reverts back to the order shown in the function call again.
So in a you will see here the zero here refers to the top.
If this barometer then rings here a key refers to the text.
The second barometer sorry refers to the barometer and the last zero here refers to the other button
type which is the fourth barometer.
So this is how it works.
So now when we call the message processor my pressing f a message box of all this thing to display a
message to the user.
And so if we head over here you can see the message box has been display so the message box would take
whatever voice in this day to create this message box to display.
So the message box API needs to use this time in order to run.
So that's the purpose of this text and that is also the reason why we push because whenever you push
your pushing the parameters onto the state to set it up for the function to run because the function
is to use the parameters.
So that is how window functions who work and you can see it as simply happening for this message box
as well.
And if you look at just any other window functions they all look exactly the same way.
So if you wanted to study the other functions here like get data item tax you can just head over to
the Microsoft develop and they will search for it.
For example in Taiwan and ISDN get dialog item texts like this and then click the first search result
and you will get all the explanation you need to get that item Tyson's got one two three four four parameter
and so we can use this to study to get the item text the four parameters you should.
Again in reverse order from the one listed here you have four parameters one two three four and four
committees have input here.
One two three four same.
So if you understood it is I leave it to you as an exercise for this right.
You can just put in a breakpoint somewhere here and then study the state as it pushes.
One by one in reverse order.
So that's all for this lesson.
Thank you for watching.