panel.h

Go to the documentation of this file.
00001 
00007 /*
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with this library; if not, write to the Free Software
00020     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021 
00022     Copyright (C) 2005 Robin McNeill
00023 */
00024 
00025 #ifndef OMGUI_WIN32_PANEL_H
00026 #define OMGUI_WIN32_PANEL_H
00027 
00028 #include <omgui/win32/widget.h>
00029 #include <omgui/common/panel.h>
00030 #include <omgui/panel.h>
00031 
00032 namespace omgui {
00033     namespace win32 {
00034         class Notebook;
00035 
00036 class Panel : public virtual omgui::win32::Widget, public virtual omgui::common::Panel
00037 {
00038     //friend LRESULT CALLBACK panel_wndproc(HWND hwnd, UINT msg, WPARAM w_param, LPARAM l_param);
00039 
00040 public:
00041     Panel(omgui::Panel *panel = 0);
00042     ~Panel();
00043 
00044     void create(const omgui::initializer::PanelData &params);
00045 
00046     int process_message(HWND hwnd, UINT msg, WPARAM w_param, LPARAM l_param);
00047 
00048     void show(bool show, bool focus);
00049 
00053     void begin_defer_window_pos();
00054 
00058     void defer_window_pos(HWND hwnd, int x, int y, int w, int h, int flags);
00059 
00063     void end_defer_window_pos();
00064 
00068     HDWP get_hdwp();
00069 
00078     omgui::win32::Notebook *inside_notebook() const;
00079 
00080 private:
00082     HDWP m_hdwp;
00083     HTHEME m_tab_theme_data;
00084 };
00085 
00086     } // win32
00087 } // omgui
00088 
00089 #endif // OMGUI_WIN32_PANEL_H

doxygen SourceForge.net Logo