Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 19 Aug 2008 02:49:50 +0800,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


About queryCommandValue and IOleCommandTarget::QueryStatus   
MSDN says: queryCommandValue is a wrapper for 
IOleCommandTarget::QueryStatus.

    But I can get value by this:

    CComVariant var;
    spDoc2->queryCommandValue(L"FormatBlock",&var);

    And cannot get value by this:

    OLECMD cmds[1];
    cmds[0].cmdID=IDM_BLOCKFMT;
    struct
    {
	OLECMDTEXT	cmdTxt;
	wchar_t		buffer[32];
    }buf={{OLECMDTEXTF_STATUS,0,32}};
    spCmdTgt->QueryStatus(&CGID_MSHTML,1,cmds,&buf.cmdTxt);

    what's wrong with my code?

    thx!
date: Tue, 19 Aug 2008 02:49:50 +0800   author:   susan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us