   directX9.0
  i am working on DirectX9.0. Application is client-server based. on server side,the window is not enabled by default. i have to click once on server screen, then only communication happen between server and client.means initially window is inactive but i want active window. give some suggestions,how to fix this problem.   
  I'm not sure I understand your question, can you not set the window active when it's created?   