🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2664

Re: Enabling the first and only window in MFC

#2664
From: Jarkko Turunen
Date: Sat, 09 Jan 1993 20:22
14 lines
1081 bytes
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?
Technical Details
Message-ID: <C0LsM7.4HE@pcuf.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!pcuf!news
References: <C0Fyw0.3pq@pcuf.fi> <726521688snz@chrism.demon.co.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!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