White Border的wxWidgets wxBORDER_NONE和wxRESIZE_BORDER使白色區域
如何刪除這個白色區域?它破壞了我的GUI設計。
我想製作一個由windows生成的陰影和藍線。 所以我找到了一個選項,使藍線(wxRESIZE_BORDER),但它使像圖像的白色區域。
//MainFrame.h
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <wx/frame.h>
class MainFrame : public wxFrame
{
public:
MainFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(310, 390), long style = wxSUNKEN_BORDER|wxRESIZE_BORDER);
};
//MainFrame.cpp
#include "MainFrame.h"
MainFrame::MainFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(parent, id, title, pos, size, style)
{
this->Centre(wxBOTH);
}
//Main.h
#pragma once
#include <wx/wx.h>
class App : public wxApp
{
public:
virtual bool OnInit();
};
//Main.cpp
#include "Main.h"
#include "MainFrame.h"
IMPLEMENT_APP(App)
bool App::OnInit()
{
MainFrame *frame = new MainFrame(NULL);
frame->Show(true);
return true;
}
你想要圍繞它的藍線? – Lehue
提供[MCVE](http://stackoverflow.com/help/mcve)並指定庫的版本。 –
@SangWanJeon,你可以發佈你的代碼嗎?你正在試試這個版本的Windows? – Igor