Print Page | Close Window

CXTPPropertyGridItemDate & regional sett

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=1917
Printed Date: 23 May 2024 at 6:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridItemDate & regional sett
Posted By: Fisher
Subject: CXTPPropertyGridItemDate & regional sett
Date Posted: 06 March 2005 at 5:22am
Hello,

1. CXTPPropertyGridItemDate does not display it's date content with respect to OS regional settings. Would you (Codejock) fix it or I have to derive my own class from CXTPPropertyGridItemDate (or call to SetDateFormat)?

2. Why does CXTPPropertyGridItemDate ctor (as well as Init() function) need nonconst COleDateTime& as it's second argument ? Nothere in CXTPPropertyGridItemDate() or in Init() a reference to COleDateTime object changes. As a result of such inconsistency, the following code failes to compile:
void foo(CXTPPropertyGridItemDate* someDate) {

    CXTPPropertyGridItemDate newDate("Date", someDate->GetDate());
}



Replies:
Posted By: Oleg
Date Posted: 10 March 2005 at 10:16am

1. Yes, you must call SetDateFormat.

2. It will be changed.

You can use

void foo(CXTPPropertyGridItemDate* someDate) {
    CXTPPropertyGridItemDate newDate("Date", COleDateTime(someDate->GetDate()));
}

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net