Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Tom Hundt
Thu, 04 Apr 1991 19:44
How to make a window "selectable" from switchlist? (or otherwise)
Author: Tom Hundt
Date: Thu, 04 Apr 1991 19:44
Date: Thu, 04 Apr 1991 19:44
23 lines
1447 bytes
1447 bytes
The problem: I have a one-window program that uses a window created using WinCreateWindow. (Note: not WinCreateStdWindow, which creates a frame window etc.) I wanted to be able to receive keyboard messages (so the thing would not *require* a mouse to use it). But, I can't seem to get the focus to be on my window. I can't figure out how to *select* my window. I added the program to the switchlist (so that now, I can "End Task" it; this required returning the window's handle in response to a WM_QUERYFOCUSCHAIN message). Trying to "switch to" the application does nothing; whatever other window was last selected, still is. According to the documentation, I should be getting WM_ACTIVATE, WM_SETSELECTION, and WM_SETFOCUS messages, but I'm not. Suggestions, anyone? (One thing I'm going to try is creating an invisible frame window, which might do whatever magical thing necessary to receive these messages.) -Tom Hundt
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads