Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PInvoke Context menus Pin
Jörgen Sigvardsson14-Sep-04 13:33
Jörgen Sigvardsson14-Sep-04 13:33 
GeneralRe: PInvoke Context menus Pin
Jumpin' Jeff14-Sep-04 15:56
Jumpin' Jeff14-Sep-04 15:56 
GeneralRe: PInvoke Context menus Pin
Jörgen Sigvardsson14-Sep-04 22:40
Jörgen Sigvardsson14-Sep-04 22:40 
GeneralRe: PInvoke Context menus Pin
Jumpin' Jeff15-Sep-04 2:28
Jumpin' Jeff15-Sep-04 2:28 
GeneralRe: PInvoke Context menus Pin
Jörgen Sigvardsson15-Sep-04 2:35
Jörgen Sigvardsson15-Sep-04 2:35 
GeneralRe: PInvoke Context menus Pin
Jumpin' Jeff15-Sep-04 4:49
Jumpin' Jeff15-Sep-04 4:49 
Generallistctrl WM_MOUSEMOVE Pin
ski2sky14-Sep-04 12:47
ski2sky14-Sep-04 12:47 
GeneralRe: listctrl WM_MOUSEMOVE Pin
Ryan Binns14-Sep-04 18:26
Ryan Binns14-Sep-04 18:26 
ski2sky wrote:
As soon as I get the WM_LBUTTONDOWN msg the WM_MOUSEMOVE messages stop coming until I let go of the mouse button. Why?

This is because of the way the list control processes mouse messages. When it receives a WM_LBUTTONDOWN, it goes into a local message loop, checking for mouse messages and acting on them without passing them to DispatchMessage(). This means that the message does not go through the normal message processing and consequently you don't see them.

ski2sky wrote:
Also the WM_LBUTTONUP doesn't come unless I double click the control.

This is because of the same reason. The local message loop processes the WM_LBUTTONUP message without dispatching it, so you don't get it. Windows sends the following sequence of messages for a double click:

  • WM_LBUTTONDOWN
  • WM_LBUTTONUP
  • WM_LBUTTONDBLCLK
  • WM_LBUTTONDOWN
So the local message handler exits when the first WM_LBUTTONUP is received, so your application will get the second one as there is no further WM_LBUTTONDOWN message to start the local message handler.

ski2sky wrote:
I want to get the WM_MOUSEMOVE msgs also when I have the mouse button down

The only way I can see to get around this is to install a WH_GETMESSAGE hook on your thread.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: listctrl WM_MOUSEMOVE Pin
ski2sky15-Sep-04 4:38
ski2sky15-Sep-04 4:38 
GeneralCImageList - using icons Pin
BlackDice14-Sep-04 11:25
BlackDice14-Sep-04 11:25 
GeneralRe: CImageList - using icons Pin
Roger Allen14-Sep-04 12:11
Roger Allen14-Sep-04 12:11 
GeneralRe: CImageList - using icons Pin
Jörgen Sigvardsson14-Sep-04 13:28
Jörgen Sigvardsson14-Sep-04 13:28 
GeneralI like some info Pin
Way_newBe14-Sep-04 11:04
Way_newBe14-Sep-04 11:04 
GeneralFUNCTION HELP! Pin
ISUstudent14-Sep-04 10:48
ISUstudent14-Sep-04 10:48 
GeneralRe: FUNCTION HELP! Pin
Roger Allen14-Sep-04 12:13
Roger Allen14-Sep-04 12:13 
GeneralEdit Control In SDI Application. Pin
mostafa_pasha14-Sep-04 9:40
mostafa_pasha14-Sep-04 9:40 
GeneralRe: Edit Control In SDI Application. Pin
David Crow14-Sep-04 9:52
David Crow14-Sep-04 9:52 
GeneralRe: Edit Control In SDI Application. Pin
mostafa_pasha14-Sep-04 9:59
mostafa_pasha14-Sep-04 9:59 
GeneralRe: Edit Control In SDI Application. Pin
David Crow14-Sep-04 10:06
David Crow14-Sep-04 10:06 
GeneralRe: Edit Control In SDI Application. Pin
mostafa_pasha14-Sep-04 10:17
mostafa_pasha14-Sep-04 10:17 
GeneralRe: Edit Control In SDI Application. Pin
David Crow14-Sep-04 10:35
David Crow14-Sep-04 10:35 
GeneralRe: Edit Control In SDI Application. Pin
BlackDice14-Sep-04 10:27
BlackDice14-Sep-04 10:27 
GeneralQuestions about win32 console App. Pin
Laing,James14-Sep-04 8:58
Laing,James14-Sep-04 8:58 
QuestionHow to use combobox property TAB? Pin
Member 135496214-Sep-04 8:51
Member 135496214-Sep-04 8:51 
AnswerRe: How to use combobox property TAB? Pin
Ryan Binns14-Sep-04 18:34
Ryan Binns14-Sep-04 18:34 

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.