Search   Feed   Browse   Add
Feed items 1 - 3 of 3 for April 2006

IOleCommandTarget, CGID_MSHTML and ActiveX controls - April 21, 2006

If you write an application that hosts the WebBrowser Control, and you want the control to do something, you can send commands to mshtml via the IOleCommandTarget interface. However, if you are an ActiveX control and you want to send CGID_MSHTML commands, you may try something like this:     ...    IOleCommandTarget pCommandTarget = NULL;    hr = _punkSite->QueryInterface(IID_IOleCommandTarget, (void )&pCommandTarget);    if...
http://blogs.msdn.com/jeffdav/archive/2006/04/21/581012.aspx

on getting IOleCommandTarget wrong (and a bit in the middle about ActiveX controls) - April 11, 2006

IOleCommandTarget is very useful.  It provides a generic way of sending commands between objects.  IE makes extensive use of IOleCommandTarget, both publically and internally.  And, like IUnknown, people frequently get it wrong. Each command is composed of a GUID (Command Group Identifier) and a DWORD (Command Identifier).  First, what is wrong with this code: HRESULT CFoo::Exec(const GUID pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANTARG pvarargIn,...
http://blogs.msdn.com/jeffdav/archive/2006/04/11/573776.aspx

on 64 bit data conversion, comctl32 and reading the documentation - April 6, 2006

Question: What is wrong with this code case WM_DRAWITEM:   LPDRAWITEMSTRUCT pdis = (LPDRAWITEMSTRUCT) lParam;   COMBOBOXEXITEM cbexItem = 0;   cbexItem.mask = CBEIF_IMAGE CBEIF_SELECTEDIMAGE;   cbexItem.iItem = pdis->itemID;    CallWindowProc(pfnOldWndProc, hwnd, CBEM_GETITEM, 0, (LPARAM)&cbexItem);   ... Answer: It will break on 64 bit machines. This is just one example of a well-known...
http://blogs.msdn.com/jeffdav/archive/2006/04/06/570341.aspx
Available Archives
- March (1 item)
- April (3 items)
- May (2 items)
- July (2 items)
- August (2 items)
- September (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact