Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - BUG in deprecated xtpGridItemHas* values
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG in deprecated xtpGridItemHas* values

 Post Reply Post Reply
Author
Message
MartinT View Drop Down
Newbie
Newbie
Avatar

Joined: 18 August 2007
Location: Austria
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote MartinT Quote  Post ReplyReply Direct Link To This Post Topic: BUG in deprecated xtpGridItemHas* values
    Posted: 05 April 2024 at 4:37am
Bug in [Source\PropertyGrid\XTPPropertyGridItem.h]

In v19 we had:

enum XTPPropertyGridItemFlags
{
    xtpGridItemHasEdit           = 1, // Item has an edit control.
    xtpGridItemHasExpandButton = 2, // Item has an expand button.
    xtpGridItemHasComboButton  = 4  // Item has a combo button.
};

In v22 was introduced:

enum XTPPropertyGridItemFlags
{
    xtpPropertyGridItemHasEdit           = 1, // Item has an edit control.
    xtpPropertyGridItemHasExpandButton = 2, // Item has an expand button.
    xtpPropertyGridItemHasComboButton  = 4  // Item has a combo button.
};

//{{AFX_CODEJOCK_PRIVATE
_XTP_DEPRECATED_IN_FAVOR(xtpPropertyGridItemHasEdit)
const XTPPropertyGridItemFlags xtpGridItemHasEdit = xtpPropertyGridItemHasEdit;

_XTP_DEPRECATED_IN_FAVOR(xtpGridItemHasExpandButton) *same; no "..Property.."*
const XTPPropertyGridItemFlags xtpGridItemHasExpandButton = xtpGridItemHasExpandButton;

_XTP_DEPRECATED_IN_FAVOR(xtpGridItemHasComboButton)
const XTPPropertyGridItemFlags xtpGridItemHasComboButton = xtpGridItemHasComboButton;
//}}AFX_CODEJOCK_PRIVATE

As you can see, the Values 2 and 4 had their deprecated entries mixed up and get self-assigned resulting in 0 as values for the old constant names!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.