Click here to Skip to main content
15,902,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need some help Pin
ytod9-Jan-05 15:54
ytod9-Jan-05 15:54 
GeneralPointer to an object in a std::list Pin
Jordan C. Atlas9-Jan-05 13:25
Jordan C. Atlas9-Jan-05 13:25 
GeneralRe: Pointer to an object in a std::list Pin
PJ Arends9-Jan-05 13:35
professionalPJ Arends9-Jan-05 13:35 
GeneralRe: Pointer to an object in a std::list Pin
Jordan C. Atlas9-Jan-05 17:26
Jordan C. Atlas9-Jan-05 17:26 
QuestionAdding unicode character to char string ? Pin
Samsung9-Jan-05 12:53
Samsung9-Jan-05 12:53 
AnswerRe: Adding unicode character to char string ? Pin
Christian Graus9-Jan-05 13:37
protectorChristian Graus9-Jan-05 13:37 
AnswerRe: Adding unicode character to char string ? Pin
ThatsAlok9-Jan-05 17:25
ThatsAlok9-Jan-05 17:25 
GeneralToolbar - tool tips Pin
Tony Teveris9-Jan-05 12:26
Tony Teveris9-Jan-05 12:26 
The following code
BOOL CMainFrame::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult )
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
UINT nID = pNMHDR->idFrom;
if (pTTT->uFlags & TTF_IDISHWND)
{
// idFrom is actually the HWND of the tool
nID = ::GetDlgCtrlID((HWND)nID);
if(nID)
{
// pTTT->lpszText = MAKEINTRESOURCE(nID);
// pTTT->hinst = AfxGetResourceHandle();
// return(TRUE);
}
}
else
{
strcpy(pTTT->szText,"Ruby Red GSC-XXX\nRuby Red");
pTTT->lpszText = NULL;
pTTT->hinst = NULL;
return TRUE;
}
return(FALSE);
}

Gets executed when I have my cursor over one of my items in the toolbar but the tooltip does not get displayed at the toolbar button or on the status bar of the app. Why ?

I figured it out, I needed to add:

pTTT->lpszText = pTTT->szText;

then the tip displayed by the button but not the status bar of the app.



Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
GeneralRe: Toolbar - tool tips Pin
Rahim Rattani9-Jan-05 17:03
Rahim Rattani9-Jan-05 17:03 
GeneralA simple client to server Pin
Luzo9-Jan-05 9:44
Luzo9-Jan-05 9:44 
GeneralRe: A simple client to server Pin
ytod9-Jan-05 16:09
ytod9-Jan-05 16:09 
QuestionIs VC++ 5.0 code compatable with WinXP? Pin
9-Jan-05 8:28
suss9-Jan-05 8:28 
AnswerRe: Is VC++ 5.0 code compatable with WinXP? Pin
Ryan Binns9-Jan-05 17:23
Ryan Binns9-Jan-05 17:23 
Generalchanging language in UI dynamically Pin
feroz209-Jan-05 6:41
feroz209-Jan-05 6:41 
GeneralRe: changing language in UI dynamically Pin
sps-itsec469-Jan-05 11:12
sps-itsec469-Jan-05 11:12 
GeneralRe: changing language in UI dynamically Pin
Maximilien9-Jan-05 14:19
Maximilien9-Jan-05 14:19 
GeneralRe: changing language in UI dynamically Pin
toxcct9-Jan-05 22:27
toxcct9-Jan-05 22:27 
GeneralRe: changing language in UI dynamically Pin
sps-itsec469-Jan-05 22:58
sps-itsec469-Jan-05 22:58 
GeneralRe: changing language in UI dynamically Pin
Maximilien9-Jan-05 14:23
Maximilien9-Jan-05 14:23 
GeneralRe: changing language in UI dynamically Pin
toxcct9-Jan-05 22:32
toxcct9-Jan-05 22:32 
GeneralRe: changing language in UI dynamically Pin
Maximilien10-Jan-05 0:10
Maximilien10-Jan-05 0:10 
GeneralRe: changing language in UI dynamically Pin
toxcct10-Jan-05 0:16
toxcct10-Jan-05 0:16 
GeneralDrag&Drop problem: ListCtrl inside a Group Box Pin
sps-itsec469-Jan-05 6:23
sps-itsec469-Jan-05 6:23 
GeneralRe: Drag&Drop problem: ListCtrl inside a Group Box Pin
PJ Arends9-Jan-05 9:12
professionalPJ Arends9-Jan-05 9:12 
GeneralRe: Drag&Drop problem: ListCtrl inside a Group Box Pin
sps-itsec469-Jan-05 11:15
sps-itsec469-Jan-05 11:15 

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.