by edge » Oct 19, 2009 @ 8:35am
Hi,
Unfortunately, I can't say why the parent window doesn't gain focus when the child window is removed, perhaps Windows only allow childs to obtain focus in your situation? Maybe changing the order of calling SetFocus and DestroyWindow may help?
To prevent minimizing your application, set config->focusminimize to false in OnFrameworkConfig.
The landscape/textbox issue might become a problem. In certain cases, you can't prevent the orientation from changing (when the user slides out his keyboard for example). This will make the EDGELIB application run in landscape, while the texbox changes to portrait. You can force the orientation with ChangeDisplaySettingsEx and DM_DISPLAYORIENTATION, but I think it won't solve the issue mentioned above. The best way to handle this is to support multiple orientations and set the config->orientation option to DOR_AUTO.