Keyboard messages not received by my window
-
Try to understand this. I have a main application and a dll. main application has its mfc view window, say window 1 and there's a button on main window(window 1) which calls a function inside a dll to open a new window, say window 2. Both view windows handles WM_KEYDOWN message and pop up a message box. Now, when only window 1 is opened, all keyboard messages are properly received by it. When I open a window 2 and then press key, no keyboard message is received by either of the windows. Even if I minimize window 1 by clicking on minimize button at top right, no keyboard message is received by either of the windows. Imagine this -> both windows are open side by side and if I directly click on window 2, then it will bring window 2 to forefront and now window 2 will receive all keyboard messages. I know window 2 is child of window 1 but somehow not able to route messages to window 2 properly. Does anyone have any idea why this problem in setting focus to window 2 is occuring. when I minimize window 1, why cant window 2 receive keyboard messages???
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..