Click here to Skip to main content
15,909,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Line spacing in an edit box Pin
Mark Salsbery19-Nov-06 6:07
Mark Salsbery19-Nov-06 6:07 
Questionclass function pointer to LPVOID Pin
edvintas18-Nov-06 10:16
edvintas18-Nov-06 10:16 
AnswerRe: class function pointer to LPVOID Pin
Waldermort18-Nov-06 10:30
Waldermort18-Nov-06 10:30 
GeneralRe: class function pointer to LPVOID Pin
edvintas18-Nov-06 10:58
edvintas18-Nov-06 10:58 
QuestionNotifications and messages in win app. Pin
sawerr18-Nov-06 9:24
sawerr18-Nov-06 9:24 
AnswerRe: Notifications and messages in win app. Pin
sawerr18-Nov-06 9:36
sawerr18-Nov-06 9:36 
GeneralRe: Notifications and messages in win app. Pin
Waldermort18-Nov-06 9:51
Waldermort18-Nov-06 9:51 
AnswerRe: Notifications and messages in win app. Pin
Waldermort18-Nov-06 9:51
Waldermort18-Nov-06 9:51 
I'm not I follow your logic "When an event occurs windows add a msg to its msg tail". But here is the basic principle.

A message is more like a command. A BM_CLICK tells the button to click. A notification only occurs if something meaningful happened. The button was clicked, you need to know about it so a BN_CLICK is sent. You chose a bad example here because BM_CLICK tells the button to simulate a click, which you already know about since you sent it.

CB_ADDSTRING will tell the combobox to add a string, there is no notification because you already know a string is being added ( YOU added it ). But, if the user clicks an item, you need to know, so the combobox will send a notification to you.

Most messages you will deal with ( the command type ), are what the OS wants your application to do. WM_PAINT to display itself, WM_CLOSE to close, WM_DESTROY to jump of a cliff and commit suicide. All the window controls will process the same messages, but this is hidden from you because windows does it for you. But for example, if you click the minimize button in your app, the desktop window will need to be notified so that it can repaint itself, so a WM_SYSCOMMAND will notify the parent.

Understand?
GeneralRe: Notifications and messages in win app. Pin
sawerr18-Nov-06 19:25
sawerr18-Nov-06 19:25 
AnswerRe: Notifications and messages in win app. Pin
Michael Dunn18-Nov-06 20:36
sitebuilderMichael Dunn18-Nov-06 20:36 
GeneralRe: Notifications and messages in win app. Pin
sawerr18-Nov-06 21:38
sawerr18-Nov-06 21:38 
GeneralRe: Notifications and messages in win app. Pin
Michael Dunn18-Nov-06 22:20
sitebuilderMichael Dunn18-Nov-06 22:20 
AnswerRe: Notifications and messages in win app. Pin
dinpura19-Nov-06 18:59
dinpura19-Nov-06 18:59 
QuestionFinding rectangle coordinates Pin
Oliver12318-Nov-06 9:18
Oliver12318-Nov-06 9:18 
AnswerRe: Finding rectangle coordinates Pin
PJ Arends18-Nov-06 9:23
professionalPJ Arends18-Nov-06 9:23 
QuestionVC6.0 to VC7 - templates, c++ standards conformance proble Pin
cobra99918-Nov-06 7:50
cobra99918-Nov-06 7:50 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble [modified] Pin
Waldermort18-Nov-06 7:59
Waldermort18-Nov-06 7:59 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
markkuk18-Nov-06 8:02
markkuk18-Nov-06 8:02 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
PJ Arends18-Nov-06 8:08
professionalPJ Arends18-Nov-06 8:08 
GeneralRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
cobra99918-Nov-06 12:51
cobra99918-Nov-06 12:51 
Questiondynamic array sizes Pin
Waldermort18-Nov-06 6:02
Waldermort18-Nov-06 6:02 
AnswerRe: dynamic array sizes Pin
PJ Arends18-Nov-06 6:33
professionalPJ Arends18-Nov-06 6:33 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 6:50
Waldermort18-Nov-06 6:50 
GeneralRe: dynamic array sizes Pin
Mark Salsbery18-Nov-06 6:55
Mark Salsbery18-Nov-06 6:55 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:17
Waldermort18-Nov-06 7:17 

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.