#include "wx/colordlg.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include <stdio.h>
#include "wx/colour.h"
#include "wx/gdicmn.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/wrapcdlg.h"
#include <stdlib.h>
#include <string.h>
CHOOSECOLOR *pCC = (CHOOSECOLOR *)lParam;
wxColourDialog *dialog = (wxColourDialog *)pCC->lCustData;
- ::SetWindowText(hwnd, dialog->GetTitle());
+ const wxString& title = dialog->GetTitle();
+ if ( !title.empty() )
+ ::SetWindowText(hwnd, title.wx_str());
wxPoint pos = dialog->GetPosition();
if ( pos != wxDefaultPosition )