Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportPaintManager::SetGridStyle
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportPaintManager::SetGridStyle

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

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportPaintManager::SetGridStyle
    Posted: 27 July 2010 at 5:43pm
Hello,

the function is defined as:

CXTPReportPaintManager::SetGridStyle(BOOL bVertical, XTPReportGridStyle gridStyle)

Using a BOOL for the orientation is poor in my opinion and makes the code harder to read.

Please overload it as:

enum XTPReportGridOrientation
{
    xtpReportGridOrientationVertical,
    xtpReportGridOrientationHorizontal,
    xtpReportGridOrientationBoth
};

CXTPReportPaintManager::SetGridStyle(XTPReportGridOrientation orientation, XTPReportGridStyle gridStyle)

Leave the old method for backwards compatibility, mark it as deprecated and get rid of it in the next version.

Codejock support
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.125 seconds.