Click here to Skip to main content
11,718,589 members (84,353 online)
Click here to Skip to main content

Report control - with category

, 14 Oct 2005 CPOL 82.2K 2.6K 75
Rate this:
Please Sign up or sign in to vote.
A report control - with category.

Sample Image

Introduction

Version 3.0.2 supports UNICODE. Thanks John A. Johnson for the hints. This version of report control supports a graphic view for tree and categories. The best way to see all the supported features is to compile the demo and try it.

Background

This code is based on Maarten Hoeben's report control and is compatible with this control.

  • Compile with either VC 6 or VC 7.
  • Supports UNICODE.
  • Supports grouping by categories.
  • Supports graphical tree display.
  • Fixed various scroll problems.
  • Fixed auto sizing the columns.
  • Fixed header match window width.
  • Supports time.
  • Time for category displays Today, Tomorrow etc.
  • Uses a stable sort.
  • Added popup menu to select category.
  • Shift key can be used to resize a column without modifying header size.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

andre arpin
Software Developer
Canada Canada
I have been programming since 1960 in many places, in too many environments and languages. Retired and just doing this for a hobby.

You may also be interested in...

Comments and Discussions

 
GeneralNot working with VS 2010 Pin
Member 17562322-Oct-10 14:09
memberMember 17562322-Oct-10 14:09 
GeneralRe: Not working with VS 2010 Pin
alannx17-Jan-14 21:53
memberalannx17-Jan-14 21:53 
Generalhelp to add a new control Pin
georgesb317-Jul-10 1:13
membergeorgesb317-Jul-10 1:13 
GeneralBug?: Resizing column with windows-setting "Do not resize window" Pin
Siegmund Frenzel15-May-07 2:20
memberSiegmund Frenzel15-May-07 2:20 
Hi,
I do not know the name of the english setting: Go to desktop, click right mouse button / settings / effects / deactivate the option which moves the whole window.
If you are resizing a window, only the small borders are resized. You have to release the mouse button to have the window be redrawn.
(Perhaps on a WTS you have the same settings)

With that settings, open the demo and try to resize columns. That does not work. You can see the small vertical bar which indicates the current mouse position. If you release the button, nothing happens.

I haven't researched the reason but found the lines of codes which introduced that bug.

void CFlatHeaderCtrl::OnLButtonUp(UINT nFlags, CPoint point)
{
...
...
m_LButtonUp = TRUE;
CHeaderCtrl::OnLButtonUp(nFlags, ptClickPoint);
m_LButtonUp = FALSE;
m_bResizing = FALSE;
m_bFixWidth = FALSE;
}


After removing the bold lines of code, the resizing of columns does work with these settings.

Perhaps that helps
Ciao
Siegmund
AnswerRe: Remote Desktop/WTS Bug Pin
andre arpin5-Apr-07 8:43
memberandre arpin5-Apr-07 8:43 
GeneralAccessing items GetItemText Pin
andre arpin3-Mar-07 3:04
memberandre arpin3-Mar-07 3:04 
GeneralRe: Accessing items GetItemText Pin
andre arpin3-Mar-07 3:06
memberandre arpin3-Mar-07 3:06 
GeneralQuestion. This set of classes used as static library .... Pin
xSoptik30-Oct-05 21:46
memberxSoptik30-Oct-05 21:46 
GeneralRe: Question. This set of classes used as static library .... Pin
andre arpin31-Oct-05 6:28
memberandre arpin31-Oct-05 6:28 
GeneralBUG Found Pin
Pandele Florin12-Oct-05 22:14
memberPandele Florin12-Oct-05 22:14 
AnswerRe: BUG Found Pin
andre arpin13-Oct-05 4:22
memberandre arpin13-Oct-05 4:22 
GeneralRe: BUG Found Pin
andre arpin13-Oct-05 12:28
memberandre arpin13-Oct-05 12:28 
GeneralThanks for the article. Notice about ReportDemo sources. Pin
dido2k12-Oct-05 11:55
memberdido2k12-Oct-05 11:55 
GeneralRe: Thanks for the article. Notice about ReportDemo sources. Pin
andre arpin13-Oct-05 3:32
memberandre arpin13-Oct-05 3:32 
GeneralIt's exactly what i am finding! Pin
Angus He14-Jul-05 16:38
memberAngus He14-Jul-05 16:38 
GeneralUNICODE compile (VC6) Pin
John A. Johnson14-Jul-05 2:27
memberJohn A. Johnson14-Jul-05 2:27 
GeneralRe: UNICODE compile (VC6) Pin
andre arpin14-Jul-05 4:25
memberandre arpin14-Jul-05 4:25 
GeneralGreat job... Pin
Maarten Hoeben13-Jul-05 23:07
memberMaarten Hoeben13-Jul-05 23:07 
GeneralRe: Great job... Pin
andre arpin14-Jul-05 2:15
memberandre arpin14-Jul-05 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150901.1 | Last Updated 14 Oct 2005
Article Copyright 2005 by andre arpin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid