Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Socket problem and sending packets Pin
ThatsAlok1-Apr-06 18:14
ThatsAlok1-Apr-06 18:14 
GeneralRe: Socket problem and sending packets Pin
nahitan3-Apr-06 8:29
nahitan3-Apr-06 8:29 
QuestionBuffer Size and Other Parameters! Pin
student_eng31-Mar-06 8:34
student_eng31-Mar-06 8:34 
AnswerRe: Buffer Size and Other Parameters! Pin
David Crow31-Mar-06 9:16
David Crow31-Mar-06 9:16 
QuestionCToolTipCtrl in modeless dialog ??? Pin
madmax000131-Mar-06 7:51
madmax000131-Mar-06 7:51 
QuestionRe: CToolTipCtrl in modeless dialog ??? Pin
David Crow31-Mar-06 7:55
David Crow31-Mar-06 7:55 
AnswerRe: CToolTipCtrl in modeless dialog ??? Pin
madmax000131-Mar-06 9:58
madmax000131-Mar-06 9:58 
AnswerRe: CToolTipCtrl in modeless dialog ??? Pin
Hamid_RT31-Mar-06 8:43
Hamid_RT31-Mar-06 8:43 
Hi madmax0001,

maybe it is some helpful to you


////h File/////////////////
void SetToolTip(LPCTSTR lpszText);
CToolTipCtrl m_tooltip;
////h File/////////////////



BOOL CAnswerView::OnInitDialog()
{

m_tooltip.Create(this);
SetToolTip("Hello");
}

void CAnswerView::SetToolTip(LPCTSTR lpszText)
{

TOOLINFO ti;

ti.cbSize = sizeof(TOOLINFO);
ti.lpszText = (LPTSTR)lpszText;
ti.hinst = AfxGetInstanceHandle();
ti.hwnd = m_Button.m_hWnd;//GetDlgItem(IDC_BUTTON1)->m_hWnd;

ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ti.uId = (UINT) m_Button.m_hWnd;//GetDlgItem(IDC_BUTTON1)->m_hWnd;


m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti);
}

GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
madmax000131-Mar-06 9:59
madmax000131-Mar-06 9:59 
GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
madmax00016-Apr-06 6:36
madmax00016-Apr-06 6:36 
GeneralRe: CToolTipCtrl in modeless dialog ??? Pin
Albertino17-Apr-14 23:36
Albertino17-Apr-14 23:36 
AnswerRe: CToolTipCtrl in modeless dialog ??? Pin
madmax00016-Apr-06 6:42
madmax00016-Apr-06 6:42 
QuestionHelp with multi-sort Pin
Kurt _B31-Mar-06 6:13
Kurt _B31-Mar-06 6:13 
AnswerRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:06
FarPointer31-Mar-06 7:06 
GeneralRe: Help with multi-sort Pin
Kurt _B31-Mar-06 7:10
Kurt _B31-Mar-06 7:10 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:16
FarPointer31-Mar-06 7:16 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:39
David Crow31-Mar-06 7:39 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:14
David Crow31-Mar-06 7:14 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:19
FarPointer31-Mar-06 7:19 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:31
David Crow31-Mar-06 7:31 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:35
FarPointer31-Mar-06 7:35 
GeneralRe: Help with multi-sort Pin
Maximilien31-Mar-06 10:16
Maximilien31-Mar-06 10:16 
GeneralRe: Help with multi-sort Pin
Kurt _B31-Mar-06 7:23
Kurt _B31-Mar-06 7:23 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:38
David Crow31-Mar-06 7:38 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:43
FarPointer31-Mar-06 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.