Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can I have two command objects w same connection? Pin
Le centriste22-Aug-02 18:18
Le centriste22-Aug-02 18:18 
GeneralThanks for your responses. Pin
ns23-Aug-02 3:08
ns23-Aug-02 3:08 
AnswerRe: can I have two command objects w same connection? Pin
Michael P Butler23-Aug-02 0:52
Michael P Butler23-Aug-02 0:52 
GeneralIs this correct? new char of length.... Pin
ns22-Aug-02 15:02
ns22-Aug-02 15:02 
GeneralRe: Is this correct? new char of length.... Pin
Christian Graus22-Aug-02 15:44
protectorChristian Graus22-Aug-02 15:44 
GeneralRe: Is this correct? new char of length.... Pin
Tim Smith22-Aug-02 15:42
Tim Smith22-Aug-02 15:42 
GeneralDifference between WM_USER and WM_APP Pin
alschneider22-Aug-02 12:16
alschneider22-Aug-02 12:16 
GeneralRe: Difference between WM_USER and WM_APP Pin
Michael Dunn22-Aug-02 13:53
sitebuilderMichael Dunn22-Aug-02 13:53 
BeavisInAz wrote:
Does anyone have any insight into the difference between WM_USER and WM_APP.

Yes, don't use WM_USER for your own messages because, as you've seen, the values can collide with values used by the common controls. That's why WM_APP is there, no built-in controls use it.
As for why sample code uses WM_USER - I guess WM_USER is more well-known for whatever reason, and the code writers got lucky and never had bugs related to the message values.

Of course, if you want to guarantee no collisions, use RegisterWindowsMessage() instead. Smile | :)

--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm

GeneralRe: Difference between WM_USER and WM_APP Pin
Nish Nishant22-Aug-02 14:36
sitebuilderNish Nishant22-Aug-02 14:36 
QuestionHow to create a net share to a specific user remotly? Pin
Anonymous22-Aug-02 11:23
Anonymous22-Aug-02 11:23 
GeneralRebase does not strip my debug symbols Pin
Ernesto Perales Soto22-Aug-02 11:18
Ernesto Perales Soto22-Aug-02 11:18 
GeneralRe: Rebase does not strip my debug symbols Pin
Mike Nordell25-Aug-02 3:32
Mike Nordell25-Aug-02 3:32 
GeneralRe: Rebase does not strip my debug symbols Pin
Ernesto Perales Soto26-Aug-02 3:19
Ernesto Perales Soto26-Aug-02 3:19 
Questioncom? Pin
imran_rafique22-Aug-02 10:56
imran_rafique22-Aug-02 10:56 
AnswerRe: com? Pin
jmkhael22-Aug-02 13:03
jmkhael22-Aug-02 13:03 
AnswerRe: com? Pin
Michael Dunn22-Aug-02 13:54
sitebuilderMichael Dunn22-Aug-02 13:54 
GeneralVC++ 6.0 hangs during link on WinXP Pin
txseedhead22-Aug-02 10:38
txseedhead22-Aug-02 10:38 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Daniel Turini22-Aug-02 10:55
Daniel Turini22-Aug-02 10:55 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
txseedhead22-Aug-02 11:11
txseedhead22-Aug-02 11:11 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Tomasz Sowinski22-Aug-02 11:15
Tomasz Sowinski22-Aug-02 11:15 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Mike Nordell25-Aug-02 3:34
Mike Nordell25-Aug-02 3:34 
Questionhow to compare _variant_t with "a" Pin
ns22-Aug-02 10:20
ns22-Aug-02 10:20 
AnswerRe: how to compare _variant_t with "a" Pin
Daniel Turini22-Aug-02 10:28
Daniel Turini22-Aug-02 10:28 
AnswerRe: how to compare _variant_t with "a" Pin
Michael Dunn22-Aug-02 10:29
sitebuilderMichael Dunn22-Aug-02 10:29 
Generalbstr question Pin
ns22-Aug-02 10:04
ns22-Aug-02 10:04 

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.