PgmCtrl::~PgmCtrl()
{
delete p_imageListNormal;
+ delete popupMenu1;
}
//----------------------------------------------------------------------------------------
#undef TREE_EVENT_HANDLER
return 0;
}
//----------------------------------------------------------------------------------------
-void PgmCtrl::OnSelChanged(wxTreeEvent& WXUNUSED(event))
+void PgmCtrl::OnSelChanged(wxMouseEvent& WXUNUSED(event))
{
int i;
Temp0.Empty(); Temp1.Empty();
}
//--------------------------------------------------------------------------------------
}
-}
+} // void PgmCtrl::OnRightSelect(wxTreeEvent& WXUNUSED(event))
//----------------------------------------------------------------------------------------
void PgmCtrl::OnMouseMove(wxMouseEvent &event)
{
TreePos = event.GetPosition();
}
//----------------------------------------------------------------------------------------
-void PgmCtrl::OnUserPassword()
+void PgmCtrl::OnUserPassword(wxCommandEvent& WXUNUSED(event))
{
// wxMessageBox(SaveDSN);
- int i, rc=0;
- //-------------------------------------------
- DlgUser *p_Dlg = new DlgUser(this, "Username and Password");
+ int i;
+ //--------------------------------------------
+ DlgUser *p_Dlg = new DlgUser(this,pDoc,"");
//-------------------------------------------
for (i=0;i<pDoc->i_DSN;i++)
{
if (SaveDSN == (pDoc->p_DSN+i)->Dsn)
{
+ p_Dlg->pDoc = pDoc;
p_Dlg->s_DSN = (pDoc->p_DSN+i)->Dsn;
p_Dlg->s_User = (pDoc->p_DSN+i)->Usr;
p_Dlg->s_Password = (pDoc->p_DSN+i)->Pas;