JohnStupidSheep
JohnStupidSheep

Reputation: 33

WM_CLOSE and IDCANCEL on Win32 DialogBox

Sup all, I've a question about the top-right corner X. How does it work on DialogBox?

When I press the top-right corner X for trying to close DialogBox, UINT msg is sent to WM_CLOSE. And WPARAM wParam is sent to IDCANCEL.

I don't understand why WPARAM is sent to IDCANCEL. What is its purpose?

Upvotes: 0

Views: 1105

Answers (1)

txid
txid

Reputation: 66

lparam and wparam are not used on this message. I know that lparam and wparam using on msg WM_COMMAND; MSDN

Upvotes: 1

Related Questions