Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - FindConstraint() - Spelling and Need Help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FindConstraint() - Spelling and Need Help

 Post Reply Post Reply
Author
Message
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Topic: FindConstraint() - Spelling and Need Help
    Posted: 06 August 2004 at 2:07pm

I am working with the CXTPItemConstraints to along with the CXTPPropertyGridItem. I have run into a minor problem and need to know how to have the desired constraint show up in my list when the child item is displayed. For instance,

 // Find the value for this parameter and preset it
 if (-1 == pList->FindConstaint(sAirRating))
  pList->SetCurrent(pList->FindConstaint(NO_ DATA));
 else
  pList->SetCurrent(pList->FindConstaint(sAi rRating));

I'm trying to set the current value (found in the variable) to be displayed to the user, if one was found. If not found, then I want it to display NO_DATA ( _T("NoData") ). However, as it now stands, my default value for the sAirRating variable is NULL and I expect NoData to show on the child value, but I get nothing.

Any idea why?

Also, the member function FindConstaint is spelled wrong. Should be FindConstraint (note the missing R).

Thanks!

John Hagen

 

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.156 seconds.