Re: Fitting persistent window to screen when screen size changes
Kenneth Porter <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I think I found the right Windows event to intercept. I don't see the symbols in the wx source so it looks like I'll need to roll my own support. Is there anything like this on Mac or Linux? So I can model my support to be extended if and when I port there. https://learn.microsoft.com/en-us/windows/win32/termserv/wm-wtssession-change Note that one must register an HWND to receive these notifications: https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsregistersessionnotification I figure it makes sense to create a mix-in class for wxWindow that handles the registration in its ctor/dtor, similar to the design for the persistence classes. -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/2f4f0de0-f69e-4000-876e-7f77ff01882d%40sewingwitch.com.