Click here to Skip to main content
15,891,633 members
Home / Discussions / COM
   

COM

 
GeneralRe: i did not develop any com yet but i want Pin
Simon.W26-Aug-02 0:55
Simon.W26-Aug-02 0:55 
GeneralRe: i did not develop any com yet but i want Pin
Stephane Rodriguez.26-Aug-02 23:47
Stephane Rodriguez.26-Aug-02 23:47 
GeneralRe: i did not develop any com yet but i want Pin
Vagif Abilov30-Aug-02 10:16
professionalVagif Abilov30-Aug-02 10:16 
Generalthumbnail using imgthumb ActiveX control Pin
toon22-Aug-02 2:07
toon22-Aug-02 2:07 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
Stephane Rodriguez.26-Aug-02 23:51
Stephane Rodriguez.26-Aug-02 23:51 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
toon27-Aug-02 1:52
toon27-Aug-02 1:52 
GeneralRe: IDocHostUIHandler::TranslateAccelerator Help Pin
Michael Mac21-Aug-02 11:47
Michael Mac21-Aug-02 11:47 
GeneralRe: IDocHostUIHandler::TranslateAccelerator Help Pin
Douglas Troy23-Aug-02 10:25
Douglas Troy23-Aug-02 10:25 
I resolved this issue, finally, and figured I'd post the solution for those of you that want an answer to this question as well.

The TranslateAccelerator() method in the IDocHostUIHandler interface is extended and key events are handled based on a flag passed from the container object (in this case, a window). I originally tried to pass the accelerator KB message to the parent window by using SendMessage() but that only caught the first key of the key stroke (i.e. an ALT-F would only catch the ALT key ).

Instead, I ended-up using a PostMessage call, which is able to properly handle the dispatched accelerator message.

Here's a code snippet for ya:
 <br />
if ( m_vbEnableAllAccels == VARIANT_FALSE ) { <br />
  // attempt to hook the parent container and dispatch the <br />
  // accelerator key press to that window<br />
  HWND hWndParent = ::GetAncestor( lpMsg->hwnd, GA_ROOT );<br />
  ATLASSERT( hWndParent );<br />
  PostMessage( hWndParent, lpMsg->message, lpMsg->wParam, lpMsg->lParam );<br />
 }<br />
 else if (m_vbEnableAllAccels == VARIANT_TRUE<br />
         || (GetKeyState(VK_CONTROL) >= 0<br />
           && GetKeyState(VK_SHIFT) >= 0 && GetKeyState(VK_MENU) >= 0))<br />
      { ...<br />



D.
GeneralVBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 6:57
Anonymous21-Aug-02 6:57 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin21-Aug-02 7:09
Ernest Laurentin21-Aug-02 7:09 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 9:31
Anonymous21-Aug-02 9:31 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin21-Aug-02 9:50
Ernest Laurentin21-Aug-02 9:50 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 22:12
Anonymous21-Aug-02 22:12 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin22-Aug-02 7:38
Ernest Laurentin22-Aug-02 7:38 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous22-Aug-02 0:46
Anonymous22-Aug-02 0:46 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin22-Aug-02 6:52
Ernest Laurentin22-Aug-02 6:52 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Koep25-Aug-02 22:04
Koep25-Aug-02 22:04 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin27-Aug-02 5:21
Ernest Laurentin27-Aug-02 5:21 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin27-Aug-02 8:08
Ernest Laurentin27-Aug-02 8:08 
Generalreceiving data Pin
Lily1820-Aug-02 9:57
Lily1820-Aug-02 9:57 
QuestionHow to put HTML? Pin
User 100963419-Aug-02 8:20
User 100963419-Aug-02 8:20 
AnswerRe: How to put HTML? Pin
CodeProjectSQ19-Aug-02 9:29
CodeProjectSQ19-Aug-02 9:29 
AnswerRe: How to put HTML? Pin
Stephane Rodriguez.19-Aug-02 10:38
Stephane Rodriguez.19-Aug-02 10:38 
AnswerRe: How to put HTML? Pin
S.A.19-Aug-02 16:00
S.A.19-Aug-02 16:00 
GeneralRe: How to put HTML? Pin
Stephane Rodriguez.19-Aug-02 18:59
Stephane Rodriguez.19-Aug-02 18:59 

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.