- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeAddresses,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
- frameCEAddress->SetupPointers(&ContactEditorData.HomeAddressList,
- &ContactEditorData.HomeAddressListTown,
- &ContactEditorData.HomeAddressListCounty,
- &ContactEditorData.HomeAddressListPostCode,
- &ContactEditorData.HomeAddressListCountry,
- &ContactEditorData.HomeAddressListLabel,
- &ContactEditorData.HomeAddressListLang,
- &ContactEditorData.HomeAddressListAltID,
- &ContactEditorData.HomeAddressListPID,
- &ContactEditorData.HomeAddressListTokens,
- &ContactEditorData.HomeAddressListGeo,
- &ContactEditorData.HomeAddressListTimezone,
- &ContactEditorData.HomeAddressListType,
- &ContactEditorData.HomeAddressListMediatype,
- &ContactEditorData.HomeAddressListPref,
- lboHomeAddresses,
- intSelectedData);
- frameCEAddress->SetEditorMode(TRUE, CE_HOME);
- frameCEAddress->ShowModal();
- delete frameCEAddress;
- frameCEAddress = NULL;
+
+ // Bring up window to modify address.
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeAddresses,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
+ frameCEAddress->SetupPointers(&ContactEditorData.HomeAddressList,
+ &ContactEditorData.HomeAddressListTown,
+ &ContactEditorData.HomeAddressListCounty,
+ &ContactEditorData.HomeAddressListPostCode,
+ &ContactEditorData.HomeAddressListCountry,
+ &ContactEditorData.HomeAddressListLabel,
+ &ContactEditorData.HomeAddressListLang,
+ &ContactEditorData.HomeAddressListAltID,
+ &ContactEditorData.HomeAddressListPID,
+ &ContactEditorData.HomeAddressListTokens,
+ &ContactEditorData.HomeAddressListGeo,
+ &ContactEditorData.HomeAddressListTimezone,
+ &ContactEditorData.HomeAddressListType,
+ &ContactEditorData.HomeAddressListMediatype,
+ &ContactEditorData.HomeAddressListPref,
+ lboHomeAddresses,
+ intSelectedData);
+ frameCEAddress->SetEditorMode(TRUE, CE_HOME);
+ frameCEAddress->ShowModal();
+ delete frameCEAddress;
+ frameCEAddress = NULL;
+