Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridItemDate & regional sett
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItemDate & regional sett

 Post Reply Post Reply
Author
Message
Fisher View Drop Down
Newbie
Newbie


Joined: 27 November 2004
Location: Russian Federation
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fisher Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridItemDate & regional sett
    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());
}


Edited by Fisher
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.203 seconds.