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

C / C++ / MFC

 
GeneralRe: desktop sharing Pin
_tasleem2-Aug-05 4:43
_tasleem2-Aug-05 4:43 
GeneralCasting Cstring to int Pin
Halawlaws1-Aug-05 22:23
Halawlaws1-Aug-05 22:23 
GeneralRe: Casting Cstring to int Pin
Eytukan1-Aug-05 22:36
Eytukan1-Aug-05 22:36 
GeneralRe: Casting Cstring to int Pin
Marc Soleda1-Aug-05 22:44
Marc Soleda1-Aug-05 22:44 
GeneralRe: Casting Cstring to int Pin
Neelesh K J Jain1-Aug-05 22:52
Neelesh K J Jain1-Aug-05 22:52 
QuestionGetting ptr to IHTMLDocument2 from IHTMLElement? Pin
David Fleming1-Aug-05 22:12
David Fleming1-Aug-05 22:12 
AnswerRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
Marc Soleda1-Aug-05 23:10
Marc Soleda1-Aug-05 23:10 
GeneralRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
David Fleming3-Aug-05 18:44
David Fleming3-Aug-05 18:44 
Excellent. Thanks.

But now I have another question. What I'm trying to do is implement a HTMLEditDesigner and trap keyboard input in the TranslateAccelerator event. If the user is moving into an element that is "off limits", I want to cancel it.

The elementFromPoint() method is using the mouse coordinates (which I did not realize upon reading it, but... duh!). My question is: let's say the user is on a line below a restricted line and presses the up arrow key (thus moving into a restricted area -- or at least attempting to); I trap the keydown event in the TranslateAccelerator callback, but it seems to me that the element I get (using pIEventObj->getSrcElement) always has BODY as the tag (using pElement->getTagName), even if the cursor is moving into a BOLD, DIV, etc. What's the snag or trick? Why can't I seem to get the actual tag? BTW, it works fine on mouse clicks trapped in the PretranslateEvent callback, but this callback does not seem to trap arrow key presses (my understanding is that that is what TranslateAccelerator is for, and supposedly it is called before PretranslateEvent).

Thanks.
GeneralRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
Marc Soleda3-Aug-05 20:45
Marc Soleda3-Aug-05 20:45 
Generaltroubles on exchanging data between dialog Pin
firebolt771-Aug-05 22:02
firebolt771-Aug-05 22:02 
GeneralRe: troubles on exchanging data between dialog Pin
khan++1-Aug-05 23:29
khan++1-Aug-05 23:29 
GeneralRe: troubles on exchanging data between dialog Pin
firebolt772-Aug-05 0:21
firebolt772-Aug-05 0:21 
GeneralRe: troubles on exchanging data between dialog Pin
Marc Soleda1-Aug-05 23:40
Marc Soleda1-Aug-05 23:40 
GeneralRe: troubles on exchanging data between dialog Pin
David Crow2-Aug-05 3:59
David Crow2-Aug-05 3:59 
Generalmultiple selction in combo box Pin
Anonymous1-Aug-05 21:26
Anonymous1-Aug-05 21:26 
GeneralRe: multiple selction in combo box Pin
Marc Soleda1-Aug-05 22:34
Marc Soleda1-Aug-05 22:34 
Generalpassing values b/w Dialog boxes Pin
Member 20725781-Aug-05 21:13
Member 20725781-Aug-05 21:13 
GeneralRe: passing values b/w Dialog boxes Pin
khan++1-Aug-05 21:39
khan++1-Aug-05 21:39 
GeneralRe: passing values b/w Dialog boxes Pin
Member 20725781-Aug-05 22:06
Member 20725781-Aug-05 22:06 
GeneralRe: passing values b/w Dialog boxes Pin
khan++1-Aug-05 23:02
khan++1-Aug-05 23:02 
GeneralReading an *.Dat File(Again) Pin
a_david1231-Aug-05 20:49
a_david1231-Aug-05 20:49 
GeneralRe: Reading an *.Dat File(Again) Pin
khan++1-Aug-05 21:22
khan++1-Aug-05 21:22 
GeneralRe: Reading an *.Dat File(Again) Pin
David Crow2-Aug-05 4:02
David Crow2-Aug-05 4:02 
GeneralExplorer type application Pin
BicycleTheif1-Aug-05 20:47
BicycleTheif1-Aug-05 20:47 
GeneralRe: Explorer type application Pin
P-Rex1-Aug-05 23:19
P-Rex1-Aug-05 23:19 

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.