|
From: Alexander K. <alk...@ya...> - 2015-01-12 13:33:23
|
> It was difficult to create a sample. > But I found and isolate the problem > This problem only occurs if I use clause STYLE DS_CENTER When you set the style directly, this style is the only, which is used while creating of a dialog. If you will use the DS_CENTER with standard dialog styles, at least, WS_POPUP, the problem dissappears: STYLE WS_POPUP + DS_CENTER or: STYLE WS_POPUP + WS_VISIBLE + WS_CAPTION + WS_SYSMENU + WS_SIZEBOX + DS_CENTER This strange behavior appears not because of DS_CENTER, but because other necessary styles (WS_POPUP) are not present. BTW, the centering of a dialog may be achieved also, using the ACTIVATE DIALOG oDlg CENTER Regards, Alexander. |