Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditorCategory: Implemented priority control
[xestiaab/.git] / source / contacteditor / frmContactEditor-General.cpp
index 75ececb..96249b3 100644 (file)
 void frmContactEditor::AddGeneralNickname( wxCommandEvent& event )
 {
 
-       int intResult = 0;
-    
+       // Bring up the window for adding a nickname.
+       
        frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
        frameCENickname->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralNicknamesList);
        frameCENickname->SetupPointers(&ContactEditorData.GeneralNicknamesList,
                &ContactEditorData.GeneralNicknamesListAltID,
                &ContactEditorData.GeneralNicknamesListPID,
@@ -59,10 +58,12 @@ void frmContactEditor::AddGeneralNickname( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralNickname( wxCommandEvent& event )
 {
     
+       // Bring up the window for modifying a nickname.
+    
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboNicknames,
+       if (lboNicknames->GetItemCount() == 0 || !GetSelectedItem(lboNicknames,
                &longSelected,
                &intSelectedData)){
                return;
@@ -88,10 +89,12 @@ void frmContactEditor::ModifyGeneralNickname( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralNickname( wxCommandEvent& event )
 {
     
+       // Bring up the window for deleting a nickname.
+    
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboNicknames,
+       if (lboNicknames->GetItemCount() == 0 || !GetSelectedItem(lboNicknames,
                &longSelected,
                &intSelectedData)){
                return;
@@ -113,11 +116,10 @@ void frmContactEditor::DeleteGeneralNickname( wxCommandEvent& event )
 void frmContactEditor::AddGeneralAddress( wxCommandEvent& event )
 {
     
-       int intResult = 0;
+       // Bring up the window for adding an address.
     
        frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
        frameCEAddress->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralAddressList);
        frameCEAddress->SetupPointers(&ContactEditorData.GeneralAddressList,
                &ContactEditorData.GeneralAddressListTown,
                &ContactEditorData.GeneralAddressListCounty,
@@ -143,11 +145,13 @@ void frmContactEditor::AddGeneralAddress( wxCommandEvent& event )
 
 void frmContactEditor::ModifyGeneralAddress( wxCommandEvent& event )
 {
+
+       // Bring up the window for editing an address.
     
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboAddresses,
+       if (lboAddresses->GetItemCount() == 0 || !GetSelectedItem(lboAddresses,
                &longSelected,
                &intSelectedData)){
         
@@ -189,10 +193,12 @@ void frmContactEditor::ModifyGeneralAddress( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralAddress( wxCommandEvent& event )
 {
     
+       // Bring up the window for deleting a nickname.
+    
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboAddresses,
+       if (lboAddresses->GetItemCount() == 0 || !GetSelectedItem(lboAddresses,
                &longSelected,
                &intSelectedData)){
         
@@ -217,11 +223,10 @@ void frmContactEditor::DeleteGeneralAddress( wxCommandEvent& event )
 void frmContactEditor::AddGeneralEmail( wxCommandEvent& event )
 {
 
-       int intResult = 0;
-    
+       // Bring up the window for adding an email.
+
        frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
        frameCEEmail->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralAddressList);
        frameCEEmail->SetupPointers(&ContactEditorData.GeneralEmailList,
                &ContactEditorData.GeneralEmailListAltID,
                &ContactEditorData.GeneralEmailListPID,
@@ -239,10 +244,12 @@ void frmContactEditor::AddGeneralEmail( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralEmail( wxCommandEvent& event )
 {
 
+       // Bring up the window for modifying an email.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboEmails,
+       if (lboEmails->GetItemCount() == 0 || !GetSelectedItem(lboEmails,
                &longSelected,
                &intSelectedData)){
         
@@ -269,10 +276,12 @@ void frmContactEditor::ModifyGeneralEmail( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralEmail( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting an email.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboEmails,
+       if (lboEmails->GetItemCount() == 0 || !GetSelectedItem(lboEmails,
                &longSelected,
                &intSelectedData)){
         
@@ -292,11 +301,10 @@ void frmContactEditor::DeleteGeneralEmail( wxCommandEvent& event )
 void frmContactEditor::AddGeneralIM( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a IM address.
     
        frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
        frameCEIM->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralIMList);
        frameCEIM->SetupPointers(&ContactEditorData.GeneralIMList,
                &ContactEditorData.GeneralIMListAltID,
                &ContactEditorData.GeneralIMListPID,
@@ -316,10 +324,12 @@ void frmContactEditor::AddGeneralIM( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralIM( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a IM address.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboIM,
+       if (lboIM->GetItemCount() == 0 || !GetSelectedItem(lboIM,
                &longSelected,
                &intSelectedData)){
                
@@ -348,10 +358,12 @@ void frmContactEditor::ModifyGeneralIM( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralIM( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting an IM address.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboIM,
+       if (lboIM->GetItemCount() == 0 || !GetSelectedItem(lboIM,
                &longSelected,
                &intSelectedData)){
                
@@ -371,11 +383,10 @@ void frmContactEditor::DeleteGeneralIM( wxCommandEvent& event )
 void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a telephone.
     
        frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
        frameCETel->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralTelephoneList);
        frameCETel->SetupPointers(&ContactEditorData.GeneralTelephoneList,
                &ContactEditorData.GeneralTelephoneListAltID,
                &ContactEditorData.GeneralTelephoneListPID,
@@ -394,10 +405,12 @@ void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralTelephone( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a telephone.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTelephone,
+       if (lboTelephone->GetItemCount() == 0 || !GetSelectedItem(lboTelephone,
                &longSelected,
                &intSelectedData)){
                
@@ -425,10 +438,12 @@ void frmContactEditor::ModifyGeneralTelephone( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralTelephone( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a telephone.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTelephone,
+       if (lboTelephone->GetItemCount() == 0 || !GetSelectedItem(lboTelephone,
                &longSelected,
                &intSelectedData)){
                
@@ -448,11 +463,10 @@ void frmContactEditor::DeleteGeneralTelephone( wxCommandEvent& event )
 void frmContactEditor::AddGeneralLanguages( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a language.
     
        frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
        frameCELang->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralLanguageList);
        frameCELang->SetupPointers(&ContactEditorData.GeneralLanguageList,
                &ContactEditorData.GeneralLanguageListAltID,
                &ContactEditorData.GeneralLanguageListPID,
@@ -470,10 +484,12 @@ void frmContactEditor::AddGeneralLanguages( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralLanguages( wxCommandEvent& event )
 {
 
+       // Bring up the window for modifying a language.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboLanguages,
+       if (lboLanguages->GetItemCount() == 0 || !GetSelectedItem(lboLanguages,
                &longSelected,
                &intSelectedData)){
         
@@ -500,10 +516,12 @@ void frmContactEditor::ModifyGeneralLanguages( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralLanguage( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a language.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboLanguages,
+       if (lboLanguages->GetItemCount() == 0 || !GetSelectedItem(lboLanguages,
                &longSelected,
                &intSelectedData)){
                
@@ -522,11 +540,10 @@ void frmContactEditor::DeleteGeneralLanguage( wxCommandEvent& event )
 void frmContactEditor::AddGeneralTimezone( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a timezone.
     
        frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
        frameCETZ->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralTZList);
        frameCETZ->SetupPointers(&ContactEditorData.GeneralTZList,
                &ContactEditorData.GeneralTZListAltID,
                &ContactEditorData.GeneralTZListPID,
@@ -545,10 +562,12 @@ void frmContactEditor::AddGeneralTimezone( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralTimezone( wxCommandEvent& event )
 {
 
+       // Bring up a window for editing a timezone.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTimezones,
+       if (lboTimezones->GetItemCount() == 0 || !GetSelectedItem(lboTimezones,
                &longSelected,
                &intSelectedData)){
                
@@ -575,10 +594,12 @@ void frmContactEditor::ModifyGeneralTimezone( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralTimezone( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a timezone.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTimezones,
+       if (lboTimezones->GetItemCount() == 0 || !GetSelectedItem(lboTimezones,
                &longSelected,
                &intSelectedData)){
                
@@ -598,11 +619,10 @@ void frmContactEditor::DeleteGeneralTimezone( wxCommandEvent& event )
 void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a geoposition location.
     
        frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
        frameCEGeo->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralGeographyList);
        frameCEGeo->SetupPointers(&ContactEditorData.GeneralGeographyList,
                &ContactEditorData.GeneralGeographyListAltID,
                &ContactEditorData.GeneralGeographyListPID,
@@ -622,10 +642,12 @@ void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralGeoposition( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a geoposition location.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboGeoposition,
+       if (lboGeoposition->GetItemCount() == 0 || !GetSelectedItem(lboGeoposition,
                &longSelected,
                &intSelectedData)){
                
@@ -655,10 +677,12 @@ void frmContactEditor::ModifyGeneralGeoposition( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralGeoposition( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a geoposition location.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboGeoposition,
+       if (lboGeoposition->GetItemCount() == 0 || !GetSelectedItem(lboGeoposition,
                &longSelected,
                &intSelectedData)){
                
@@ -679,11 +703,10 @@ void frmContactEditor::DeleteGeneralGeoposition( wxCommandEvent& event )
 void frmContactEditor::AddGeneralRelated( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a relation.
     
        frmContactEditorRelated *frameCERel = new frmContactEditorRelated ( this );
        frameCERel->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralRelatedList);
        frameCERel->SetupPointers(&ContactEditorData.GeneralRelatedList,
                &ContactEditorData.GeneralRelatedListRelType,
                &ContactEditorData.GeneralRelatedListAltID,
@@ -702,10 +725,12 @@ void frmContactEditor::AddGeneralRelated( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralRelated( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a relation.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboRelated,
+       if (lboRelated->GetItemCount() == 0 || !GetSelectedItem(lboRelated,
                &longSelected,
                &intSelectedData)){
                
@@ -733,10 +758,12 @@ void frmContactEditor::ModifyGeneralRelated( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event )
 {
 
+       // Bring up a window for deleting a relation.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboRelated,
+       if (lboRelated->GetItemCount() == 0 || !GetSelectedItem(lboRelated,
                &longSelected,
                &intSelectedData)){
                
@@ -756,11 +783,10 @@ void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event )
 void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up a window for adding a website.
     
        frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
        frameCEWeb->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralWebsiteList);
        frameCEWeb->SetupPointers(&ContactEditorData.GeneralWebsiteList,
                &ContactEditorData.GeneralWebsiteListAltID,
                &ContactEditorData.GeneralWebsiteListPID,
@@ -779,10 +805,12 @@ void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralWebsite( wxCommandEvent& event )
 {
     
+       // Bring up a window for editing a website.
+    
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboWebsites,
+       if (lboWebsites->GetItemCount() == 0 || !GetSelectedItem(lboWebsites,
                &longSelected,
                &intSelectedData)){
                
@@ -810,10 +838,12 @@ void frmContactEditor::ModifyGeneralWebsite( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralWebsite( wxCommandEvent& event )
 {
 
+       // Bring up a window for deleting a website.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboWebsites,
+       if (lboWebsites->GetItemCount() == 0 || !GetSelectedItem(lboWebsites,
                &longSelected,
                &intSelectedData)){
                
@@ -833,11 +863,10 @@ void frmContactEditor::DeleteGeneralWebsite( wxCommandEvent& event )
 void frmContactEditor::AddGeneralTitle( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a title.
     
        frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
        frameCETitle->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralTitleList);
        frameCETitle->SetupPointers(&ContactEditorData.GeneralTitleList,
                &ContactEditorData.GeneralTitleListLanguage,
                &ContactEditorData.GeneralTitleListAltID,
@@ -856,10 +885,12 @@ void frmContactEditor::AddGeneralTitle( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralTitle( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a title.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTitles,
+       if (lboTitles->GetItemCount() == 0 || !GetSelectedItem(lboTitles,
                &longSelected,
                &intSelectedData)){
                
@@ -887,10 +918,12 @@ void frmContactEditor::ModifyGeneralTitle( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralTitle( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a title.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboTitles,
+       if (lboTitles->GetItemCount() == 0 || !GetSelectedItem(lboTitles,
                &longSelected,
                &intSelectedData)){
                
@@ -910,11 +943,10 @@ void frmContactEditor::DeleteGeneralTitle( wxCommandEvent& event )
 void frmContactEditor::AddGeneralRole( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a role.
     
        frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
        frameCERole->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralRoleList);
        frameCERole->SetupPointers(&ContactEditorData.GeneralRoleList,
                &ContactEditorData.GeneralRoleListLanguage,
                &ContactEditorData.GeneralRoleListAltID,
@@ -933,10 +965,12 @@ void frmContactEditor::AddGeneralRole( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralRole( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a role.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboRoles,
+       if (lboRoles->GetItemCount() == 0 || !GetSelectedItem(lboRoles,
                &longSelected,
                &intSelectedData)){
                
@@ -964,10 +998,12 @@ void frmContactEditor::ModifyGeneralRole( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralRole( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting a role.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboRoles,
+       if (lboRoles->GetItemCount() == 0 || !GetSelectedItem(lboRoles,
                &longSelected,
                &intSelectedData)){
                
@@ -987,11 +1023,10 @@ void frmContactEditor::DeleteGeneralRole( wxCommandEvent& event )
 void frmContactEditor::AddGeneralOrganisation( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding an organisation.
     
        frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
        frameCEOrg->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralOrganisationsList);
        frameCEOrg->SetupPointers(&ContactEditorData.GeneralOrganisationsList,
                &ContactEditorData.GeneralOrganisationsListLanguage,
                &ContactEditorData.GeneralOrganisationsListSortAs,
@@ -1011,10 +1046,12 @@ void frmContactEditor::AddGeneralOrganisation( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralOrganisation( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing an organisation.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboOrganisations,
+       if (lboOrganisations->GetItemCount() == 0 || !GetSelectedItem(lboOrganisations,
                &longSelected,
                &intSelectedData)){
                
@@ -1043,10 +1080,12 @@ void frmContactEditor::ModifyGeneralOrganisation( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralOrganisation( wxCommandEvent& event )
 {
 
+       // Bring up the window for deleting an organisation.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboOrganisations,
+       if (lboOrganisations->GetItemCount() == 0 || !GetSelectedItem(lboOrganisations,
                &longSelected,
                &intSelectedData)){
                
@@ -1067,11 +1106,10 @@ void frmContactEditor::DeleteGeneralOrganisation( wxCommandEvent& event )
 void frmContactEditor::AddGeneralNote( wxCommandEvent& event )
 {
 
-       int intResult = 0;
+       // Bring up the window for adding a note.
     
        frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
        frameCENote->SetEditorMode(FALSE, CE_GENERAL);
-       intResult = GetLastInt(&ContactEditorData.GeneralNoteList);
        frameCENote->SetupPointers(&ContactEditorData.GeneralNoteList,
                &ContactEditorData.GeneralNoteListLanguage,
                &ContactEditorData.GeneralNoteListAltID,
@@ -1090,10 +1128,12 @@ void frmContactEditor::AddGeneralNote( wxCommandEvent& event )
 void frmContactEditor::ModifyGeneralNote( wxCommandEvent& event )
 {
 
+       // Bring up the window for editing a note.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboNotes,
+       if (lboNotes->GetItemCount() == 0 || !GetSelectedItem(lboNotes,
                &longSelected,
                &intSelectedData)){
                
@@ -1121,10 +1161,12 @@ void frmContactEditor::ModifyGeneralNote( wxCommandEvent& event )
 void frmContactEditor::DeleteGeneralNote( wxCommandEvent& event )
 {
 
+       // Bring up a window for deleting a note.
+
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboNotes,
+       if (lboBusinessNotes->GetItemCount() == 0 || !GetSelectedItem(lboNotes,
                &longSelected,
                &intSelectedData)){
                
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy