Pb with ActiveX control
-
Hi all ! I have done an ActiveX control non-subclassed in which I create a Grid I've done for desktop applications. In that grid, I handle the TAB key to move in the cells and I can edit a cell with a little CEdit derived control. It works fine in destop applications, but in ActiveX control, I have some bizarre behaviours ! The TAB works one time (ie the next cell is selected), but at the second time, the grid loses the focus ! In the same way, the arrow keys don't work in the little cell edit ! Why doesn't my grid work like in a desktop app ? Thanks for any help !!! Emmanuel Derriey. Windows Software Developer. e-mail : mderriey@hotmail.com
-
Hi all ! I have done an ActiveX control non-subclassed in which I create a Grid I've done for desktop applications. In that grid, I handle the TAB key to move in the cells and I can edit a cell with a little CEdit derived control. It works fine in destop applications, but in ActiveX control, I have some bizarre behaviours ! The TAB works one time (ie the next cell is selected), but at the second time, the grid loses the focus ! In the same way, the arrow keys don't work in the little cell edit ! Why doesn't my grid work like in a desktop app ? Thanks for any help !!! Emmanuel Derriey. Windows Software Developer. e-mail : mderriey@hotmail.com
I've run into this before too. I can't remember the exact solution, but I believe it requires a change to the message routing in MFC. If you do a search in MSDN for activex arrows and MFC I think the knowledgebase article will come up. If I get a chance today, I'll see if I can find the exact link to the article.