OSDN Git Service

Safari対応
[nlite/nlite.git] / nlite / nlite_propertyWindow.cpp
index 88c8398..bf58a49 100644 (file)
@@ -36,6 +36,18 @@ BOOL CCookieSettingWindow::OnInitDialog(CWindow wndFocus, LPARAM lInitParam){
 
                break;
 
+       case BT_SAFARI:
+
+               radio = GetDlgItem(IDC_RADIO_SAFARI);
+               break;
+
+
+       case BT_OPERA:
+
+               radio = GetDlgItem(IDC_RADIO_OPERA);
+
+               break;
+
        default:
                goto skip;
        }
@@ -51,32 +63,41 @@ VOID CCookieSettingWindow::OnOK(UINT uNotifyCode, int nID, CWindow wndCtl){
        CButton firefoxRadio = GetDlgItem(IDC_RADIO_FIREFOX);
        CButton chromeRadio = GetDlgItem(IDC_RADIO_CHROME);
        CButton iecmRadio = GetDlgItem(IDC_RADIO_IECM);
+       CButton safariRadio = GetDlgItem(IDC_RADIO_SAFARI);
+       CButton operaRadio = GetDlgItem(IDC_RADIO_OPERA);
 
        if(ieRadio.GetCheck() == BST_CHECKED){
 
                this->browserType = BT_INTERNET_EXPLORER;
+               
+       }else if(firefoxRadio.GetCheck() == BST_CHECKED){
 
-       }
+               this->browserType = BT_FIRE_FOX;
 
-       if(firefoxRadio.GetCheck() == BST_CHECKED){
+       }else if(chromeRadio.GetCheck() == BST_CHECKED){
 
-               this->browserType = BT_FIRE_FOX;
+               this->browserType = BT_GOOGLE_CHROME;
 
-       }
+       }else if(iecmRadio.GetCheck() == BST_CHECKED){
 
-       if(chromeRadio.GetCheck() == BST_CHECKED){
+               this->browserType = BT_IE_COMPONENT;
 
-               this->browserType = BT_GOOGLE_CHROME;
+       }else if(safariRadio.GetCheck() == BST_CHECKED){
 
-       }
+               this->browserType = BT_SAFARI;
 
-       if(iecmRadio.GetCheck() == BST_CHECKED){
+       } else if(operaRadio.GetCheck() == BST_CHECKED){
 
-               this->browserType = BT_IE_COMPONENT;
+               this->browserType = BT_OPERA;
+       
+       }else {
+
+               this->browserType = BT_NOSETTING;
 
        }
 
 
+
        EndDialog(nID);
 }