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