I am trying to center a pop-up dialog in it's parent window, but whenever I move the parent and call the pop-up dialog it centers inteself on the desktop.
Accoring to the manual if I supply the parent window handle (hDlg in this case) and leave the x, y coords. out of the DIALOG NEW it should self center, but it doesn't seem to work for me.
Here is the code I'm using for the dialog creation
[This message has been edited by George Bleck (edited March 18, 2000).]
Accoring to the manual if I supply the parent window handle (hDlg in this case) and leave the x, y coords. out of the DIALOG NEW it should self center, but it doesn't seem to work for me.
Here is the code I'm using for the dialog creation
Code:
DIALOG NEW hDlg, "", , , 180, 25, %WS_POPUP Or %WS_DLGFRAME TO sDlg CONTROL ADD LABEL, sDLg, 1, "The message list is updating, please wait...", 5, 10, 175, 15,%SS_CENTER DIALOG SHOW MODELESS sDlg
[This message has been edited by George Bleck (edited March 18, 2000).]
Comment