1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
/* .h de la classe
#pragma once
#include "grid\gridctrl.h"
#include "afxwin.h"
#define DLLEXPORT _declspec(dllexport)
typedef struct structCaractereClavier{
public :
int iNumLigne;
int iNumColonne;
CString strSequenceCaracteres;
CString strCommentaire;
} structCaractereClavier;
typedef CList<structCaractereClavier *, structCaractereClavier *> lstPPCaracteresClavier;
// Boîte de dialogue CTableCaracteresDlg
class CTableCaracteresDlg : public CDialog
{
DECLARE_DYNAMIC(CTableCaracteresDlg)
private:
CFrameWnd * m_pMainFrame;
CString m_strCaractereChoisi;
CString m_strTableCourante;
CSize m_OldSize;
CString m_strCommentaire;
// CString m_strCode;
lstPPCaracteresClavier * m_plstCaracteres;
CComboBox m_comboChoixTable;
void ClearTable();
void RedimensionnerFenetre();
void InitialiserListeNomsDeTables();
protected:
DLLEXPORT virtual void DoDataExchange(CDataExchange* pDX); // Prise en charge DDX/DDV
DLLEXPORT virtual BOOL OnInitDialog();
DLLEXPORT BOOL PreTranslateMessage(MSG* pMsg);
/* afx_msg void OnSysKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnSysKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
*/
DECLARE_MESSAGE_MAP()
public:
CGridCtrl m_grdTableCaracteres;
CMapStringToPtr m_lstTablesCaracteres;
DLLEXPORT CTableCaracteresDlg(CWnd* pParent = NULL); // constructeur standard
DLLEXPORT virtual ~CTableCaracteresDlg();
DLLEXPORT void createDLG() ;
//DLLEXPORT void SetPMainFrame(CFrameWnd * pMainFrame);
void Initialiser();
DLLEXPORT CString GetCaractereChoisi();
DLLEXPORT CString GetTableCourante();
void ChargerTableComplete(void);
DLLEXPORT void ChargerTable(CString strNomTable);
void GetListeNomsClaviers(CList<CString, CString&>& lstNomsClaviers) ;
lstPPCaracteresClavier * GetListeCaracteres(CString strNomClavier) ;
DLLEXPORT void AjouterRangeCaracteresDansTable(CString strNomClavier, int iNumLigne, int iNumColonne, CStringArray *tabCaracteresUnicodes, CString strCommentaire) ;
DLLEXPORT void AjouterSequenceCaracteresDansTable(CString strNomClavier, int iNumLigne, int iNumColonne, CStringArray *tabCaracteresUnicodes, CString strCommentaire) ;
DLLEXPORT void AjouterCaractereDansTable(CString strNomClavier, int iNumLigne, int iNumColonne, WCHAR * strCaracteres, CString strCommentaire) ;
//void ViderTablesCaracteres() ;
// Données de boîte de dialogue
enum { IDD = IDD_DLG_TABLECARACTERES };
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBnClickedValider();
afx_msg void OnGridDblClick(NMHDR *pNotifyStruct, LRESULT* pResult);
afx_msg void OnGridToolTipsCreated(NMHDR *pNotifyStruct, LRESULT* pResult);
/* afx_msg void OnAffichageTableCaracteres();
afx_msg void OnAffichageTableCaracteres01();
afx_msg void OnAffichageTableCaracteres02();
afx_msg void OnAffichageTableCaracteres03();
afx_msg void OnAffichageTableCaracteres04();
afx_msg void OnAffichageTableCaracteres05();
afx_msg void OnAffichageTableCaracteres06();
afx_msg void OnAffichageTableCaracteres07();
afx_msg void OnAffichageTableCaracteres08();
*/
afx_msg void OnCbnDropdownCombochoixtable();
afx_msg void OnCbnKillfocusCombochoixtable();
afx_msg void OnCbnCloseupCombochoixtable();
afx_msg void OnCbnSelchangeCombochoixtable();
};
*/ |
Partager