2003-03-27 Gary R. Van Sickle * AntiVirus.cc (AntiVirusPage::OnActivate): Change from void to long return value. Refuse activation if no antivirus program is present. (AntiVirusPage::OnNext): Return 0 instead of IDD_SOURCE. * AntiVirus.h (AntiVirusPage::OnActivate): Change declaration from void to long return value. * choose.cc (initialized): Remove obsolete static variable. (ChooserPage::OnInit): Call base class OnInit(). (ChooserPage::OnActivate): Change from void to long return value. Return 0 (accept activation). (ChooserPage::OnBack): Remove useless assignment to initialized. * choose.h (ChooserPage::OnActivate): Change from void to long return value. * desktop.cc (DesktopSetupPage::OnInit): Call the base class OnInit(). (DesktopSetupPage::OnBack): Remove obsolete call to NEXT(). * dialog.cc: Add newline to end of file. * IniDBBuilder.cc: Add newline to end of file. * localdir.cc (LocalDirPage::OnInit): Call base class OnInit(). (LocalDirPage::OnActivate): Change from void to long return value. Return 0 (accept activation). * localdir.h (LocalDirPage::OnActivate): Change declaration from void to long return value. * LogFile.cc (LogFile::exit): Add logic to only display a dialog box at exit if something went wrong. Only exit() on error, otherwise return to caller. * LogFile.h (LogFile::exit): Remove noreturn attribute. * LogSingleton.cc: Add newline to end of file. * LogSingleton.h: (LogSingleton::exit): Remove noreturn attribute. * main.cc (main): Change some comments. * md5.h: Add newline to end of file. * msg.cc (note_nobox): New function. * msg.h (note_nobox): New function declaration. * net.cc (NetPage::OnInit): Call base class OnInit(). * postinstall.cc (do_postinstall): Don't set next_dialog, because there's no next_dialog to set anymore. * proppage.cc (Copyright): Update copyright dates. (PropertyPage::DoOnceForSheet): Remove obsolete file-scope variable. (PropertyPage::Create): Remove extra space at beginning of name. Add code to get the size of the page from the dialog template. Use more- correct MAKEINTRESOURCE() instead of cast to LPCSTR. (PropertyPage::FirstDialogProcReflector): Modify comment. (PropertyPage::DialogProc): Add "if (InSendMessage())" clause to support multithreading. Add comment. Move SetDlgItemFont() call to OnInit(). Remove "DoOnceForSheet" logic, no longer needed now that we have modeless simulation of modal sheets working. Handle OnActivate() return code. (PropertyPage::OnInit): New member function. * proppage.h (Copyright): Update copyright dates. (PropertyPage::DoOnceForSheet): Remove obsolete member variable. (PropertyPage::OriginalRECT): New member variable. (PropertyPage::GetPageRECT): New method. (PropertyPage::OnInit): Move implementation to proppage.cc. (PropertyPage::OnActivate): Change return type from void to long. Return 0. * propsheet.cc (Copyright): Update copyright dates. Include new headers "rectpp.h" and "resource.h". Add #defines for ID_* property sheet control IDs. (button_ids): New array. (PropSheet::PropSheet): Remove NumPropPages initialization. Add initialization of MarginsValid. (PropSheet::CreatePages): Use PropertyPages.size() instead of NumPropPages. (PropSheetProc): Remove, make a static member of PropSheet. (PropSheet::PropSheetProc): New method. Set ~WS_VISIBLE style bit. (PropSheet::Create): Significantly restructure to simulate a modal sheet when in reality it's modeless. This charade is necessary to get resizing to work. (PropSheet::SetHWNDFromPage): Obsolete, remove. (PropSheet::AddPage): Change to use new PropertyPages std::vector<>. (PropSheet::SaveOriginalButtonPositions): New method. (PropSheet::RepositionButtons): New method. (PropSheet::Resize): New method. (PropSheet::MessageLoop): New method. * propsheet.h (Copyright): Update copyright dates. Include . Include "rectpp.h". (PropSheet::ThisPtrOfPropSheetBeingCreated): New data member. (PropSheet::PropertyPages): Change from array to vector<>. (PropSheet::OriginalClientRect): New data member. (PropSheet::OriginalTabControlRect): Ditto. (PropSheet::OriginalButtonPositions): Ditto. (PropSheet::MarginsValid): Ditto. (PropSheet::PageSideMargin): Ditto. (PropSheet::PageTopMargin): Ditto. (PropSheet::PageBottomMargin): Ditto. (PropSheet::OldWndProc): Ditto. (PropSheet::SaveOriginalButtonPositions): New method declaration. (PropSheet::SetHWNDFromPage): Remove. (PropSheet::PropSheetProc): New method declaration. (PropSheet::MessageLoop): New method declaration. (PropSheet::Resize): Ditto. (PropSheet::RepositionButtons): Ditto. * res.rc (IDD_SPLASH): Move icon. Change commented-out "white box" static control to a black invisible one. (IDD_DESKTOP): Move controls. Add Cygwin icon. Changed ID of "Finished" text to be IDC_STATIC_WELCOME_TITLE, same as the welcome text on the first page, to simplify font-changing code. (IDD_CHOOSE): Resize page (yay!). Move controls. Resize the static control that the tree control code hooks. * resource.h: Add newline to end of file. * rfc1738.cc: Add newline to end of file. * root.cc (RootPage::OnInit): Call base class OnInit(). * root.h: Add newline to end of file. * site.cc (SitePage::OnInit): Call base class OnInit(). (SitePage::OnActivate): Change return type from void to long. Return 0. * site.h (SitePage::OnActivate): Change return type from void to long. * source.cc (SourcePage::OnActivate): Change return type from void to long. Return 0. * source.h (SourcePage::OnActivate): Change return type from void to long. * splash.cc (Copyright): Update copyright dates. (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in base class. Add call to base class's OnInit(). * splash.h (Copyright): Update copyright dates. * threebar.cc (ThreeBarProgressPage::OnInit): Call base class OnInit(). (ThreeBarProgressPage::OnActivate): Change return type from void to long. Return 0. * threebar.h (ThreeBarProgressPage::OnActivate): Change return type from void to long. * window.cc: include "rectpp.h". (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead of C-style casts. (Window::MoveWindow): New overload. (Window::Subclass): New member function. Stubbed in for now. * window.h (RECTPP): New forward declaration. (Window::Create): Move. (Window::Subclass): New method declaration. (Window::MoveWindow): New overload declaration. * rectpp.h: New file. * cygwin.ico: Added two new resolutions, 64x64 and 72x72. Sorry, no Cyppy. Yet. ;-)