long longSelected = -1;
int intSelectedData = 0;
- if (!GetSelectedItem(lboLogos,
+ if (lboLogos->GetItemCount() == 0 || !GetSelectedItem(lboLogos,
&longSelected,
&intSelectedData)){
return;
{
// Bring up the window to add a logo.
-
- int intResult = 0;
-
+
frmContactEditorPicture *frameCELogo = new frmContactEditorPicture ( this );
frameCELogo->SetEditorMode(FALSE);
- intResult = GetLastInt(&ContactEditorData.LogosList);
frameCELogo->SetupPointers(&ContactEditorData.LogosList,
&ContactEditorData.LogosListAltID,
&ContactEditorData.LogosListPID,
frameCELogo->ShowModal();
delete frameCELogo;
frameCELogo = NULL;
-
+ intValueSeek++;
+
}
void frmContactEditor::ModifyLogo( wxCommandEvent& event )
long longSelected = -1;
int intSelectedData = 0;
- if (!GetSelectedItem(lboLogos,
+ if (lboLogos->GetItemCount() == 0 || !GetSelectedItem(lboLogos,
&longSelected,
&intSelectedData)){
return;
long longSelected = -1;
int intSelectedData = 0;
- if (!GetSelectedItem(lboLogos,
+ if (lboLogos->GetItemCount() == 0 || !GetSelectedItem(lboLogos,
&longSelected,
&intSelectedData)){
return;
long longSelected = -1;
int intSelectedData = 0;
- if (!GetSelectedItem(lboLogos,
+ if (lboLogos->GetItemCount() == 0 || !GetSelectedItem(lboLogos,
&longSelected,
&intSelectedData)){