title: C++ winAPI basics - switching through windows
body: <p>Not very sure how to explain it in a clear way. Basicaly, the thing is that I'm looking for a method to change a <em>current active window</em> ( Self-produced def., hope it'll be understandable enough ) - window, where the text is directly typed right now. Whooh.</p>
  
  <p>What have I allready discovered is <a href="http://msdn.microsoft.com/en-us/library/ms645530%28v=vs.85%29.aspx" rel="nofollow noreferrer">msdn</a> help and SetFocus() or SetActiveWindow(), but it doesn't solve my problem ( or, what is also possible, I'm just using it in a wrong way ).</p>
  
  <p>Simply:</p>
  
  <pre><code>HWND Dest = GetFocus();
  ... //Some moving around on the 'alt-tab level' :-|
  SetFocus(Dest); 
  </code></pre>
  
  <p>Doesn't set the Dest window active again.
  Please, excuse for the newbie questions, hope it won't take much time from you. Thanx!</p>