1
00:00:01,740 --> 00:00:06,030
So he has already put her brake point jam here.

2
00:00:06,090 --> 00:00:15,100
So now we're going to restart the program clique run and we are now at the entry point.

3
00:00:16,300 --> 00:00:26,420
Click and run again and the data is showing gained any wrong here.

4
00:00:27,980 --> 00:00:30,480
Click on button check.

5
00:00:30,590 --> 00:00:34,200
And now it has passed and the break point.

6
00:00:34,220 --> 00:00:43,190
So just finally we are going to examine the push for the cause.

7
00:00:43,910 --> 00:00:47,270
So the first Bush was already done here.

8
00:00:47,570 --> 00:00:52,000
And if you examine this tech this is called the stack.

9
00:00:52,310 --> 00:00:57,440
And this thing is a temporary location in RAM memory use for a recall.

10
00:00:57,440 --> 00:01:04,880
So every time you have a car you create a temporary stack for that call when a call finishes this straight

11
00:01:04,930 --> 00:01:07,190
the stack is removed.

12
00:01:07,210 --> 00:01:15,800
So now this new state is being created here for the purposes of this message box.

13
00:01:15,800 --> 00:01:20,510
So now the first push is put 0 has already taken place since we are here now.

14
00:01:20,540 --> 00:01:22,880
That means this has been pushed to the stack.

15
00:01:22,970 --> 00:01:30,350
So if you look at this thing this zero here is the one that has been pushed by this instruction.

16
00:01:30,350 --> 00:01:37,500
Now we are going to jump and go down here to press effort to jump.

17
00:01:38,010 --> 00:01:42,800
And now we are here we are about to push this string to this thing.

18
00:01:43,010 --> 00:01:45,040
So yes press.

19
00:01:45,920 --> 00:01:48,740
And now this string has been pushed to the stack.

20
00:01:48,890 --> 00:01:53,700
This string is a caption for our message box.

21
00:01:53,740 --> 00:01:56,680
Now we are ready to push the next string to this thing.

22
00:01:56,920 --> 00:02:03,500
So press f it again and a string wrong zero key has been pushed to this day.

23
00:02:04,310 --> 00:02:07,330
So this would be the message in a message.

24
00:02:07,400 --> 00:02:08,670
Is up.

25
00:02:08,940 --> 00:02:10,150
Now we are here.

26
00:02:10,190 --> 00:02:14,730
We are going to push the loss barometer to this day which is zero.

27
00:02:14,780 --> 00:02:19,870
So let's press F it and now zero has pushed this thing.

28
00:02:19,880 --> 00:02:27,640
So all the four parameters has been pushed to this take so if you recall in a previous lesson I did

29
00:02:27,640 --> 00:02:35,710
tell unit the order and you issue this push it is thing is reversed from the order in a function call

30
00:02:35,710 --> 00:02:40,500
yourself in a function is there the order is from top to bottom.

31
00:02:41,180 --> 00:02:48,640
But when you're pushing the DEA you push on bottom to the top 10 is the fourth barometer is pushed first.

32
00:02:48,640 --> 00:02:55,980
So the fourth barometer is is 0 here which is pushed through this thing first and noticed that growth

33
00:02:55,990 --> 00:02:58,020
from the bottom up.

34
00:02:58,390 --> 00:03:08,350
So it is zero here is pushed to the bottom and then next barometer is your caption.

35
00:03:08,350 --> 00:03:13,530
So the caption is pushed over here sorry.

36
00:03:13,640 --> 00:03:16,410
So it is push you to stay.

37
00:03:16,520 --> 00:03:18,960
He is poised just above the zero.

38
00:03:19,630 --> 00:03:28,550
So because here after that you will push the second parameter the test which is this tax year.

39
00:03:28,640 --> 00:03:32,420
So when he pushes this respect he will appear to disagree.

40
00:03:32,420 --> 00:03:34,190
So notice this is growing upwards.

41
00:03:35,000 --> 00:03:39,230
And finally the last barometer is your parent window.

42
00:03:39,470 --> 00:03:45,250
If you will be pushing at this instruction here a man is pushing this thing English right.

43
00:03:45,340 --> 00:03:53,770
A thought to stay here so you can see the the order of the pushes is reverse.

44
00:03:53,840 --> 00:04:01,970
From the order of the function in the middle is and when it is pushed to this day.

45
00:04:02,070 --> 00:04:07,790
Magically the order reverts back to the order shown in the function call again.

46
00:04:07,800 --> 00:04:12,590
So in a you will see here the zero here refers to the top.

47
00:04:13,430 --> 00:04:18,680
If this barometer then rings here a key refers to the text.

48
00:04:18,780 --> 00:04:28,370
The second barometer sorry refers to the barometer and the last zero here refers to the other button

49
00:04:28,370 --> 00:04:30,990
type which is the fourth barometer.

50
00:04:31,010 --> 00:04:33,990
So this is how it works.

51
00:04:34,010 --> 00:04:44,280
So now when we call the message processor my pressing f a message box of all this thing to display a

52
00:04:44,370 --> 00:04:46,400
message to the user.

53
00:04:47,060 --> 00:04:53,720
And so if we head over here you can see the message box has been display so the message box would take

54
00:04:53,720 --> 00:04:58,760
whatever voice in this day to create this message box to display.

55
00:04:58,760 --> 00:05:05,980
So the message box API needs to use this time in order to run.

56
00:05:06,020 --> 00:05:11,810
So that's the purpose of this text and that is also the reason why we push because whenever you push

57
00:05:11,820 --> 00:05:19,500
your pushing the parameters onto the state to set it up for the function to run because the function

58
00:05:19,500 --> 00:05:21,560
is to use the parameters.

59
00:05:22,610 --> 00:05:30,920
So that is how window functions who work and you can see it as simply happening for this message box

60
00:05:30,980 --> 00:05:31,940
as well.

61
00:05:32,030 --> 00:05:37,800
And if you look at just any other window functions they all look exactly the same way.

62
00:05:37,910 --> 00:05:44,900
So if you wanted to study the other functions here like get data item tax you can just head over to

63
00:05:44,900 --> 00:05:50,560
the Microsoft develop and they will search for it.

64
00:05:50,560 --> 00:06:01,240
For example in Taiwan and ISDN get dialog item texts like this and then click the first search result

65
00:06:01,480 --> 00:06:08,670
and you will get all the explanation you need to get that item Tyson's got one two three four four parameter

66
00:06:09,180 --> 00:06:15,480
and so we can use this to study to get the item text the four parameters you should.

67
00:06:15,490 --> 00:06:23,260
Again in reverse order from the one listed here you have four parameters one two three four and four

68
00:06:23,260 --> 00:06:25,510
committees have input here.

69
00:06:25,780 --> 00:06:29,720
One two three four same.

70
00:06:29,890 --> 00:06:33,990
So if you understood it is I leave it to you as an exercise for this right.

71
00:06:34,060 --> 00:06:39,610
You can just put in a breakpoint somewhere here and then study the state as it pushes.

72
00:06:39,610 --> 00:06:42,350
One by one in reverse order.

73
00:06:42,430 --> 00:06:44,920
So that's all for this lesson.

74
00:06:44,920 --> 00:06:45,820
Thank you for watching.
