Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 3:34
llp00na10-May-06 3:34 
GeneralRe: Problem with WM_LBUTTTONUP Pin
Cedric Moonen10-May-06 3:42
Cedric Moonen10-May-06 3:42 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 3:55
llp00na10-May-06 3:55 
GeneralRe: Problem with WM_LBUTTTONUP Pin
Cedric Moonen10-May-06 4:04
Cedric Moonen10-May-06 4:04 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 4:09
llp00na10-May-06 4:09 
GeneralRe: Problem with WM_LBUTTTONUP Pin
Cedric Moonen10-May-06 4:27
Cedric Moonen10-May-06 4:27 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 23:13
llp00na10-May-06 23:13 
GeneralRe: Problem with WM_LBUTTTONUP Pin
Cedric Moonen10-May-06 23:20
Cedric Moonen10-May-06 23:20 
llp00na wrote:
Instead he recommended to override the PreTranslateMessage


I don't think this is a good idea: what you need (from what I understood) is getting a message when the user clicks on the control, not on the dialog (am I wrong ?). So, it is better that the control fires the event when you click on it, so that you get notification in the dialog (and you can retrieve the X and Y position ON the control).


llp00na wrote:
Whenever i click on the address bar i receice a *y* value that is bigger than the value of *y* received when clicking on the control (just beneath the address bar).


That's strange... I don't know what the problem is. But what position do you need to retrieve exactly ? The position on the dialog on the position on the control (they are different because the upper-left corner is considered as the reference point for the position on the control).

Maybe, before going further, it could be very helpfull for me to understand what you are trying to achieve: why do you want to get these mouse events and for what purpose (and why you need the position). What is the control used ? ...
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na11-May-06 0:08
llp00na11-May-06 0:08 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 3:08
llp00na10-May-06 3:08 
GeneralRe: Problem with WM_LBUTTTONUP Pin
Cedric Moonen10-May-06 3:16
Cedric Moonen10-May-06 3:16 
AnswerRe: Problem with WM_LBUTTTONUP Pin
shivditya10-May-06 2:05
shivditya10-May-06 2:05 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na10-May-06 2:24
llp00na10-May-06 2:24 
QuestionChild Window Pin
F.Smadi10-May-06 1:14
F.Smadi10-May-06 1:14 
AnswerRe: Child Window Pin
llp00na10-May-06 1:34
llp00na10-May-06 1:34 
AnswerRe: Child Window Pin
Nishad S10-May-06 1:34
Nishad S10-May-06 1:34 
AnswerRe: Child Window Pin
Nibu babu thomas10-May-06 2:11
Nibu babu thomas10-May-06 2:11 
QuestionMulti Window With OpenGl Pin
F.Smadi10-May-06 1:11
F.Smadi10-May-06 1:11 
QuestionCustom control derived from CDialog Pin
benjymous10-May-06 1:06
benjymous10-May-06 1:06 
AnswerRe: Custom control derived from CDialog Pin
Cedric Moonen10-May-06 1:12
Cedric Moonen10-May-06 1:12 
QuestionRich Editor Pin
tctan10-May-06 0:35
tctan10-May-06 0:35 
AnswerRe: Rich Editor Pin
kakan10-May-06 0:46
professionalkakan10-May-06 0:46 
GeneralRe: Rich Editor Pin
tctan10-May-06 4:01
tctan10-May-06 4:01 
GeneralRe: Rich Editor Pin
kakan11-May-06 20:17
professionalkakan11-May-06 20:17 
AnswerRe: Rich Editor Pin
Dan McCormick10-May-06 12:14
Dan McCormick10-May-06 12:14 

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.