ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/RenegadeMapSelector/RenegadeMapSelector.cpp
(Generate patch)

Comparing trunk/RenegadeMapSelector/RenegadeMapSelector.cpp (file contents):
Revision 77 by douglas, 2003-03-13T22:55:21-08:00 vs.
Revision 78 by douglas, 2003-03-13T23:29:48-08:00

# Line 163 | Line 163 | int CALLBACK selector(HWND hwndDlg, UINT
163          {
164          case WM_INITDIALOG:
165                  {
166 +                        RECT rc, rcDlg, rcDesktop;
167 +
168 +                        GetWindowRect(GetDesktopWindow(), &rcDesktop);
169 +                        GetWindowRect(hwndDlg, &rcDlg);
170 +                        CopyRect(&rc, &rcDesktop);
171 +
172 +                        OffsetRect(&rcDlg, -rcDlg.left, -rcDlg.top);
173 +                        OffsetRect(&rc, -rc.left, -rc.top);
174 +                        OffsetRect(&rc, -rcDlg.right, -rcDlg.bottom);
175 +
176 +                        SetWindowPos(hwndDlg, HWND_TOP, rcDesktop.left + (rc.right / 2),
177 +                                rcDesktop.top + (rc.bottom / 2), 0, 0, SWP_NOSIZE);
178 +                }
179 +                {
180                          char* directory = new char[MAX_PATH + 1];
181                          GetCurrentDirectory(MAX_PATH + 1, directory);
182                          if (debug) cerr << "directory = " << directory << "\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines