I just want to know what is the difference between these two messaging constants. Which one should I use in WndProc method when overriding, to handle close button message.
I just want to know what is the difference between these two messaging constants.
Share
WM_CLOSEis sent as a window message whenever the window is requested to be closed, by any means.SC_CLOSEis sent as a parameter of aWM_SYSCOMMANDmessage, when the user presses the Close button (or selects Close from the control menu of the window).Which one you listen for is determined by which action(s) you attempting to intercept/deal with.