Bonjour,


J'utilise une EditBox et je souhaite récupérer l'évement ON_EN_CHANGE.

Je mets tout en place dans le .cpp:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
BEGIN_MESSAGE_MAP(CEditVoie, ETSLayoutPropertyPage)
	ON_EN_CHANGE(IDC_COMMENT, OnEnChangeEditComment)
	ON_BN_CLICKED(IDC_BTN_VALIDATION_VERIF, OnButtonValidationVerif)
	ON_BN_CLICKED(IDC_CHECK_DATEVERIF, OnCheckDateVerif)
END_MESSAGE_MAP()
Dans le .h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // Prise en charge DDX/DDV
 
	DECLARE_MESSAGE_MAP()
	virtual BOOL OnInitDialog();
	afx_msg void OnEnChangeEditComment();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnButtonValidationVerif();
	afx_msg void OnCheckDateVerif();
Or quand je met un point d'arret dans ma fonction, je n'y passe jamais quand je change le text de l'editbox....

N.B : Dans les ressources j'ai vu que mon control avait le meme ID qu'un autre. Je l'ai donc changé et toujours le meme problème...

Quelqu'un aurit-il des pistes?

Merci