Asked: 2 years 6 months 5 days 16 hours 47 minutes ago
Viewed: 628 times
Activity: 2 years 13 days 20 hours 34 minutes ago
Coded the following to deal with window/form level tasks, but only 'FormMain_OnClose' and 'FormMain_OnDestroy' worked without run time errors.
IFormMain.h code samples:
// Events(Should be implemented in derived widget)
virtual void FormMain_OnResize(IForm *sender) = 0;
virtual void FormMain_OnCreate(IForm *sender) = 0;
virtual void FormMain_OnDestroy(IForm *sender) = 0;
virtual void FormMain_OnClose(IForm *sender, CLOSE_ACTION &action) = 0;
FormMain.h sample code:
void FormMain_onResize(IForm *sender) override;
void FormMain_onCreate(IForm *sender) override;
Sample Code in my FormMain.cpp for two of the metheds:
void CFormMain::FormMain_OnCreate(IForm *sender)
Application->getDialogs()->Message(L"WM_CREATE received", L"WinMsgs");
void CFormMain::FormMain_OnResize(IForm *sender)
Application->getDialogs()->Message(L"WM_SIZE received", L"WinMsgs");
'FormMain_OnMove(', 'FormMain_OnCreate','FormMain_OnResize','FormMain_OnPaint', and 'FormMain_OnPaintEnd' each caused run time errors.Main form would come up but so did a run time error message with options Abort, Ignore and something else...All options caused the app to end.
I have examined and run the tutorials. Are there any other basic examples for this software product?