#include <dialog.h>
Inheritance diagram for MWidgets::Dialog:

Public Member Functions | |
| Dialog () | |
| Constructor.   | |
| virtual void | Create (int w, int h, string caption) | 
| Create widgets window.   | |
| int | DoModal (Widget *parent) | 
| Show dialog box and disable parent window.   | |
| void | EndDlg (int val) | 
| Close dialog box.   | |
| virtual WIDGET_TYPE | GetType () | 
| Returns class's identifier like WINDOW or BUTTON.   | |
Protected Member Functions | |
| virtual LRESULT | OnMessage (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) | 
| Subclassing for override wm_close.   | |
Protected Attributes | |
| int | m_iResult | 
| Value returned by DoModal, and initialize by EndDlg.   | |
| bool | m_bShow | 
| Value controls message loop in DoModal function.   | |
Definition at line 14 of file dialog.h.
| MWidgets::Dialog::Dialog | ( | ) | 
| void MWidgets::Dialog::Create | ( | int | w, | |
| int | h, | |||
| string | caption | |||
| ) |  [virtual] | 
        
Create widgets window.
| w | new widget's width. | |
| h | new widget's height. | |
| caption | new widget's caption. | 
Definition at line 24 of file dialog.cpp.
References MWidgets::Widget::Create(), m_bShow, and m_iResult.
| int MWidgets::Dialog::DoModal | ( | Widget * | parent | ) | 
Show dialog box and disable parent window.
Definition at line 43 of file dialog.cpp.
References MWidgets::Widget::GetHwnd(), MWidgets::Widget::Hide(), m_bShow, MWidgets::Widget::m_hWnd, m_iResult, and MWidgets::Widget::Show().
| void MWidgets::Dialog::EndDlg | ( | int | val | ) | 
Close dialog box.
| val | value returned by DoModal. | 
Definition at line 72 of file dialog.cpp.
| WIDGET_TYPE MWidgets::Dialog::GetType | ( | ) |  [virtual] | 
        
Returns class's identifier like WINDOW or BUTTON.
Implements MWidgets::Widget.
Definition at line 78 of file dialog.cpp.
References MWidgets::DIALOG.
| LRESULT MWidgets::Dialog::OnMessage | ( | HWND | hWnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |  [protected, virtual] | 
        
Subclassing for override wm_close.
Reimplemented from MWidgets::Widget.
Definition at line 31 of file dialog.cpp.
References m_bShow, m_iResult, and MWidgets::Widget::OnMessage().
bool MWidgets::Dialog::m_bShow [protected]           | 
        
int MWidgets::Dialog::m_iResult [protected]           | 
        
 1.4.7