void Myclass::CreateTaskbarNotifier()
{
CTaskbarNotifier pTaskbarItem;
afxCurrentInstanceHandle = qWinAppInst();
CWnd *pWnd;
pWnd = AfxGetApp()->GetMainWnd();
pTaskbarItem.Create(pWnd);
}
int CTaskbarNotifier::Create(CWnd *pWndParent)
{
m_pWndParent = pWndParent;
CString strWndClass = AfxRegisterWndClass(0, AfxGetApp()->LoadStandardCursor(IDC_ARROW), GetSysColorBrush(COLOR_WINDOW), NULL);
return CreateEx(WS_EX_TOOLWINDOW, strWndClass, NULL, WS_POPUP, 0, 0, 0, 0, pWndParent->m_hWnd, NULL);
}
void Myclass::CreateTaskbarNotifier()
{
CTaskbarNotifier pTaskbarItem;
afxCurrentInstanceHandle = qWinAppInst();
CWnd *pWnd;
pWnd = AfxGetApp()->GetMainWnd();
pTaskbarItem.Create(pWnd);
}
int CTaskbarNotifier::Create(CWnd *pWndParent)
{
m_pWndParent = pWndParent;
CString strWndClass = AfxRegisterWndClass(0, AfxGetApp()->LoadStandardCursor(IDC_ARROW), GetSysColorBrush(COLOR_WINDOW), NULL);
return CreateEx(WS_EX_TOOLWINDOW, strWndClass, NULL, WS_POPUP, 0, 0, 0, 0, pWndParent->m_hWnd, NULL);
}
To copy to clipboard, switch view to plain text mode
Bookmarks