Search code examples
windowsdelphiformspositioningz-order

Place a window behind any other existing third party window


In order to take a screenshot of a specific window, I need to place a white colored TForm behind that window. What Windows API could I use to change the z-order of my window and place it correctly ?


Solution

  • Try the SetWindowPos() function.