Originally posted by: Weiye
When i run your program, i found out there are memory leaks when the main application is closed before the pop window fully shows itself. It points to these 2 lines, according to the debugger
CTaskBarMsgWnd* t_TaskBarMsgWnd = new CTaskBarMsgWnd(
strMsg,
nWndWidth,
nWndHeight,
nMsgTimeOut,
nMsgWndCreationDelay,
rectMsgRect,
clrBox,
clrText
);
and
IMPLEMENT_DYNCREATE(CPopWndThread, CWinThread)
Do you have any solution to this?
ReplyOriginally posted by: Seenu Upadhya
Excellent work ! One issue though - when you select the Message->Pop menu item, the little window pops up but the main window loses focus. I'm writing an Instant Messenger program and tried your code out there - same thing happens.
From the point of view of a Messenger application, this issue is pretty serious because if the task bar window pops up while you are typing in a different window, the characters you typed are lost because the window loses focus for the duration of the task bar window's existence.
So how do you get it to not make the topmost window lose focus when the task bar window pops up ? I tried to change the &wndTopMost to some other value in the SetWindowPos () function calls, but that doesnt seem to work.
Also observed that once your task bar window has been instantiated, you can then manually click on another window and continue typing, and the task bar window will continue its expanding and contracting as normal.
Best Regards,
Hi Prateek,
-seenu
Originally posted by: mok
The string is seem hardcode in the system, how to dynamic pass my own string in
Reply