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

C / C++ / MFC

 
GeneralRe: CWnd::Create -> program terminates immediately after window creation Pin
David Crow8-Jul-05 4:23
David Crow8-Jul-05 4:23 
GeneralRe: CWnd::Create -> program terminates immediately after window creation Pin
Alexander M.,8-Jul-05 7:12
Alexander M.,8-Jul-05 7:12 
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 
Good idea.

I added the handler seems to be working but again when mouse is in child window I dont receive messages. I don't get it, this child (chart info window) is just a child like the chart control.

Here's exactly what I have and did:
- A dialog that I use for a graph window.
- This dialog contains controls and one of those controls is a CStatic derived class that act as a chart control. There is nothing special about the control in how it handles messages except for drawing.
- At runtime I create a new dialog that is child of this dialog. This child dialog is the chart info window. To me it should be the same as another control in the dialog. It does nothing special, just contains a static control in which I display text. It has a title bar so I can move it around.
- I added a PreTranslateMessage handler to the main dialog and check for the WM_MOUSEMOVE message. If the point lies in the client rectangle of the chart control I display text in the chart info window (static control on that child dialog).

So far it works, just that when the mouse is over the chart info window, the main dialog does not receive any WM_MOUSEMOVE in PreTranslateMessage. I really don't understand why I receive message when I am over the chart control in the main dialog but not in the chart info window that is also a child of the main dialog. ??

I hope you get the 'picture', maybe a screenshot of the layout would help ? If so, how do I add an image to a post ?

thanks for all your help,
Louis.
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 
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 

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.