lucpolak Messages: 18 Registered: April 2008 Location: France
Promising Member
Hello,
nobody can helps me ?
I'm trying to understand the mecanism of UPP windows and it's not easy .
I'm find in the Win32Wnd.cpp the main WndProc witch enables me to initialize correctly my WM_TASKBARCREATED variable. This piece of code works fine and catch correctly the explorer.exe crashes :
LRESULT CALLBACK Ctrl::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if (message == WM_CREATE)
{
WM_TASKBARCREATED = RegisterWindowMessageA("TaskbarCreated") ;
ELOG("Ctrl::TASKBARCREATED = "<<WM_TASKBARCREATED);
}
if (message == WM_TASKBARCREATED)
{
ELOG("Ctrl::TASKBARCREATED");
// How can i translate and recreate order to the TrayIcon class ?
}
[...]
But how can I recreate tray icon when the message WM_TASKBARCREATED is received ???? How can i Translate this message to the TrayIcon::WindowProc ????