   Another question; How to set focus
  How do I set focus on my appliction? SetFocus() and SetForegroundwindow() doesn''t work.    Johan Torp - http://www.destruction.nu  
  try thisHWND SetActiveWindow(  HWND hWnd   // handle to window);  ;  It doesn't work either =(.SetForegroundWindow() makes the program flash in the taskbar at least though it won't help much for those who has my app in the system tray.I'm using the CWnd version of all functions but they aren't overloaded are they?I wonder how to accomplish this... it must be possible!    Johan Torp - http://www.destruction.nuEdited by - thorpe on November 12, 2001 11:44:55 AM  ;  you app is in the system tray, not in task bar?  ;  You can select where to have it when it is minimized...    Johan Torp - http://www.destruction.nu  