|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Martin Baumgaertner
|
May 25, 2007 - 1:52 AM
|
Hi,
is there an example of how to create a ReportGrid in an user defined resizable dialog --- class MyDialog : public CDialog ---?
Thanks for any help,
Martin
|
|
Martin Baumgaertner
|
May 31, 2007 - 9:38 AM
|
Works perfect - Thank you VERY MUCH!
Martin
|
|
Martin Baumgaertner
|
May 31, 2007 - 7:56 AM
|
One more question from me bloody prof-ui newbie:
how do I set up a message handling routine properly if I want to notify any user actions (mouse, keyboard) due to data selection changes in my dialog’s report grid tree in order to extract the recently selected item (CString in a specific column)?
Martin
|
|
Technical Support
|
May 31, 2007 - 9:25 AM
|
You can do this by overriding the OnGbwSelectionChanged() virtual method to track when selection changes.
|
|
Martin Baumgaertner
|
May 30, 2007 - 1:14 AM
|
Thank you VERY much!
Martin
|
|
Martin Baumgaertner
|
May 29, 2007 - 10:04 AM
|
My customized dialog is working fine now! But how can I implement the nice persistence features used by the overwhelming but somehow confusing sample app "ReportGrid-nd.exe"? (i.e. how can I (re)store a previous custom grouping)
Thanks a lot in advance!
Martin
|
|
Technical Support
|
May 29, 2007 - 1:09 PM
|
The following methods of the CExtReportGridWnd class load/save the state from/to the registry or an MFC acrchive: // state serialization
virtual bool ReportGridStateSerialize(
CArchive & ar,
bool bSerializeColumnAlignment = true,
bool bSerializeSortOrder = true,
bool bEnableThrowExceptions = false,
bool * p_bFormatIncompatibilityDuringLoad = NULL
);
bool ReportGridStateLoad(
__EXT_MFC_SAFE_LPCTSTR sReportGridID,
__EXT_MFC_SAFE_LPCTSTR sSectionNameCompany, // under HKEY_CURRENT_USER\Software
__EXT_MFC_SAFE_LPCTSTR sSectionNameProduct, // under HKEY_CURRENT_USER\Software\%sSectionNameCompany%
__EXT_MFC_SAFE_LPCTSTR sSectionNameProfile, // under HKEY_CURRENT_USER\Software\%sSectionNameCompany%\%sSectionNameProfile%
HKEY hKeyRoot = HKEY_CURRENT_USER,
bool bSerializeColumnAlignment = true,
bool bSerializeSortOrder = true,
bool bEnableThrowExceptions = false,
bool * p_bFormatIncompatibilityDuringLoad = NULL
);
bool ReportGridStateSave(
__EXT_MFC_SAFE_LPCTSTR sReportGridID,
__EXT_MFC_SAFE_LPCTSTR sSectionNameCompany, // under HKEY_CURRENT_USER\Software
__EXT_MFC_SAFE_LPCTSTR sSectionNameProduct, // under HKEY_CURRENT_USER\Software\%sSectionNameCompany%
__EXT_MFC_SAFE_LPCTSTR sSectionNameProfile, // under HKEY_CURRENT_USER\Software\%sSectionNameCompany%\%sSectionNameProfile%
HKEY hKeyRoot = HKEY_CURRENT_USER,
bool bSerializeColumnAlignment = true,
bool bSerializeSortOrder = true,
bool bEnableThrowExceptions = false,
bool * p_bFormatIncompatibilityDuringLoad = NULL
); The ReportGrid sample uses the CExtReportGridWnd::ReportGridStateLoad() and CExtReportGridWnd::ReportGridStateSave() methods for lading/saving the state of the report grid control from/to the system registry.
|
|
Martin Baumgaertner
|
May 29, 2007 - 1:18 AM
|
Thank you very much for helping me,
Martin
|
|
Technical Support
|
May 26, 2007 - 11:30 AM
|
|
|