|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2018 [email protected] ! 4: // ! 5: ! 6: #pragma once ! 7: ! 8: // ! 9: // サブウィンドウ ! 10: // ! 11: // メインウィンドウのメニューから表示されて、表示されてる間チェック状態を ! 12: // 維持するタイプのウィンドウ。クローズ処理が共通に必要なだけで、中身に ! 13: // ついては関与していない。 ! 14: ! 15: class WXSubWindow : public wxFrame ! 16: { ! 17: typedef wxFrame inherited; ! 18: public: ! 19: static const int DEFAULT_STYLE = ! 20: (wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT) ! 21: & ~wxMAXIMIZE_BOX ! 22: & ~wxRESIZE_BORDER; ! 23: ! 24: public: ! 25: WXSubWindow(wxWindow *parent, wxWindowID id, const wxString& name, ! 26: int style); ! 27: WXSubWindow(wxWindow *parent, wxWindowID id, const wxString& name); ! 28: virtual ~WXSubWindow(); ! 29: ! 30: // フォントサイズ変更 (継承クラスによる) ! 31: virtual void SetFontSize(fontsize_t fontsize) { } ! 32: ! 33: private: ! 34: void OnClose(wxCloseEvent& event); ! 35: ! 36: wxDECLARE_EVENT_TABLE(); ! 37: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.