#include "InstallDialog.h" InstallDialog::InstallDialog() { iccx.dwSize = sizeof(INITCOMMONCONTROLSEX); iccx.dwICC = ICC_PROGRESS_CLASS; //ICC_WIN95_CLASSES can also be used InitCommonControlsEx(&iccx); } ///////////////////// from InstallDialog.h //////////// #ifndef InstallDialogH #define InstallDialogH #include "BaseDlg.h" #include "resource.h" #include #include #include "ProgressDialog.h" #include "unzip.h" #include using std::string; class InstallDialog : public BaseDlg //Class hierarchy: BaseWnd<-BaseDlg<-InstallDialog { private: INITCOMMONCONTROLS iccx; ProgressDialog pdUnzip; string sThemesDir; string sName; const string GetFilePath(); protected: virtual bool OnCommand(HWND hwndCtl, int nID, UINT uNotifyCode); //WM_COMMAND handler virtual bool OnInitDialog(HWND hwndFocus, LPARAM lParam); public: InstallDialog(); ~InstallDialog(); void SetThemesDir(string sThemesDir); void InstallTheme(const string &sFilePath); void BrowseForFile(); string GetThemeName() {return sName;} }; #endif