I am writing a windows mobile program where text is received over a Bluetooth link and displayed for the user. When the program is in the background, the window should be displayed for the user when new text is received. For this, I use "ShowWindow()" and "updateWindow()". The main program is just a loop that establishes a connection with the other device, and then displays incoming messages for the user. When the Bluetooth connection is lost, the next iteration of the loop begins and the application just waits for a new connection.
Well, everything works as it should (messages pop onto the screen for the user, even when the program is in the background) the first time through the loop (on the first BT connection). But if the connection is lost and then later re-established, the call to ShowWindow() will not display the window unless I manually select the application. Has anyone encountered this problem before? Any help would be greatly appreciated.