Re[4]: wxDialog/wxMiniFrame window shape (was Button in title/caption bar of a window? Is it possible?)

Vadim Zeitlin <[email protected]> Wed, 16 Jul 2025 19:37:29 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaHfjWQAKCRAG6kHeT2we
hsrjAJ9fWPaIxIDtlf2juQ2KUW4j77tYywCgpg1aQSBMFKPl34x6qdE8s4Xysqc=
=gGWm
-----END PGP SIGNATURE-----