file.h have: class CTaskbarNotifier : public CWnd
///////
CTaskbarNotifier m_wndTaskbarNotifier;
\\\\\\\
file.cpp
///////
{
// create the layout
createLayout();
// create the animations
createAnimations();
m_wndTaskbarNotifier.Create(/*what_this?*/);
}
myfile::myfile(QWidget *parent) : QWidget(parent)
{
// create the layout
createLayout();
// create the animations
createAnimations();
m_wndTaskbarNotifier.Create(/*what_this?*/);
}
To copy to clipboard, switch view to plain text mode
\\\\\\\
Include TaskbarNotifier.cpp
///////
int CTaskbarNotifier::Create(CWnd *pWndParent)
{
m_pWndParent=pWndParent;
CString strWndClass=AfxRegisterWndClass(0,AfxGetApp()->LoadStandardCursor(IDC_ARROW),GetSysColorBrush(COLOR_WINDOW),NULL);
return CreateEx(0,strWndClass,NULL,WS_POPUP,0,0,0,0,pWndParent->m_hWnd,NULL);
}
int CTaskbarNotifier::Create(CWnd *pWndParent)
{
m_pWndParent=pWndParent;
CString strWndClass=AfxRegisterWndClass(0,AfxGetApp()->LoadStandardCursor(IDC_ARROW),GetSysColorBrush(COLOR_WINDOW),NULL);
return CreateEx(0,strWndClass,NULL,WS_POPUP,0,0,0,0,pWndParent->m_hWnd,NULL);
}
To copy to clipboard, switch view to plain text mode
\\\\\\\
Thanks!!!
Bookmarks