Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do you send a button click message to parent window Pin
Paresh Chitte22-Oct-07 19:05
Paresh Chitte22-Oct-07 19:05 
AnswerRe: How do you send a button click message to parent window Pin
Naveen22-Oct-07 19:53
Naveen22-Oct-07 19:53 
AnswerRe: How do you send a button click message to parent window Pin
Mark Salsbery23-Oct-07 8:57
Mark Salsbery23-Oct-07 8:57 
QuestionCTreeCtrl and SetRedraw Pin
bob1697222-Oct-07 5:08
bob1697222-Oct-07 5:08 
QuestionCDialog and Mouse clicks Pin
mcsherry22-Oct-07 4:33
mcsherry22-Oct-07 4:33 
AnswerRe: CDialog and Mouse clicks Pin
Nishad S22-Oct-07 4:42
Nishad S22-Oct-07 4:42 
GeneralRe: CDialog and Mouse clicks Pin
mcsherry22-Oct-07 6:45
mcsherry22-Oct-07 6:45 
AnswerRe: CDialog and Mouse clicks Pin
James R. Twine22-Oct-07 5:09
James R. Twine22-Oct-07 5:09 
   Detect a LButtonDown over the region, capture the mouse when this happens, and then wait for the LButtonUp message.  If the LBU is over the region, react.

   Watch out for things like (De)activate and/or kill focus messages - if the user switches apps while holding down the mouse button, you will need to release the capture.

   The reason you do not want to just react to LBU is that the user could click and hold the mouse button down, and then drag it over to your app and release.  This happens a lot by accident and you would not want to react to that accident.  Try that with a standard button control and you will see what I mean.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<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!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

QuestionI/O Completion Port question Pin
unknown10122-Oct-07 3:42
unknown10122-Oct-07 3:42 
AnswerRe: I/O Completion Port question Pin
led mike22-Oct-07 5:23
led mike22-Oct-07 5:23 
QuestionDialog box Pin
shir_k22-Oct-07 3:30
shir_k22-Oct-07 3:30 
QuestionRe: Dialog box Pin
David Crow22-Oct-07 3:38
David Crow22-Oct-07 3:38 
AnswerRe: Dialog box Pin
shir_k22-Oct-07 3:46
shir_k22-Oct-07 3:46 
QuestionRe: Dialog box Pin
David Crow22-Oct-07 3:51
David Crow22-Oct-07 3:51 
AnswerRe: Dialog box Pin
shir_k22-Oct-07 4:04
shir_k22-Oct-07 4:04 
GeneralRe: Dialog box Pin
shir_k22-Oct-07 4:24
shir_k22-Oct-07 4:24 
GeneralRe: Dialog box Pin
Nelek22-Oct-07 4:27
protectorNelek22-Oct-07 4:27 
GeneralRe: Dialog box Pin
shir_k22-Oct-07 4:33
shir_k22-Oct-07 4:33 
GeneralRe: Dialog box Pin
Nelek29-Oct-07 21:44
protectorNelek29-Oct-07 21:44 
QuestionDisallowing dll use from development environment? Pin
electronica80822-Oct-07 2:53
electronica80822-Oct-07 2:53 
AnswerRe: Disallowing dll use from development environment? Pin
Cedric Moonen22-Oct-07 2:55
Cedric Moonen22-Oct-07 2:55 
GeneralRe: Disallowing dll use from development environment? Pin
electronica80822-Oct-07 3:26
electronica80822-Oct-07 3:26 
GeneralRe: Disallowing dll use from development environment? Pin
Chris Losinger22-Oct-07 3:36
professionalChris Losinger22-Oct-07 3:36 
GeneralRe: Disallowing dll use from development environment? Pin
electronica80822-Oct-07 3:49
electronica80822-Oct-07 3:49 
GeneralRe: Disallowing dll use from development environment? Pin
Nelek22-Oct-07 4:23
protectorNelek22-Oct-07 4:23 

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.