 |
|
 |
The strings need to be prefixed with L to compile (L"some text"), and a little more detail on where things should be place would be nice. Overall, a helpful article; just a little bit more and it would be excellent.
|
|
|
|
 |
|
 |
Up from Win2000, you should use "message" as window class instead of crafting your own.
|
|
|
|
 |
|
 |
This is a system-only class. Besides how would you define a WndProc?
|
|
|
|
 |
|
 |
You're right, I just looked it up again and it's indeed a system-only class.
Sorry, please take my comment as suggestion how it shouldn't be done
Reference:
http://msdn.microsoft.com/en-us/library/ms633574(VS.85).aspx
|
|
|
|
 |
|
 |
Pardon my ignorance... But can such a mechanism be used to attach an ActiveX control onto such a Window - if I wanted to use it for some background processing?
Cheers
Alex
|
|
|
|
 |
|
 |
Can I use a Message-Only window in a non-MFC app?
I want to use the Windows Messaging APIs for intratask communications between a COM DLL (that is not an MFC DLL) and a Console Application (*.exe, that is also not an MFC exe).
From all that I have seen, it appears the Message-Only windows can only be used by MFC apps.
Can this be done???
Dan L
Dan L
|
|
|
|
 |
|
 |
hai hello is it possible to check the ready state of the normal window and other applications please help me
lokesh
|
|
|
|
 |
|
 |
Hi there,
I tried to implement a worker thread inside a message only window, but it seems that I've been having some difficulties at the moment of destroying the window.
So the question I have is: Do message only windows follow the same destruction process that any other window in MFC?
Thanks
|
|
|
|
 |
|
|
 |
|
 |
Well, the problem is as follows: I created a dedicated thread for a device communication with special requirements: high speed and large memory allocation. In order to simplify the set up and commands, for timming purposes I decided to include the thread into a message-only window so at least, the commands will always be delayed by the time the thread takes to execute them.
I put the new object into a MFC derived class (Dialog) to use the communications object. The problem I've been having is at the moment of destroying the Dialog object, since the thread is not really sinchronized with the dialog object, it ocurred to me to use the destroy() message, but I'm unsure that the sequence will take place. If that's not the case then I'll have a thread running out of control. That's basically what I'm getting in the test runs.
Thanks.
|
|
|
|
 |
|
 |
I get this nagging feeling that somewhere in there is a subliminal message.
cheers,
Chris Maunder
|
|
|
|
 |
|
 |
I tried implementing your system and kept getting compile messages saying HWND_MESSAGE was not defined. It turned out that message-only windows only exist on windows 2000 or greater, and VC 2002 had set WINVER to 0x0400 in my stdafx.h. You have to set WINVER to 0x0500 or above to get HWND_MESSAGE.
I found this suprising because the creation of windows purely for messages almost certainly dates back to Windows 3.1 or even before, and it's the early versions of windows that had the most to gain from message-only windows.
Nathan Holt
|
|
|
|
 |
|
 |
Hi there Natham
Nathan Holt at CCEI wrote:
It turned out that message-only windows only exist on windows 2000 or greater
At the top of the article i list it (the artiel) as being for Win2K and WinXP.
Perhaps i should have been more explicit about that...sorry
In the example download code i define HWND_MESSAGE, but again i should probably have spelt that one out a bit.
I'll update the article to cause less confusion
cheers and thanks
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
 |
|
 |
bryce wrote:
At the top of the article i list it (the artiel) as being for Win2K and WinXP.
Oops! I need to start reading the title sections! I'm sorry about that.
Nathan Holt
|
|
|
|
 |
|
 |
Quick question - WM_USER has a defined list of messages up to a certain threshold which is reserved for Windows....Am I right in thinking that WM_USER+14 is not a safe message number?? If not I retract this question but highlight the importance of the fact that for user-defined messages it must be above the range reserved for Windows....Good article by the way!
Best Regards,
Tom.
|
|
|
|
 |
|
|
 |
|
 |
Ravi Bhavnani wrote:
Tom, check out this article.
I'd be kind of curious to see how this applys to message only windows. I've heard that WM_USER based messages are dangerous because various windows components (particularly dialog controls) may send WM_USER based messages to your window. Obviously, a message only window won't have dialog controls on it. It seems to me that something more promiscuous will overlook a message only window because it "can't be enumerated." Could someone who knows more about how WM_USER messages have been abused give more info?
Nathan Holt
|
|
|
|
 |
|
 |
Multiple Inheritance: When multiply inheriting, the CWnd needs to come first
can you explain why this is?
Todd Smith
|
|
|
|
 |
|
 |
Useful info and easy to implement - thanks for sharing!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
 |