SetTimer issue
I have 2 classesclass Cmyclass1 : public CFormViewclass Cmyclass2 : public CWndCmyclass1 creates an instance of Cmyclass2Cmyclass2* pmc2 = new Cmyclass2;and then callspmc2->myfuncwhich then sets a...
View ArticleSetTimer issue
I have 2 classes class Cmyclass1 : public CFormView class Cmyclass2 : public CWnd Cmyclass1 creates an instance of Cmyclass2 Cmyclass2* pmc2 = new Cmyclass2; and then calls pmc2->myfunc which then...
View ArticleSetTimer issue
ok thanks, I think you're right.after thisCmyclass2* pmc2 = new Cmyclass2;I need topmc2->Create(NULL, "myWnd", WS_CHILD, CRect(0, 0, 0, 0), this, 1234);and laterpmc2->DestroyWindow()is this only...
View ArticleSetTimer issue
All windows process messages, and need Create/DestroyWindow. The underlying problem you encountered is that the timer messages are sent to an HWND, and your object does not have an HWND until you call...
View Article