Home > Software engineering >  CDockablePane add timer after entering ontimer window disappear, call ShowPane can appear time after
CDockablePane add timer after entering ontimer window disappear, call ShowPane can appear time after

Time:10-05



Void ClistView: : OnTimer (UINT_PTR nIDEvent)
{
//TODO: add the message handler code and/or invoke the default

CDockablePane: : OnTimer (nIDEvent);
}


Int ClistView: : OnCreate (LPCREATESTRUCT LPCREATESTRUCT)
{
If (CDockablePane: : OnCreate (lpCreateStruct)==1)
return -1;

//TODO: here to add your special creation code
M_wndLable. Create (L ", "you two big ye, WS_CHILD | WS_VISIBLE | SS_LEFT | SS_SIMPLE, CRect (10, 10, 150, 150), this);
The SetTimer (1, 1000, NULL);

return 0;
}


Void ClistView: : OnSize (UINT nType, cx, int int cy)
{
CDockablePane: : OnSize (cx, nType, cy);

//TODO: add message handler code here
//RichEdit control should cover the entire workspace:
M_wndLable. SetWindowPos (NULL, 1, 1, cx, cy, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER);
}

CodePudding user response:

Look at the CDockablePane: : OnTimer (nIDEvent); What did it do
  • Related