Search found 3 matches
- Tue Jan 04, 2022 4:13 pm
- Forum: madKernel
- Topic: Resume UWP app in Windows 10
- Replies: 3
- Views: 30667
Re: Resume UWP app in Windows 10
Looks like I've been applying ShowWindow and/or SetForegroundWindow to the wrong window handle as this code works, whether the window is open, closed, or minimised. (I found a reference to 'ApplicationFrameWindow' in another Delphi forum) wnd := FindWindow('ApplicationFrameWindow','Calculator'); if ...
- Tue Jan 04, 2022 1:54 pm
- Forum: madKernel
- Topic: Resume UWP app in Windows 10
- Replies: 3
- Views: 30667
Re: Resume UWP app in Windows 10
Good question, I wish I knew. Unfortunately, Microsoft doesn't really offer any APIs to resume suspended UWP apps. If you have a valid window handle, I suppose you could try send a WM_SYSCOMMAND / SC_RESTORE message to it, but I've no idea if that works. Cheers - I'll try looking at that angle (I d...
- Tue Jan 04, 2022 11:27 am
- Forum: madKernel
- Topic: Resume UWP app in Windows 10
- Replies: 3
- Views: 30667
Resume UWP app in Windows 10
Our (Delphi 11) app allows the user to trigger the Windows calculator from the menu, and once open to restore it to the foreground using the same menu item, using the following (where wnd is the window handle of the app) ShowWindow(wnd, SW_SHOWNORMAL); SetForegroundWindow(wnd); However, if the calcu...