Sorry, I forgot to answer.
I indeed experienced the same problem.
I define oWnd with a button bar. Windows oWnd is created on both screens. If I open a dialog box, the box is place at the top of the second monitor. Normally, it is placed in the middle of the first monitor.
So I changed the width of my Windows :
DEFINE WINDOW oWnd FROM 0,0 TO cHeight,cWidth
If I take care that the width of oWnd is not bigger than the width of my monitor, the dialog boxes, defined later, are beautifully centered.
I hope that my explanation can help you.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773