Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWnd::Create -> program terminates immediately after window creation Pin
ThatsAlok8-Jul-05 20:31
ThatsAlok8-Jul-05 20:31 
QuestionHow to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 3:17
ldaoust8-Jul-05 3:17 
AnswerRe: How to capure mouse move with child window overlapping ? Pin
Manfred Staiger8-Jul-05 3:38
Manfred Staiger8-Jul-05 3:38 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 4:07
ldaoust8-Jul-05 4:07 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
Manfred Staiger8-Jul-05 4:29
Manfred Staiger8-Jul-05 4:29 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 6:09
ldaoust8-Jul-05 6:09 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 6:32
ldaoust8-Jul-05 6:32 
AnswerRe: How to capure mouse move with child window overlapping ? Pin
John R. Shaw8-Jul-05 17:30
John R. Shaw8-Jul-05 17:30 
I don't know if this will help. But in this entire thread, no one mentioned that a control is another window and only the window over which the mouse is moving gets the WM_MOUSEMOVE messages (not its parents).

You don't want to capture the mouse in your main window, because then your child windows will not receive mouse message (they will all go to your main window).

If you need to keep track of the cursor position, even when the mouse cursor is over a child window. Then you should start a timer in you main window (in this case your dialog window) and call GetCursorPos to get the screen coordinates of the cursor. Then there is an API function some where (I forgot the name of it), that can be used to get the handle of a window given the screen coordinates, that you need to call to determine which window you are over. If you need to display the coordinates, then you'll probably need to convert the screen coordinates to the local client coordinates.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
QuestionUsing a "windows file manager"-like control? Pin
Salvador Dali8-Jul-05 2:12
Salvador Dali8-Jul-05 2:12 
AnswerRe: Using a "windows file manager"-like control? Pin
David Crow8-Jul-05 3:35
David Crow8-Jul-05 3:35 
GeneralRe: Using a "windows file manager"-like control? Pin
Salvador Dali8-Jul-05 5:22
Salvador Dali8-Jul-05 5:22 
GeneralRe: Using a "windows file manager"-like control? Pin
David Crow8-Jul-05 5:58
David Crow8-Jul-05 5:58 
GeneralI’m trying to figure out a way to store my data in an clever way Pin
t!bast8-Jul-05 2:07
t!bast8-Jul-05 2:07 
GeneralRe: I’m trying to figure out a way to store my data in an clever way Pin
S. Senthil Kumar8-Jul-05 6:06
S. Senthil Kumar8-Jul-05 6:06 
GeneralRe: I’m trying to figure out a way to store my data in an clever way Pin
Blake V. Miller8-Jul-05 16:54
Blake V. Miller8-Jul-05 16:54 
Generalcommunicating with the phone Pin
mpsundar8-Jul-05 1:16
mpsundar8-Jul-05 1:16 
GeneralRe: communicating with the phone Pin
ThatsAlok8-Jul-05 20:23
ThatsAlok8-Jul-05 20:23 
QuestionHow to Get Public IP Address Pin
Member 1256658-Jul-05 0:44
Member 1256658-Jul-05 0:44 
AnswerRe: How to Get Public IP Address Pin
Alexander M.,8-Jul-05 4:00
Alexander M.,8-Jul-05 4:00 
AnswerRe: How to Get Public IP Address Pin
cmk8-Jul-05 11:07
cmk8-Jul-05 11:07 
GeneralRe: How to Get Public IP Address Pin
Member 12566510-Jul-05 19:10
Member 12566510-Jul-05 19:10 
GeneralRe: How to Get Public IP Address Pin
cmk10-Jul-05 22:06
cmk10-Jul-05 22:06 
Questionhow to declare and use an array of pointer on functions? Pin
bouli8-Jul-05 0:28
bouli8-Jul-05 0:28 
AnswerRe: how to declare and use an array of pointer on functions? Pin
Cedric Moonen8-Jul-05 1:15
Cedric Moonen8-Jul-05 1:15 
GeneralRe: how to declare and use an array of pointer on functions? Pin
t!bast8-Jul-05 1:29
t!bast8-Jul-05 1:29 

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.