Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » Problem with CExtPropertyGridCtrl Collapse All
Subject Author Date
hesch hesch Jan 12, 2006 - 4:44 AM

Hi,

I’m having problem with the CExtPropertyGridCtrl. I’m using the OnIdle function to refresh an OpenGL view. On a CExtControlBar i’ve a CExtPropertyGridCtrl. Each time i want to change a value on this grid, the program freeze.

Have you an idea about that ?
Thanks in advance.

hesch hesch Jan 12, 2006 - 4:51 AM

In fact, the application freeze each time an item in the CExtPropertyGridCtrl is activated. It’s really problematic, so if you have a quick answer, i will be very happy :).

Best regards.

Technical Support Jan 12, 2006 - 8:06 AM

Thank you for the bug report. The problem is caused by the grid control in which we manually invoke the OnIdle method in some cases. Please open the ExtGridWnd.cpp file, find the following code (four occurrences)

   for( nIdleCounter = 0L;
     ::AfxGetThread()->OnIdle(nIdleCounter);
     nIdleCounter ++
     );
and just comment it:
//   for( nIdleCounter = 0L;
//     ::AfxGetThread()->OnIdle(nIdleCounter);
//     nIdleCounter ++
//     );
This will fix the problem.