From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/GetVal_cpp-source.html | 149 ++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 docs/doxygen/nel/GetVal_cpp-source.html (limited to 'docs/doxygen/nel/GetVal_cpp-source.html') diff --git a/docs/doxygen/nel/GetVal_cpp-source.html b/docs/doxygen/nel/GetVal_cpp-source.html new file mode 100644 index 00000000..77224ab6 --- /dev/null +++ b/docs/doxygen/nel/GetVal_cpp-source.html @@ -0,0 +1,149 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

GetVal.cpp

Go to the documentation of this file.
00001 // GetVal.cpp : implementation file
+00002 //
+00003 
+00004 #include "stdafx.h"
+00005 #include "resource.h"
+00006 #include "GetVal.h"
+00007 
+00008 #ifdef _DEBUG
+00009 #define new DEBUG_NEW
+00010 #undef THIS_FILE
+00011 static char THIS_FILE[] = __FILE__;
+00012 #endif
+00013 
+00015 // GetVal dialog
+00016 
+00017 //#define CARACTERES_INVALIDE "/\:*?"<>|"
+00018 char CaracteresInvalides[]={47,92,58,'*','?',34,60,62,124,0};
+00019 
+00020 GetVal::GetVal(CWnd* pParent /*=NULL*/)
+00021         : CDialog(GetVal::IDD, pParent)
+00022 {
+00023         //{{AFX_DATA_INIT(GetVal)
+00024                 // NOTE: the ClassWizard will add member initialization here
+00025         //}}AFX_DATA_INIT
+00026 }
+00027 
+00028 
+00029 void GetVal::DoDataExchange(CDataExchange* pDX)
+00030 {
+00031         CDialog::DoDataExchange(pDX);
+00032         //{{AFX_DATA_MAP(GetVal)
+00033                 // NOTE: the ClassWizard will add DDX and DDV calls here
+00034         //}}AFX_DATA_MAP
+00035 }
+00036 
+00037 BEGIN_MESSAGE_MAP(GetVal, CDialog)
+00038         //{{AFX_MSG_MAP(GetVal)
+00039         //}}AFX_MSG_MAP
+00040 END_MESSAGE_MAP()
+00041 
+00043 // GetVal message handlers
+00044 
+00045 
+00046 void GetVal::OnOK() 
+00047 {
+00048         // TODO: Add extra validation here
+00049         NameOk=1;
+00050         CEdit *EditStr=(CEdit*)GetDlgItem(IDC_EDIT_ADD_TERRITOIRE);
+00051         CString rString;
+00052         EditStr->GetWindowText( rString );
+00053         int size = rString.GetLength();
+00054         name = new char[size+1];
+00055         strcpy (name, rString);
+00070         CDialog::OnOK();
+00071 }
+00072 
+00073 void GetVal::OnCancel() 
+00074 {
+00075         // TODO: Add extra cleanup here
+00076         NameOk=0;       
+00077         CDialog::OnCancel();
+00078 }
+00079 
+00080 LRESULT GetVal::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
+00081 {
+00082         // TODO: Add your specialized code here and/or call the base class
+00083         if (message==WM_INITDIALOG)
+00084         {
+00085                 CEdit *ed = (CEdit*)GetDlgItem(IDC_EDIT_ADD_TERRITOIRE);
+00086                 ed->SetFocus();
+00087                 ed->SetLimitText(100);
+00088         }
+00089 
+00090         return CDialog::WindowProc(message, wParam, lParam);
+00091 }
+
+ + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1