|
I wrote one application. The main frame is a form without border. So it donot have the task bar mouse click function. The first mouse click on the application icon in the task bar, the application will hide. The second mouse click, this application will show.
After I debug in the OnActiveApp, I find that sometime one OnActiveApp called, the other two OnActiveApp called when use mouse click the taskbar icon. How to filter the useless OnActiveApp event?
|
|
|
|
|
What is it that you're trying to do?
If you want the alter the minimize and restore operations that happen when you click on the task bar button, handle the WM_SYSCOMMAND message and check for SC_MINIMIZE and SC_RESTORE in its wParam argument.
You then simply return 0 to prevent the default action from being performed.
|
|
|
|
|
I tryed it. But when click there is no message can be accepted in the mainframe.
|
|
|
|