moved combobox styles from defs.to to combobox.h; added wxTE/wxCB_FILENAME styles (MSW only for now); show them in the widgets sample and use for file/dir pickers text controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
// include <commctrl.h> "properly"
|
||||
#include "wx/msw/wrapcctl.h"
|
||||
#include "wx/msw/wrapshl.h"
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
#include "wx/tooltip.h"
|
||||
@@ -417,8 +418,14 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
// edit control, we must subclass it as well
|
||||
if ( !(style & wxCB_READONLY) )
|
||||
{
|
||||
gs_wndprocEdit = wxSetWindowProc((HWND)GetEditHWND(),
|
||||
wxComboEditWndProc);
|
||||
const HWND hwndEdit = (HWND)GetEditHWND();
|
||||
|
||||
gs_wndprocEdit = wxSetWindowProc(hwndEdit, wxComboEditWndProc);
|
||||
|
||||
if ( style & wxCB_FILENAME )
|
||||
{
|
||||
wxEnableFileNameAutoComplete(hwndEdit);
|
||||
}
|
||||
}
|
||||
|
||||
// and finally, show the control
|
||||
|
Reference in New Issue
Block a user