I had such a case in another grid and I solved so:
Code:
BOOL CMyClass::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
if (wParam == IDC_MTMB_GRID && ((NM_GRIDVIEW*)lParam)->hdr.code == NM_RCLICK) {
if (((NM_GRIDVIEW*)lParam)->iColumn == 7) {
[COLOR=green]//here do something[/color]
......
}
}
Here [tt]IDC_MTMB_GRID[/tt] - my Grid
[tt]NM_GRIDVIEW[/tt] - astructure that is send if user clicks on the grid. It has a sructure [tt]hdr[/tt], a member [tt]iColumn[/tt] and some other members.
I'm sure if you look in the docu for msflexgrid you'll find something like that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.