Click here to Skip to main content
15,890,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [Message Deleted] Pin
ThatsAlok10-Mar-08 7:17
ThatsAlok10-Mar-08 7:17 
GeneralInterApplication Mesage Pin
john56329-Mar-08 22:01
john56329-Mar-08 22:01 
GeneralRe: InterApplication Mesage Pin
CPallini9-Mar-08 22:29
mveCPallini9-Mar-08 22:29 
GeneralRe: InterApplication Mesage Pin
ThatsAlok10-Mar-08 2:04
ThatsAlok10-Mar-08 2:04 
GeneralRe: InterApplication Mesage Pin
Randor 10-Mar-08 4:07
professional Randor 10-Mar-08 4:07 
GeneralRe: InterApplication Mesage Pin
James R. Twine10-Mar-08 4:36
James R. Twine10-Mar-08 4:36 
GeneralRe: InterApplication Mesage Pin
Randor 10-Mar-08 4:53
professional Randor 10-Mar-08 4:53 
GeneralRe: InterApplication Mesage Pin
James R. Twine10-Mar-08 5:12
James R. Twine10-Mar-08 5:12 
Randor wrote:
[...] but I am asking for clarification of WM_USER being obsolete?


   Not really obsolete, but not appropriate for inter-application exchange - right from MS documentation:
0 through WM_USER – 1    Messages reserved for use by the system. 
WM_USER through 0x7FFF   Integer messages for use by private window classes. 
WM_APP through 0xBFFF    Messages available for use by applications. 
0xC000 through 0xFFFF    String messages for use by applications. 
Greater than 0xFFFF      Reserved by the system for future use.
MS Sez:
Message numbers in the second range (WM_USER through 0x7FFF) can be defined and used by an application to send messages within a private window class. These values cannot be used to define messages that are meaningful throughout an application, because some predefined window classes already define values in this range. For example, predefined control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use these values. Messages in this range should not be sent to other applications unless the applications have been designed to exchange messages and to attach the same meaning to the message numbers.

Message numbers in the third range (0x8000 through 0xBFFF) are available for application to use as private messages. Message in this range do not conflict with system messages.


   So!  While you CAN use WM_USER as a base for custom inter-application messages, it is implied, if not recommended, that you use WM_APP.

   This is from the VC++6.0 docs, BTW - 7+ years ago qualifies as common knowledge in my book.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



GeneralRe: InterApplication Mesage Pin
Randor 10-Mar-08 6:00
professional Randor 10-Mar-08 6:00 
GeneralRe: InterApplication Mesage Pin
ThatsAlok10-Mar-08 5:25
ThatsAlok10-Mar-08 5:25 
GeneralRe: InterApplication Mesage Pin
Randor 10-Mar-08 6:04
professional Randor 10-Mar-08 6:04 
GeneralRe: InterApplication Mesage Pin
Rajesh R Subramanian10-Mar-08 7:14
professionalRajesh R Subramanian10-Mar-08 7:14 
GeneralRe: InterApplication Mesage Pin
ThatsAlok10-Mar-08 7:19
ThatsAlok10-Mar-08 7:19 
GeneralRe: InterApplication Mesage Pin
Stephen Hewitt10-Mar-08 15:21
Stephen Hewitt10-Mar-08 15:21 
GeneralRe: InterApplication Mesage Pin
ThatsAlok10-Mar-08 16:58
ThatsAlok10-Mar-08 16:58 
GeneralRe: InterApplication Mesage Pin
Mark Salsbery10-Mar-08 7:18
Mark Salsbery10-Mar-08 7:18 
GeneralRe: InterApplication Mesage Pin
ThatsAlok10-Mar-08 9:15
ThatsAlok10-Mar-08 9:15 
GeneralGiving title text to dialog box at runtime........ Pin
neha.agarwal279-Mar-08 21:58
neha.agarwal279-Mar-08 21:58 
GeneralRe: Giving title text to dialog box at runtime........ Pin
Cedric Moonen9-Mar-08 22:00
Cedric Moonen9-Mar-08 22:00 
GeneralRe: Giving title text to dialog box at runtime........ Pin
Maxwell Chen9-Mar-08 22:01
Maxwell Chen9-Mar-08 22:01 
GeneralRe: Giving title text to dialog box at runtime........ Pin
David Crow10-Mar-08 3:14
David Crow10-Mar-08 3:14 
JokeRe: Giving title text to dialog box at runtime........ Pin
Maxwell Chen10-Mar-08 4:33
Maxwell Chen10-Mar-08 4:33 
GeneralRe: Giving title text to dialog box at runtime........ Pin
ThatsAlok10-Mar-08 9:19
ThatsAlok10-Mar-08 9:19 
QuestionHow to get the formatted time..? Pin
Raj-Ekoham DwitiyoNasti9-Mar-08 21:46
Raj-Ekoham DwitiyoNasti9-Mar-08 21:46 
GeneralRe: How to get the formatted time..? Pin
jhwurmbach9-Mar-08 23:08
jhwurmbach9-Mar-08 23:08 

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.