CGXGridCore::OnClickedButtonRowCol

virtual void OnClickedButtonRowCol(ROWCOL nRow, ROWCOL nCol);?

nRow

Specifies the row id.

nCol

Specifies the column id.

Remarks

Overridable method which is called when the user has pressed a button as a pushbutton, or as a hotspot-button. The method is called from CGXControl::OnClickedButton.

You can either override OnClickedButtonRowCol for all controls or subclass a specific control and override the control’s OnClickedButton method to process the button event.

Example

This example displays a MessageBox when the user has pressed a button.

void CSampleView::OnClickedButtonRowCol(ROWCOL nRow, ROWCOL nCol, CPoint point, UINT flags)
{
   TRACE("OnClickedButtonRowCol(%ld,%ld,...,%d)\n", nRow, nCol, flags);
   GXCELL nType = GX_CELLEDIT;
   const CGXSttyle& style = LookupStyleRowCol(nRow, nCol);
   CString s;
   s.Format("Button pressed at Row %ld, Column %ld.\n", nRow, nCol);
   if (style.GetIncludeValue( ) && style.GetValueRef( ).GetLength( ) > 0)
         s. Format("Current Text is '%s'", (LPCTSTR) style.GetValueRef( ));
   AfxMessageBox(s);

See Also

 CGXControl::OnClickedButton

}

CGXGridCore

 Class Overview |  Class Members