Click here to Skip to main content
15,929,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShell Extension on 64 bit Pin
Amar Sutar9-Mar-06 22:43
Amar Sutar9-Mar-06 22:43 
AnswerRe: Shell Extension on 64 bit Pin
oshah10-Mar-06 5:58
oshah10-Mar-06 5:58 
Questionstart timer when mouse leave from dialog box Pin
baldha rakesh9-Mar-06 22:10
baldha rakesh9-Mar-06 22:10 
AnswerRe: start timer when mouse leave from dialog box Pin
Naveen9-Mar-06 22:13
Naveen9-Mar-06 22:13 
AnswerRe: start timer when mouse leave from dialog box Pin
Stephen Hewitt9-Mar-06 22:14
Stephen Hewitt9-Mar-06 22:14 
GeneralRe: start timer when mouse leave from dialog box Pin
baldha rakesh9-Mar-06 22:24
baldha rakesh9-Mar-06 22:24 
GeneralRe: start timer when mouse leave from dialog box Pin
Stephen Hewitt9-Mar-06 22:26
Stephen Hewitt9-Mar-06 22:26 
AnswerRe: start timer when mouse leave from dialog box Pin
MANISH RASTOGI9-Mar-06 22:57
MANISH RASTOGI9-Mar-06 22:57 
Normally OnkillFocus of dialog is not called when the mouse leaves the dialog. The one way to solve this problem is
First take a member variable of bool type in that dialog.
In constructor set the value of variable false.
in mousemove event check the value of that member variable if it is false then set it true and call SetCapture. and stop timer.

if value of member variable is true then check that coordinates come into point variable lies inside the dialog.if it lies outside the dialog then call ReleaseCapture, Set the value of variable false and start timer.

Basically when you setcpature in a dialog and mouse goes outside the dialog then window sends one WM_MOUSEMOVE message to that dialog with the coordinates lies outside the dialog. With the help of those coordinates you can easily get the mouse is inside the dialog or outside the dialog.

Manish Rastogi
Questionhelf regarding pointer to an diolog class in mfc Pin
sunny4u_iitkgp9-Mar-06 22:03
sunny4u_iitkgp9-Mar-06 22:03 
AnswerRe: helf regarding pointer to an diolog class in mfc Pin
toxcct9-Mar-06 22:08
toxcct9-Mar-06 22:08 
AnswerRe: helf regarding pointer to an diolog class in mfc Pin
Stephen Hewitt9-Mar-06 22:10
Stephen Hewitt9-Mar-06 22:10 
GeneralRe: helf regarding pointer to an diolog class in mfc Pin
Monty29-Mar-06 22:15
Monty29-Mar-06 22:15 
GeneralRe: helf regarding pointer to an diolog class in mfc Pin
Stephen Hewitt9-Mar-06 22:18
Stephen Hewitt9-Mar-06 22:18 
AnswerRe: helf regarding pointer to an diolog class in mfc Pin
Monty29-Mar-06 22:13
Monty29-Mar-06 22:13 
Questionbar code Pin
_tasleem9-Mar-06 21:50
_tasleem9-Mar-06 21:50 
AnswerRe: bar code Pin
Cedric Moonen9-Mar-06 21:56
Cedric Moonen9-Mar-06 21:56 
AnswerRe: bar code Pin
Monty29-Mar-06 21:56
Monty29-Mar-06 21:56 
QuestionRe: bar code Pin
David Crow10-Mar-06 2:58
David Crow10-Mar-06 2:58 
QuestionUsing the Library Pin
itkid9-Mar-06 21:41
itkid9-Mar-06 21:41 
AnswerRe: Using the Library Pin
MF9-Mar-06 22:45
MF9-Mar-06 22:45 
AnswerRe: Using the Library Pin
Stephen Hewitt9-Mar-06 22:47
Stephen Hewitt9-Mar-06 22:47 
Questionhow to show menu on right click of mouse on dialog Pin
baldha rakesh9-Mar-06 21:37
baldha rakesh9-Mar-06 21:37 
AnswerRe: how to show menu on right click of mouse on dialog Pin
Monty29-Mar-06 21:54
Monty29-Mar-06 21:54 
AnswerRe: how to show menu on right click of mouse on dialog Pin
Xing Chen9-Mar-06 21:56
Xing Chen9-Mar-06 21:56 
AnswerRe: how to show menu on right click of mouse on dialog Pin
baldha rakesh9-Mar-06 21:57
baldha rakesh9-Mar-06 21:57 

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.