Solved

Seeking property list for CHtmlView::GetProperty

Posted on 2002-04-04
2
599 Views
Last Modified: 2013-11-20
I'm searching for a way to determine when a WebBroswer object is at the top of the history list and the "back" button should be disabled.
The best I could figure from the MSDN is to use the function CHtmlView::GetProperty(). But nowhere could I find a list of properties that are supported.

Is this the right solution?
If so what property(ies) do I use to determine if I'm at either end of the history list.
If this won't work, is there some other solution.

-gary kibble
0
Comment
Question by:gkibble
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Crius earned 200 total points
ID: 6919207
CHtmlView::OnCommandStateChange
virtual void OnCommandStateChange( long nCommand, BOOL bEnable );

Parameters

nCommand

Identifier of the command whose enabled state has changed.

bEnable

Enabled state. This parameter is nonzero if the command is enabled, or zero if it is disabled.

Remarks

This member function is called by the framework to notify an application that the enabled state of a web browser command has changed.




CommandStateChangeConstants Enumerated Type

--------------------------------------------------------------------------------

Contains values used by the DWebBrowserEvents2::CommandStateChange event.

Syntax

typedef enum CommandStateChangeConstants {
    CSC_UPDATECOMMANDS = 0xFFFFFFFF,
    CSC_NAVIGATEFORWARD = 0x00000001,
    CSC_NAVIGATEBACK = 0x00000002
} CommandStateChangeConstants;

Constants

CSC_UPDATECOMMANDS
Enabled state of a toolbar button might have changed.

CSC_NAVIGATEFORWARD
Enabled state of the Forward button has changed.

CSC_NAVIGATEBACK
Enabled state of the Back button has changed.

Enumerated Type Information

Header Exdisp.h
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows NT 4.0, Windows 95, Windows CE 2.12

0
 

Author Comment

by:gkibble
ID: 6919440
Thanks that solved the problem...

void CHtmlViewer::OnCommandStateChange( long nCommand, BOOL bEnable )
{
     if ( nCommand == CSC_NAVIGATEFORWARD )
          m_bForwardEnable = bEnable;
     else if ( nCommand == CSC_NAVIGATEBACK )
          m_bBackEnable = bEnable;
}
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question