Re: Re[4]: wxDialog/wxMiniFrame window shape (was Button in title/caption bar of a window? Is it possible?)
Tony Kennedy <[email protected]> Thu, 17 Jul 2025 02:32:25 -0700 (PDT)
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Not quite, I want a menu bar within my popup window. I tried adding a menubar, but it appears in the titlebar area (which is not what I want). I can do this with a toolbar and buttons/static text and detecting the onclick events. That way it appears below the virtual title bar. Thanks again for the advice. Tony. PS. I know the Mac menu is supposed to appear at the top of the screen, but I've got users that don't notice the menu changing for popup windows (so had to put a prominent menu button so they could see that something could be done). On Wednesday, 16 July 2025 at 18:37:35 UTC+1 Vadim Zeitlin wrote: > On Tue, 15 Jul 2025 10:59:09 -0700 (PDT) Tony Kennedy wrote: > > TK> Related to this, I cannot find a way to add a menu to this window. Is > there > TK> any way to do this? > > Do you mean the system menu or a custom one? Both are possible, for the > former one you can get its HMENU from Windows using ::GetSystemMenu() and > there is wxTopLevelWindow::MSWGetSystemMenu() which returns it to you as a > wxMenu. You may also want to handle WM_NCHITTEST to return HTSYSMENU for > the area for which you show the system menu. > > Regards, > VZ > > -- > TT-Solutions: wxWidgets consultancy and technical support > https://www.tt-solutions.com/ > -- 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 visit https://groups.google.com/d/msgid/wx-users/a1ae1c47-4522-4d35-94dc-abe1dd6284d7n%40googlegroups.com.