tooltips in controls in dialogs actually work now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-04-17 20:30:28 +00:00
parent 9a5ccab431
commit bd9d76cbe5
2 changed files with 13 additions and 9 deletions

View File

@@ -78,6 +78,10 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id,
long style, long style,
const wxString& name) const wxString& name)
{ {
#if wxUSE_TOOLTIPS
m_hwndToolTip = 0;
#endif
SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
SetName(name); SetName(name);

View File

@@ -176,7 +176,7 @@ WXHWND wxToolTip::GetToolTipCtrl()
"can't create tooltip control outside a frame or a dialog" ); "can't create tooltip control outside a frame or a dialog" );
HWND hwndTT = (HWND)(frame ? frame->GetToolTipCtrl() HWND hwndTT = (HWND)(frame ? frame->GetToolTipCtrl()
: dialog->GetToolTipCtrl()); : dialog->GetToolTipCtrl());
if ( !hwndTT ) if ( !hwndTT )
{ {
hwndTT = ::CreateWindow(TOOLTIPS_CLASS, hwndTT = ::CreateWindow(TOOLTIPS_CLASS,
@@ -184,7 +184,7 @@ WXHWND wxToolTip::GetToolTipCtrl()
TTS_ALWAYSTIP, TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
(HWND)frame->GetHWND(), (HMENU)NULL, (HWND)parent->GetHWND(), (HMENU)NULL,
wxGetInstance(), NULL); wxGetInstance(), NULL);
if ( hwndTT ) if ( hwndTT )