|
|
|
|
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 |
|
tera t
|
Apr 6, 2008 - 10:17 PM
|
Hello. When I clicked CellCombo and CellString.
If it is specific Cell, I do not want to react.
When there is a Virtual function in this point.
Convenience should be good.
Please examine.
bool CExtGridWnd::OnGbwAnalyzeCellMouseClickEvent(
UINT nChar, // VK_LBUTTON, VK_RBUTTON or VK_MBUTTON only
UINT nRepCnt, // 0 - button up, 1 - single click, 2 - double click, 3 - post single click & begin editing
UINT nFlags, // mouse event flags
CPoint point // mouse pointer in client coordinates
)
{
ASSERT_VALID( this );
ASSERT( 0 <= nRepCnt && nRepCnt <= 3 );
:
:
:
: CExtGridCell * pCell =
GridCellGet(
htInfo.m_nColNo,
htInfo.m_nRowNo,
nColType,
nRowType
); *************************************************************
if ( OnEditItemStatus( pCell , htInfo ) == false ){
return false;
}
************************************************************* :
:
:
:
|
|
Technical Support
|
Apr 10, 2008 - 7:28 AM
|
What is the purpose of this method? If you want to prevent the cell’s in-place editor from being activated, there is another way. You can achieve this either with the __EGCS_NO_INPLACE_CONTROL style or with the __EGCS_READ_ONLY style. If you set __EGCS_READ_ONLY , the user will be able to activate the in-place editor, but it will be read-only. If you set __EGCS_NO_INPLACE_CONTROL , the in-place will not be activated at all.
|
|