Author: [Jongware][Jongware]
Date: Jan 4, 2008 13:46
For an application to display a simple list of data, I created an empty window
and added a listbox covering the entire client area as a child control. But this
doesn't behave as I'd expect: it does not get activated automatically if the
program is run, and if I force it to the foreground using SetForegroundWindow I
get strange side effects -- notably, whenever I toggle to another program and
back, it doesn't work anymore. I could work around that with handling
WM_ACTIVEAPP, but that seems a bit overreacting. In addition, when I quit the
program, the last active app doesn't get its focus back -- where for other
programs that works as usual.
I /think/ the list box control is as normal as you can get with just WS_CHILD
set, and I even threw in WS_TABSTOP and WS_GROUP to be sure (there is no other...
|