continue;
}
- wxASSERT_MSG( dialog || frame, "logic error" );
+ wxASSERT_MSG( dialog || frame, _T("logic error") );
WXHWND hwndTT = frame ? frame->GetToolTipCtrl()
: dialog->GetToolTipCtrl();
}
wxCHECK_MSG( frame || dialog, 0,
- "can't create tooltip control outside a frame or a dialog" );
+ _T("can't create tooltip control outside a frame or a dialog") );
HWND hwndTT = (HWND)(frame ? frame->GetToolTipCtrl()
- : dialog->GetToolTipCtrl());
+ : dialog->GetToolTipCtrl());
if ( !hwndTT )
{
hwndTT = ::CreateWindow(TOOLTIPS_CLASS,
TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
- (HWND)frame->GetHWND(), (HMENU)NULL,
+ (HWND)parent->GetHWND(), (HMENU)NULL,
wxGetInstance(), NULL);
if ( hwndTT )
{
// update it immediately
wxToolInfo ti(m_window);
- ti.lpszText = (char *)m_text.c_str();
+ ti.lpszText = (wxChar *)m_text.c_str();
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, 0, &ti);
}