Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.vc.language,microsoft.public.win32.programmer.ole,microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have been working on a COM Add-in using C++ implementing the IDTExtensibility2 interface. This add-in places a button on a tool bar which when clicked creates a child window in which the user can enter a range of rows that will then be processed as per the add-in's requirements. Creating the window is working fine, the parent is set to the HWND of the main Excel window. The problem is that whenever I set the focus to one of the editboxes in my window and try type the focus is jumping back to the main Excel window and typing into the last selected cell It looks to me almost as if there is a keyboard hook being created in the main excel app as I get all the appropriate WM_SETFOCUS messages coming to my window proc so I know the focus is being set, but as soon as I press a key on the keyboard it jumps back to the excel window. If I put my own hook in and do not call the next hook in the chain then it does stop it jumping back. Is excel using a hook, if not how or what should I be doing to get the focus truly and properly set on my window so that excel wont steal it back Any help is greatly appreciated on this Thanks Gareth |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Windows browser Parent/Child structure | New Users to Excel | |||
Sorting Parent Child | Excel Worksheet Functions | |||
keyboard shortcut for moving between windows | Excel Discussion (Misc queries) | |||
child support calculator | Excel Discussion (Misc queries) | |||
Keyboard shortcut for Maximizing Windows | Excel Programming |