wm_destroy

About this tag
The tag wm_destroy covers the WM_DESTROY message in Windows programming, which is sent when a window is being destroyed. In the provided thread, a user discusses saving window placement data in the WM_DESTROY handler using GetWindowPlacement and storing it in the registry. The discussion involves potential bugs or issues with restoring window placement, particularly when the window was minimized. This tag is relevant for developers working with Win32 API, MFC, or similar frameworks who need to handle window destruction and state persistence.
  1. Alex Sokolek

    I think I found a bug in GetWindowPlacement()

    Hi. I think I found a bug in GetWindow{Placement(). I save and restore the window placement using the registry as an intermidiary. For save... ``` (In WndProc) case WM_DESTROY: { WINDOWPLACEMENT wp; ZeroMemory(&wp, sizeof(wp)); wp.length =...
Back
Top