是否可以隐藏/删除最大化按钮在wxWidgets C + +? [英] Is it possible to hide/delete maximize button in wxWidgets C++?

查看:559
本文介绍了是否可以隐藏/删除最大化按钮在wxWidgets C + +?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wxWidgets中编写应用程序C + +版本(使用linux,但我想交叉编译赢)为我的朋友谁玩RPG游戏。简单的应用程序-8个按钮模仿骰子与不同的大小,一个静态文本显示随机化的结果。
我使窗口静态 - 它是不可能最大化它或...一般改变主窗口的大小。所以,我想让图标最大化隐藏或删除。我一直在寻找。但是,我还没有找到解决方案。我只用禁用按钮

I'm writing app in wxWidgets C++ version (using linux but I want to cross-compile to win) for my friend who plays RPG games.Quite simple app - 8 buttons imitating dices with diffrent sizes, and one static text showing the result of the randomizing. I've made the Window "static" - it is impossible to maximize it or ... generally change the size of the main window. So, I want to make the icon "maximize" hidden or deleted. I've been searching. However, I haven't found the solution. I've only disabled the button using

MainFrame::MainFrame(const wxString &title): wxFrame (
NULL, wxID_ANY, title, wxDefaultPosition, wxSize(290,180),
wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX))


b $ b

所以,它可以让图标隐藏或删除?

So, it it possible to make the icon "hidden" or "deleted" ?

推荐答案

你可以没有按钮(包括关闭按钮)像这样: -

It seems that you can either have none of the buttons (including the close button) like this:-

style = wxCAPTION;
MainFrame::MainFrame(const wxString &title): wxFrame (NULL, wxID_ANY, title, wxDefaultPosition, wxSize(290,180), style)

style = wxCAPTION | wxSYSTEM_MENU | wxMINIMIZE_BOX;
MainFrame::MainFrame(const wxString &title): wxFrame (NULL, wxID_ANY, title, wxDefaultPosition, wxSize(290,180), style)

这篇关于是否可以隐藏/删除最大化按钮在wxWidgets C + +?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆