Bonjour a tous,
Voila j'ai une variable CEdit m_Edit1 associée a un Edit Control. Je veux faire un truc du style :
Mais je ne peux pas car ma fonction ne connait pas m_Edit.void Display(void)
{
m_Edit.SetWindowText("he");
UpdateData(FALSE);
}Il ne connait pas non plus UpdateData(FALSE).

Comment faire ????
Merci

 

 
		
		 
         
  
			
			




 [Visual C++][MFC]Affichage dans un Edit Control a partir d'une function hors class
 [Visual C++][MFC]Affichage dans un Edit Control a partir d'une function hors class
				 Répondre avec citation
  Répondre avec citation 
  
  
  
 
 
   
 



 
 
 
			


 
				 
  
  Envoyé par mat.M
 Envoyé par mat.M
					
				 
						 . Le Edit1 étant déclaré en variable global de type CEdit*  comment le programme peut savoir quand on fait Edit1->SetWindowText("ho"); que cela s'adresse a notre EditControl? Si il y en a plusieurs dans la fenetre?
 . Le Edit1 étant déclaré en variable global de type CEdit*  comment le programme peut savoir quand on fait Edit1->SetWindowText("ho"); que cela s'adresse a notre EditControl? Si il y en a plusieurs dans la fenetre?


 
			
Partager