c++ - Get timer event in parent class -


मेरे पास MFC फ़ॉर्म InputYesNoDlg है जो कि CDialogExInput से लिया गया है। CDialogExInput में मैंने टाइमर जोड़ दिया है दुर्भाग्य से मैं InputYesNoDlg फ़ॉर्म बनाते समय टाइमर इवेंट प्राप्त नहीं कर सकता क्यों?

कोड CDialogExInput

h:

<पूर्व> #define ID_INPUT_TIMER 101 .. । Afx_msg शून्य ओनटिमर (यूआईएनटी यूटाईम); ...

सीपीपी:

  BEGIN_MESSAGE_MAP (CDialogExInput, CDialogEx) ON_WM_TIMER () END_MESSAGE_MAP () शून्य CDialogExInput :: OnTimer (यूआईएनटी यूटैम) {timeElapsedSec--; } BOOL CDialogExInput :: OnInitDialog () {SetTimer (ID_INPUT_TIMER, 1000, NULL); वापस सच; }  

कोड इनपुटहाँ नोदगी

सीपीपी:

  IMPLEMENT_DYNAMIC (इनपुट YESNoDlg , सीडीआलोगएक्सइनपूट) ... BOOL इनपुट YESNoDlg :: OnInitDialog () {वापसी CDialogExInput :: OnInitDialog (); } ...  


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -

python - Django Custom Admin Block For center of admin -