home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4810 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!fuug!pcuf!news
  3. From: turre@pcuf.fi (Jarkko Turunen)
  4. Subject: Re: Enabling the first and only window in MFC
  5. Message-ID: <C0LsM7.4HE@pcuf.fi>
  6. Sender: news@pcuf.fi (News)
  7. Nntp-Posting-Host: pcuf.fi
  8. Organization: The PC-users of Finland
  9. References: <C0Fyw0.3pq@pcuf.fi> <726521688snz@chrism.demon.co.uk>
  10. Date: Sat, 9 Jan 1993 20:22:54 GMT
  11. Lines: 14
  12.  
  13. Sorry I am not able to quote your message with ProComm Plus for Windows
  14.  
  15. The problem was to bring the Window of the first application instance to 
  16. top when user tries to start second instance.
  17.  
  18. You gave me code which was like in the Win 3.1 SDK which uses the 
  19. FindWindow with the WindowClass. The reason why I can't use that method 
  20. is that MFC will register my Windows classes and I can't obtain the
  21. name of them anywhere! And because the names are generated by MFC I
  22. can't be sure if the Windows found is from my app or somebody else's
  23. app using MFC. 
  24.  
  25. Is there anyway to register window classes in MFC with a classname of
  26. my own?
  27.