]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/msgdlg.h
fixing compilo
[wxWidgets.git] / include / wx / msw / msgdlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
e5b50758 2// Name: wx/msw/msgdlg.h
2bda0e17
KB
3// Purpose: wxMessageDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
598ddd96 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_MSGBOXDLG_H_
13#define _WX_MSGBOXDLG_H_
2bda0e17 14
23e00c55 15class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogWithCustomLabels
2bda0e17 16{
2bda0e17 17public:
2afb9e16
VZ
18 wxMessageDialog(wxWindow *parent,
19 const wxString& message,
20 const wxString& caption = wxMessageBoxCaptionStr,
21 long style = wxOK|wxCENTRE,
22 const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
23e00c55 23 : wxMessageDialogWithCustomLabels(parent, message, caption, style)
2afb9e16 24 {
1d89da8a 25 m_hook = NULL;
2afb9e16
VZ
26 }
27
2afb9e16 28 virtual int ShowModal();
22f3361e 29
1d89da8a 30private:
23e00c55
VZ
31 // hook procedure used to adjust the message box beyond what the standard
32 // MessageBox() function can do for us
1d89da8a
VZ
33 static WXLRESULT wxCALLBACK HookFunction(int code, WXWPARAM, WXLPARAM);
34
23e00c55
VZ
35 // adjust the button labels
36 //
37 // this is called from HookFunction() and our HWND is valid at this moment
38 void AdjustButtonLabels();
39
40
1d89da8a
VZ
41 WXHANDLE m_hook; // HHOOK used to position the message box
42
2afb9e16 43 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
22f3361e 44 DECLARE_NO_COPY_CLASS(wxMessageDialog)
2bda0e17
KB
45};
46
47
2afb9e16 48#endif // _WX_MSGBOXDLG_H_