|
Bas de page | |
---|---|
Auteur | Sujet : mise en oeuvre d'un timer |
Publicité | Posté le 13-05-2004 à 17:36:32 |
Taz bisounours-codeur | euh, j'y connais rien, mais bon
|
Ace17 | Effectivement, tu n'y connais rien, mais vu que c'est de la programmation Windows... on peut te comprendre
|
lecoyote | la fonction OnTimer() est normalement une fonction appelé par défaut lors du lancement du timer... |
lecoyote |
lecoyote | enfin, de toute manière, même de cette facon, mon OnTimer() n'ai qd meme pas appelé... |
Ace17 | Tu veux dire MON_TIMER_ID?
Message édité par Ace17 le 14-05-2004 à 08:55:48 |
Ace17 | Essaie déja avec ca...
Message édité par Ace17 le 14-05-2004 à 08:58:15 |
Ace17 | Au fait ca parait débile mais MonProg ca dérive bien d'un CWnd j'espere? |
lecoyote | voila, en fait c'est de ma faute, j'ai oublié de préciser que mon app est une SDI et que ma classe hérite de CDialog ...
|
Publicité | Posté le 14-05-2004 à 09:05:28 |
Ace17 | class CDialog : public CWnd
|
lecoyote | elle est bien appelé car dans cette fonction, j'ai toute une connexion qui s'établit à une caméra est affiche le flux vidéo de celle-ci à mon écran.
|
Ace17 | Question idiote, encore :
|
lecoyote |
|
lecoyote |
|
Ace17 | Montre comment est déclaré OnTimer dans la classe MonProg |
lecoyote | heu.... je l'ai déclaré en void .... c'est plutot du type CDialog ? |
Ace17 |
Message édité par Ace17 le 14-05-2004 à 09:28:49 |
lecoyote | voila fait, cependant, ma fonction n'est toujours pas appelé par SetTimer()... ! |
Ace17 | Bon, balance tout ton code |
lecoyote | le .h :
|
Ace17 |
Message édité par Ace17 le 14-05-2004 à 10:36:58 |
lecoyote | lol, oui c'était ca... j'aime bien comprendre ce que je fais, alors je me tappe tout à la main, et j'avais complètement oublié de le rajouter à la main !
|
Publicité | Posté le |
Sujets relatifs | |
---|---|
mise à jour automatique de champs | Mise à jour automatique d'un champ d'un formulaire |
Impression/configuration/mise en page | [CSS] mise en page et largeur dynamique |
mise en forme résultat d'une requete SQL | MFC appeler un "event" pour simuler 1 timer |
Timer | attacher un timer à une fonction |
[CSS] Probleme de mise en forme... | [Dreamweaer Mx] : Pb d'espaces entre 'tableau de mise en forme' |
Plus de sujets relatifs à : mise en oeuvre d'un timer |