Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Problem with WM_LBUTTTONUP Pin
llp00na11-May-06 0:08
llp00na11-May-06 0:08 
I am trying to build a web browser-IE in which users will be clicking on their areas of interest, for that reason I have to capture the x,y of user left clicks on the control (web browser). I am gona be needing to perform some comparison between the captured (x, y)s

I have been looking at the html element events and it looks like it only returns the html elements that have been clicked. It does not return the exact (x,y).

Capturing the exact x,y of user left clicks will always allow me to access the corresponding html element using pHTMLDocument2->elementFromPoint(x, y, &htmlElement);
However, handling html element events will only allow me to access the relevant html elements. I wont be able to retrieve the (x,y):
Handling html element Events. Please correct me if i am wrong

well for the positiong problem. I dont care which point is to be set as a reference, as long as it is consistent. ie, the top left corner of the client area is the reference or the top left corner of the control is the reference. I cant afford havign two reference points which seems to be the case for me now. whenever i click on the address bar i get a *y* value that is greater than the *y* value retrieved when clicking on the top left corner of the control WTF | :WTF: .

I hope it is clearer now.

llp00na

-- modified at 6:11 Thursday 11th May, 2006
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 
GeneralRe: Rich Editor Pin
tctan10-May-06 17:14
tctan10-May-06 17: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.