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

C / C++ / MFC

 
GeneralRe: .lib mystery and headache Pin
JackPuppy6-Mar-09 21:02
JackPuppy6-Mar-09 21:02 
GeneralRe: .lib mystery and headache Pin
Eytukan6-Mar-09 21:29
Eytukan6-Mar-09 21:29 
Questionmessage associted with number? Pin
sam_psycho6-Mar-09 6:42
sam_psycho6-Mar-09 6:42 
AnswerRe: message associted with number?[modified] Pin
Eytukan6-Mar-09 6:52
Eytukan6-Mar-09 6:52 
QuestionLeft Mouse Click and Hold Pin
Software20076-Mar-09 6:26
Software20076-Mar-09 6:26 
AnswerRe: Left Mouse Click and Hold Pin
Jonnie White6-Mar-09 6:30
Jonnie White6-Mar-09 6:30 
GeneralRe: Left Mouse Click and Hold Pin
Software20076-Mar-09 6:50
Software20076-Mar-09 6:50 
AnswerRe: Left Mouse Click and Hold Pin
Code-o-mat6-Mar-09 8:23
Code-o-mat6-Mar-09 8:23 
In OnLButtonDown, set a flag as someone else already suggested and use SetCapture[^] (Or CWnd::SetCapture) to capture the mouse input. Then in your WM_MOUSEMOVE handler, if the flag is set, perform the drag operation or whatever you need to do. In OnLButtonUp, clear the flag and use ReleaseCapture[^] to let the mouse go. Also, make a handler for WM_CAPTURECHANGED[^] and if it indicates that your window is loosing the capture, check the flag and if it is set, you know that something happened that took the mouse capture from your window while there was a drag operation in progress (for example another window was popped up) and clear the flag and do whatever else needs to do.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: Left Mouse Click and Hold Pin
Software20076-Mar-09 8:49
Software20076-Mar-09 8:49 
QuestionRe: Left Mouse Click and Hold Pin
David Crow6-Mar-09 10:15
David Crow6-Mar-09 10:15 
QuestionA tricky way of manipulating memory allocation [modified] Pin
JackPuppy6-Mar-09 4:25
JackPuppy6-Mar-09 4:25 
AnswerRe: A tricky way of manipulating memory allocation Pin
Eytukan6-Mar-09 4:59
Eytukan6-Mar-09 4:59 
AnswerRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 5:17
JackPuppy6-Mar-09 5:17 
Answer. Pin
Perisic, Aleksandar6-Mar-09 6:10
Perisic, Aleksandar6-Mar-09 6:10 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 8:49
JackPuppy6-Mar-09 8:49 
General. Pin
Perisic, Aleksandar6-Mar-09 10:04
Perisic, Aleksandar6-Mar-09 10:04 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 10:54
JackPuppy6-Mar-09 10:54 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 10:59
JackPuppy6-Mar-09 10:59 
General. Pin
Perisic, Aleksandar6-Mar-09 11:24
Perisic, Aleksandar6-Mar-09 11:24 
General. Pin
Perisic, Aleksandar6-Mar-09 12:48
Perisic, Aleksandar6-Mar-09 12:48 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 23:08
JackPuppy6-Mar-09 23:08 
General. Pin
Perisic, Aleksandar7-Mar-09 3:16
Perisic, Aleksandar7-Mar-09 3:16 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy7-Mar-09 9:58
JackPuppy7-Mar-09 9:58 
General. Pin
Perisic, Aleksandar7-Mar-09 10:59
Perisic, Aleksandar7-Mar-09 10:59 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy10-Mar-09 2:00
JackPuppy10-Mar-09 2:00 

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.