Search found 3 matches

by giociampa
Tue Jan 04, 2022 4:13 pm
Forum: madKernel
Topic: Resume UWP app in Windows 10
Replies: 3
Views: 1710

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 ...
by giociampa
Tue Jan 04, 2022 1:54 pm
Forum: madKernel
Topic: Resume UWP app in Windows 10
Replies: 3
Views: 1710

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...
by giociampa
Tue Jan 04, 2022 11:27 am
Forum: madKernel
Topic: Resume UWP app in Windows 10
Replies: 3
Views: 1710

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...