托盘类自定义消息

static HtTray* GetInstance();

HtTray* HtTray::pTrayInstance = NULL;
HtTray* HtTray::GetInstance()
{
if (pTrayInstance == NULL)
{
pTrayInstance = new HtTray;
}
return pTrayInstance;
}

  

托盘类自定义消息 winmain (win32工程)——LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) 响应消息

 MyRegisterClass(HINSTANCE hInstance) 注册消息处理机制

 

posted on 2019-09-17 10:13  lydstory  阅读(138)  评论(0)    收藏  举报

导航