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 |
|
Eric Houvenaghel
|
Aug 25, 2006 - 10:53 AM
|
When using CExtGridCellCheckBox with the __EGCS_READ_ONLY style, the cells checkbox is greyed out. Basically, is it posible to have a read only cell checkbox without them being greyed out? The only way I can think of is to block the click events on a non read only cell checkbox. I’m hoping for an easier way. If there is not can you point me in the right direction.
Thank you.
|
|
Eric Houvenaghel
|
Aug 25, 2006 - 11:29 AM
|
Sorry I meant to post this on the support forum.
|
|
Technical Support
|
Aug 26, 2006 - 6:40 AM
|
You should create and use a CExtGridCellCheckBox -derived class and implement the CExtGridCell::OnPaintCheck() virtual method in it. Copy and paste the body of the original method except for the following lines at the beginning: bool bReadOnly =
( (dwCellStyle&__EGCS_READ_ONLY) != 0 )
? true : false; Replace these lines with: bool bReadOnly = false
|
|