Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Small icons Pin
lillah4-Nov-04 22:47
lillah4-Nov-04 22:47 
GeneralRe: Small icons Pin
ThatsAlok4-Nov-04 23:52
ThatsAlok4-Nov-04 23:52 
GeneralRe: Union question Pin
Antony M Kancidrowski4-Nov-04 8:07
Antony M Kancidrowski4-Nov-04 8:07 
GeneralRe: Union question Pin
Steve Messer4-Nov-04 14:48
Steve Messer4-Nov-04 14:48 
GeneralC++ function pointers Pin
_psh_4-Nov-04 7:57
_psh_4-Nov-04 7:57 
GeneralRe: C++ function pointers Pin
Peter Weyzen4-Nov-04 8:08
Peter Weyzen4-Nov-04 8:08 
GeneralRe: C++ function pointers Pin
Michael Dunn4-Nov-04 12:28
sitebuilderMichael Dunn4-Nov-04 12:28 
GeneralDisabling Scripts in IWebBrowser2 Pin
Member 14952024-Nov-04 7:52
Member 14952024-Nov-04 7:52 
I have implemented an instance of IWebBrowser2 in my application and am using IDocHostUIHandler::GetHostInfo(DOCHOSTUIINFO* pInfo) to set various properties of the web browser such as no 3D border (DOCHOSTUIFLAG_NO3DBORDER) and no scroll bars (DOCHOSTUIFLAG_SCROLL_NO). I also wish to disable the running of scripts in my instance of the browser and have attempted to use DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE. The suppression of the 3D border and scroll bars is working perfectly but the suppression of scripts is not working. Here is my implementation of IDocHostUIHandler::GetHostInfo(DOCHOSTUIINFO* pInfo):

HRESULT FAR EXPORT ZBrowser::XDocHostUIHandler::GetHostInfo(DOCHOSTUIINFO* pInfo)
{
/*
DOCHOSTUIFLAG_DIALOG = 0x00000001,
DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x00000002,
DOCHOSTUIFLAG_NO3DBORDER = 0x00000004,
DOCHOSTUIFLAG_SCROLL_NO = 0x00000008,
DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x00000010,
DOCHOSTUIFLAG_OPENNEWWIN = 0x00000020,
DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x00000040,
DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x00000080,
DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x00000100,
DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x00000200,
DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x00000400,
DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x00000800,
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x00001000,
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x00002000,
DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x00004000,
DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x00010000,
DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x00020000,
DOCHOSTUIFLAG_THEME = 0x00040000,
DOCHOSTUIFLAG_NOTHEME = 0x00080000,
DOCHOSTUIFLAG_NOPICS = 0x00100000
*/

pInfo->cbSize = sizeof(DOCHOSTUIINFO);
pInfo->dwFlags = DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_SCROLL_NO | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE;

pInfo->dwDoubleClick = DOCHOSTUIDBLCLK_DEFAULT;

return S_OK;
}

Any help on this would be greatly appreciated!

Thanks!


Peter Gorgia
peter.gorgia@tradeweb.com
QuestionNULL pContext on Dynamic Window Creation?? Pin
Ali Niaz4-Nov-04 6:57
Ali Niaz4-Nov-04 6:57 
QuestionWhat's wrong with this???? Pin
Tom Wright4-Nov-04 5:49
Tom Wright4-Nov-04 5:49 
AnswerRe: What's wrong with this???? Pin
David Crow4-Nov-04 7:41
David Crow4-Nov-04 7:41 
GeneralRe: What's wrong with this???? Pin
Tom Wright4-Nov-04 7:56
Tom Wright4-Nov-04 7:56 
GeneralRe: What's wrong with this???? Pin
Antony M Kancidrowski4-Nov-04 8:24
Antony M Kancidrowski4-Nov-04 8:24 
AnswerRe: What's wrong with this???? Pin
Sujan Christo4-Nov-04 19:55
Sujan Christo4-Nov-04 19:55 
GeneralCurrent directory defining Pin
dudic4-Nov-04 5:27
dudic4-Nov-04 5:27 
GeneralRe: Current directory defining Pin
Tom Wright4-Nov-04 6:12
Tom Wright4-Nov-04 6:12 
GeneralThread question Pin
Tom Wright4-Nov-04 4:12
Tom Wright4-Nov-04 4:12 
GeneralRe: Thread question Pin
lesnikowski4-Nov-04 5:21
lesnikowski4-Nov-04 5:21 
QuestionAdd menu to CDialog? Pin
DanYELL4-Nov-04 4:00
DanYELL4-Nov-04 4:00 
AnswerRe: Add menu to CDialog? Pin
Tom Wright4-Nov-04 4:15
Tom Wright4-Nov-04 4:15 
GeneralScreenshot to .PNG Pin
peterchen4-Nov-04 3:50
peterchen4-Nov-04 3:50 
GeneralSkin on scrollbar of richedit control Pin
verma-rahul4-Nov-04 3:18
verma-rahul4-Nov-04 3:18 
GeneralPath to pdb file in binary Pin
kydfru4-Nov-04 2:51
kydfru4-Nov-04 2:51 
GeneralRe: Path to pdb file in binary Pin
Blake Miller4-Nov-04 6:13
Blake Miller4-Nov-04 6:13 
GeneralRe: Path to pdb file in binary Pin
kydfru4-Nov-04 6:22
kydfru4-Nov-04 6:22 

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.