[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: state parameter in OnContextMenu

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 02 May 2011 18:49:08 +0200

On 02.05.2011 10:30, Oto BREZINA wrote:
> I'm rewriting selection to be more persistent - use view coordinates
> instead of screen one.
>
> OnContextMenu(CPoint point, DiffStates state) uses two parameter what is
> state for? I have read all code it is used in, but have no idea what it
> is for. Have you any use-case examples?

It's used to enable/disable some entries depending on the diff state.
Have a look at CBaseView::GetMenuFlags().

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2728339
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-05-02 18:49:15 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.