Click here to Skip to main content
15,926,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs a window title the same as the .exe name? Pin
9-Oct-01 7:49
suss9-Oct-01 7:49 
AnswerRe: Is a window title the same as the .exe name? Pin
Christian Graus9-Oct-01 11:48
protectorChristian Graus9-Oct-01 11:48 
If you're enumerating open windows and getting the HWND from the Window title, then you should have no trouble sending data to whichever window you want. The problem you have is that you specify a HWND in WM_COPYDATA, therefore you send the message to one Window only. You can do one of two things:

1/ Enumerate Windows and send the message to all the Windows that may want it, or

2/ If you always have the same number of windows up you can set up a chain where the message gets passed on if it's not needed.



Christian

As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.

Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
GeneralRe: Is a window title the same as the .exe name? Pin
9-Oct-01 13:54
suss9-Oct-01 13:54 
GeneralRe: Is a window title the same as the .exe name? Pin
Christian Graus9-Oct-01 14:29
protectorChristian Graus9-Oct-01 14:29 
GeneralRe: Is a window title the same as the .exe name? Pin
9-Oct-01 16:23
suss9-Oct-01 16:23 
GeneralRe: Is a window title the same as the .exe name? Pin
Christian Graus9-Oct-01 17:30
protectorChristian Graus9-Oct-01 17:30 
GeneralRe: Is a window title the same as the .exe name? Pin
9-Oct-01 18:42
suss9-Oct-01 18:42 
GeneralPrinter port in Win2000 Pin
jancsi9-Oct-01 6:33
jancsi9-Oct-01 6:33 
QuestionHow to communicate between Primary and Extension SnapIn Pin
9-Oct-01 6:19
suss9-Oct-01 6:19 
GeneralFor DirectShow experts only! Pin
jancsi9-Oct-01 6:02
jancsi9-Oct-01 6:02 
GeneralSounds in CHtmlView Pin
CD9-Oct-01 5:38
CD9-Oct-01 5:38 
QuestionHow do I get a TreeView object? Pin
9-Oct-01 4:26
suss9-Oct-01 4:26 
GeneralClosing an application... Pin
Özgür9-Oct-01 4:19
Özgür9-Oct-01 4:19 
GeneralRe: Closing an application... Pin
Carlos Antollini9-Oct-01 4:55
Carlos Antollini9-Oct-01 4:55 
GeneralThumbNail Viewer Pin
9-Oct-01 4:17
suss9-Oct-01 4:17 
GeneralRe: ThumbNail Viewer Pin
Chris Losinger9-Oct-01 4:29
professionalChris Losinger9-Oct-01 4:29 
GeneralRe: ThumbNail Viewer Pin
9-Oct-01 4:52
suss9-Oct-01 4:52 
GeneralRe: ThumbNail Viewer Pin
Not Active10-Oct-01 3:35
mentorNot Active10-Oct-01 3:35 
QuestionRefrences in VB and what in VC++? Pin
Ahmad999-Oct-01 4:01
Ahmad999-Oct-01 4:01 
General[VC++][Excel][C++] Pin
9-Oct-01 3:58
suss9-Oct-01 3:58 
GeneralRe: [VC++][Excel][C++] Pin
Özgür9-Oct-01 4:10
Özgür9-Oct-01 4:10 
GeneralRe: How to write NULL separators in a text file Pin
Fredrik Sigbjörn9-Oct-01 2:48
Fredrik Sigbjörn9-Oct-01 2:48 
QuestionCSocket::CancelBlockingCall() from another thread? Pin
Peter Sjöström9-Oct-01 2:07
Peter Sjöström9-Oct-01 2:07 
GeneralRemoving Min & Max buttons in FrameWnd Pin
9-Oct-01 1:51
suss9-Oct-01 1:51 
GeneralRe: Removing Min & Max buttons in FrameWnd Pin
Fredrik Sigbjörn9-Oct-01 2:12
Fredrik Sigbjörn9-Oct-01 2:12 

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.