Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:23
David Crow4-May-04 8:23 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 8:32
jonathanleebrown4-May-04 8:32 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:42
David Crow4-May-04 8:42 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:20
jonathanleebrown4-May-04 9:20 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:30
jonathanleebrown4-May-04 9:30 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 10:07
David Crow4-May-04 10:07 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 10:14
jonathanleebrown4-May-04 10:14 
GeneralBroadcasting a message Pin
#realJSOP4-May-04 7:24
professional#realJSOP4-May-04 7:24 
I'm trying to broadcast a message using this:

<br />
::SendNotifyMessage(HWND_BROADCAST, WM_MYMSG, 0, 0);<br />


If another app, I've got a handler in my CMainFrame class that handles that message, like so:

In the header file:
<br />
protected:<br />
	//{{AFX_MSG(CMainFrame)<br />
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);<br />
	//}}AFX_MSG<br />
	afx_msg LRESULT OnReadyRemote(WPARAM wParam, LPARAM lParam);<br />
	DECLARE_MESSAGE_MAP()<br />


And in the CPP file:

<br />
LRESULT CMainFrame::OnReadyRemote(WPARAM wParam, LPARAM lParam)<br />
{<br />
	wParam;<br />
	lParam;<br />
	AfxMessageBox("Kicker Ding");<br />
	return 1L;<br />
}<br />


The message is registered like so (in a common header file used by both apps):

<br />
//const UINT WM_MYMSG = ::RegisterWindowMessage("MySpecialMsg_0x1E240");<br />


----------------------

I'm fairly certain that the app braoadcasting the message is actually doing so, but I know for a fact that the other app isn't seeing it.

Anyone have any ideas?


------- sig starts

"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

"You won't like me when I'm

GeneralRe: Broadcasting a message Pin
David Crow4-May-04 8:27
David Crow4-May-04 8:27 
GeneralRe: Broadcasting a message Pin
#realJSOP4-May-04 8:49
professional#realJSOP4-May-04 8:49 
GeneralRe: Broadcasting a message Pin
David Crow4-May-04 9:00
David Crow4-May-04 9:00 
Generalmarshalling COM to .NET problem Pin
Member 9300224-May-04 7:03
Member 9300224-May-04 7:03 
GeneralRe: marshalling COM to .NET problem Pin
Mike Dimmick4-May-04 11:26
Mike Dimmick4-May-04 11:26 
GeneralRecompiling Everything Pin
Jeff Bogan4-May-04 6:41
Jeff Bogan4-May-04 6:41 
GeneralRe: Recompiling Everything Pin
Antony M Kancidrowski4-May-04 6:50
Antony M Kancidrowski4-May-04 6:50 
GeneralRe: Recompiling Everything Pin
Jeff Bogan4-May-04 7:05
Jeff Bogan4-May-04 7:05 
GeneralShared Data Problem Pin
sweep1234-May-04 6:03
sweep1234-May-04 6:03 
GeneralRe: Shared Data Problem Pin
Michael Dunn4-May-04 6:07
sitebuilderMichael Dunn4-May-04 6:07 
GeneralRe: Shared Data Problem Pin
Rick York4-May-04 6:27
mveRick York4-May-04 6:27 
GeneralRe: Shared Data Problem Pin
sweep1234-May-04 6:36
sweep1234-May-04 6:36 
GeneralRe: Shared Data Problem Pin
Rick York4-May-04 11:02
mveRick York4-May-04 11:02 
GeneralRe: Shared Data Problem Pin
sweep1235-May-04 3:41
sweep1235-May-04 3:41 
Generalvisual studio Pin
Mr. Cully4-May-04 5:25
Mr. Cully4-May-04 5:25 
GeneralRe: visual studio Pin
jmkhael4-May-04 5:27
jmkhael4-May-04 5:27 
GeneralRe: visual studio Pin
Mr. Cully4-May-04 5:43
Mr. Cully4-May-04 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.