Base class SetTitle() implementation didnd't work for this class as it used the (invalid) HWND of not yet existing dialog, so add a hook procedure for the common font dialog, similar to the existing one for wxColourDialog, which allows us to set the dialog title when the dialog is really created. Closes https://github.com/wxWidgets/wxWidgets/pull/865 Closes #18177.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /////////////////////////////////////////////////////////////////////////////
 | |
| // Name:        wx/msw/fontdlg.h
 | |
| // Purpose:     wxFontDialog class
 | |
| // Author:      Julian Smart
 | |
| // Modified by:
 | |
| // Created:     01/02/97
 | |
| // Copyright:   (c) Julian Smart
 | |
| // Licence:     wxWindows licence
 | |
| /////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #ifndef _WX_MSW_FONTDLG_H_
 | |
| #define _WX_MSW_FONTDLG_H_
 | |
| 
 | |
| // ----------------------------------------------------------------------------
 | |
| // wxFontDialog
 | |
| // ----------------------------------------------------------------------------
 | |
| 
 | |
| class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
 | |
| {
 | |
| public:
 | |
|     wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
 | |
|     wxFontDialog(wxWindow *parent)
 | |
|         : wxFontDialogBase(parent) { Create(parent); }
 | |
|     wxFontDialog(wxWindow *parent, const wxFontData& data)
 | |
|         : wxFontDialogBase(parent, data) { Create(parent, data); }
 | |
| 
 | |
|     virtual int ShowModal() wxOVERRIDE;
 | |
|     virtual void SetTitle(const wxString& title) wxOVERRIDE;
 | |
|     virtual wxString GetTitle() const wxOVERRIDE;
 | |
| 
 | |
| protected:
 | |
|     wxString m_title;
 | |
| 
 | |
|     wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog);
 | |
| };
 | |
| 
 | |
| #endif
 | |
|     // _WX_MSW_FONTDLG_H_
 |