Subj : Re: New Explorer Open/Save dialog To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Tue Feb 10 2004 11:31 pm I think I messed up on two things. The value to set the macro to is 0x0500, not 0x0400. The two macros WINVER and _WIN32_WINNT are supposedly equivalent but when I look in COMMDLG.H what it tests for is _WIN32_WINNT so change what I said from #define WINVER 0x0400 to #define _WIN32_WINNT 0x0500 As for how you can center the common dialogs, supply an OFNHookProc and center the dialog during the WM_INITDIALOG message. Something like this should center it: case WM_INITDIALOG : { RECT rdesk = GetWindowRect(GetDesktopWindow()); RECT r = GetWindowRect(hwnd); MoveWindow(hwnd, ((rdesk.right - rdesk.left) - (r.right - r.left)) / 2, ((rdesk.bottom - rdesk.top) - (r.bottom - r.top)) / 2, r.right - r.left, r.bottom - r.top, TRUE); .. Ed > Max Dupilka wrote in message > news:402958ab$1@newsgroups.borland.com... .