Computer Science, asked by venketeshavs4696, 11 months ago

Explain wm_size and on_size function

Answers

Answered by itzBrainlyBoy
0

Answer:

WM_SIZE. The WM_SIZE message is sent to a window after its size has changed. Message is sent to all pop-up windows when some other window is maximized. Window has been maximized.

Answered by Anonymous
0

Answer:

Besides receiving messages, you will often find your self sending messages. You might want to send messages to communicate between to windows in your program, or to communicate between different programs. In order to send a message, you need a pointer to a C++ window class. This can be retrieved using various functions, including CWnd::FindWindow, GetDlgItem(), GetParent(), and more. The CWnd class has a SendMessage() member function which allows you to send messages to its window. For example, let’s say you have a CWnd pointer to the Calculator, and you want to close it. What you should do is send a WM_CLOSE message, which will notify the Calculator that it should close. You can use the following code. In order to get a pointer to Calculator, I use the static CWnd::FindWindow() function and pass the title of the window, which in our case is "Calculator".

Hide

Similar questions