Unterschied WM_CLOSE und WM_DESTROY
-
Hallo!
Wo besteht denn ein Unterschied zwischen WM_CLOSE und WM_DESTROY?
Bis jetzt war es immer egal ob ich Code in OnClose() oder OnDestroy() ergänze.LG
Philipp
-
MSDN schrieb:
The WM_CLOSE message is sent as a signal that a window or an application should terminate. An application can prompt the user for confirmation, prior to destroying a window, by processing the WM_CLOSE message and calling the DestroyWindow function only if the user confirms the choice.
The WM_DESTROY message is sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen.
-
D. h. es ist egal wo ich KillTimer() positioniere?
-
Wenn in OnClose sofort (und nur) dein Fenster zerstört wird, dann ja.