File: PROTOCOL\TProtocolPasswortDlg.cpp

    1 //******************************************************************************
    2 //Datei     : TProtocolPasswortDlg.cpp
    3 //Projekt   : XCTL
    4 //Subsystem : Protokollbuch
    5 //Autor     : Jens Klier <klier@informatik.hu-berlin.de>
    6 //            Institut fuer Informatik,
    7 //            Humboldt-Universitaet Berlin
    8 //Inhalt    : Implementation der Klasse TProtocolPasswortDlg
    9 //******************************************************************************
   10 //!neu klier Protokollbuch
   11 #include "internls\evrythng.h"
   12 #include "winresrc\rc_prtow.h" // Ressourcen-IDs
   13 #include <commdlg.h>
   14 
   15 #include "protocol\TProtocolLanguage.h"
   16 #include "protocol\TProtocol.h"
   17 #include "protocol\TProtocolDlg.h"
   18 #include "protocol\TProtocolPasswortDlg.h"
   19 
   20 //--||--\\--||--//--||--\\--||--//--||--\\--||--//--||--\\--||--//--||--\\--||--
   21 
   22 extern TProtocolLanguage *ProtocolLanguage;
   23 extern HINSTANCE hModuleInstance;
   24 
   25 TProtocolPasswortDlg::TProtocolPasswortDlg(LPSTR Dlg, TProtocolDlg *ProtocolDlg) : 
   26                 TModalDlg(Dlg,hModuleInstance), ProtocolDlg(ProtocolDlg)
   27 {}
   28 ;
   29 
   30 
   31 BOOL TProtocolPasswortDlg::Dlg_OnInit(HWND hwnd, HWND, LPARAM)
   32 {
   33         strcpy(ProtocolDlg->Passwort, "");
   34         ProtocolLanguage->SetPasswortDlgLanguage(hwnd);
   35         return TRUE;
   36 };
   37 
   38 void TProtocolPasswortDlg::Dlg_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
   39 {
   40         char buf[MaxString];
   41 
   42         switch (id)
   43         {
   44                 case IDOK:
   45                         GetDlgItemText(hwnd, id_Passwort, buf, MaxString);
   46                         strcpy(ProtocolDlg->Passwort, buf);
   47                         // Kullmann+Reinecker: Hier muss kein break hin, weiter bei TModalDlg::Dlg_OnCommand!
   48 
   49                 default:
   50                         TModalDlg::Dlg_OnCommand(hwnd, id, hwndCtl, codeNotify);
   51         }
   52 };
   53 
   54 // LastLine
   55 
   56 
   57