|
-
February 22nd, 2000, 12:21 PM
#1
ToolTips
I need to create ToolTips in DialogBox
My Dialog box contains:
1)PushButtons
2)CheckBoxes
3)ComboBoxes
I've done such thing:
1)
BOOL CMyDialogBox::OnInitDialog()
{
......
......
EnableToolTips(true)
......
}
2)
BEGIN_MESSAGE_MAP (CMyDialog, CDialog)
.....
.....
ON_NOTIFY_EX(TTN_NEEDTEXT,0,OnTTip)
END_MESSAGE_MAP()
3)
BOOL CMyDialog::OnTT(UINTidFrom,NMHDR*hdr,LRESULT *ResultNotUsed)
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)hdr;
UINT nID = pTTT->hdr.idFrom;
pTTT -> lpszText = "TEST";
return(true);
}
It works for PUSH BUTTONS ONLY
But it dosen't work for comboboxes,lables and checkboxes.
Please help me.
Thank you.
Alex
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|