Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Structure to Function Pin
oscar_r29-Jul-02 10:28
oscar_r29-Jul-02 10:28 
GeneralRe: Structure to Function Pin
Chris Losinger29-Jul-02 11:28
professionalChris Losinger29-Jul-02 11:28 
GeneralRe: Structure to Function Pin
Michael P Butler29-Jul-02 10:39
Michael P Butler29-Jul-02 10:39 
GeneralRe: Structure to Function Pin
Todd Smith29-Jul-02 11:45
Todd Smith29-Jul-02 11:45 
GeneralRe: Structure to Function Pin
Joaquín M López Muñoz29-Jul-02 11:55
Joaquín M López Muñoz29-Jul-02 11:55 
GeneralRe: Structure to Function Pin
oscar_r30-Jul-02 2:48
oscar_r30-Jul-02 2:48 
GeneralRe: Structure to Function Pin
perlmunger30-Jul-02 10:56
perlmunger30-Jul-02 10:56 
GeneralTooltips on a CToolbar Pin
Gilfrog29-Jul-02 10:10
Gilfrog29-Jul-02 10:10 
I am having trouble getting the tooltips to come up for on a toolbar. The toolbar is on a dialog. I create the toolbar like, with the CBRS_TOOLTIPS flag.

if(!m_wndToolBar.Create(this, WS_CHILD|WS_VISIBLE|CBRS_TOP|CBRS_TOOLTIPS) || !m_wndToolBar.LoadToolBar(IDR_TOOL_BAR))
ASSERT(FALSE);

I then handle the message

ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)

The OnToolTipNotify function looks like

BOOL CApply::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult )
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
UINT nID =pNMHDR->idFrom;
strcpy(pTTT->szText, "Click Here - Test");

return TRUE;
}

It comes to the OnToolTipNotify but when the tooltip pops up it gives me a bunch of boxes and junk with no text.

Can anybody see something wrong?

Thanks

Questionhow to access C..Doc var. from any class ? Pin
Fred D.29-Jul-02 9:54
Fred D.29-Jul-02 9:54 
AnswerRe: how to access C..Doc var. from any class ? Pin
Hydralisk29-Jul-02 16:47
Hydralisk29-Jul-02 16:47 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP29-Jul-02 19:10
JennyP29-Jul-02 19:10 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP29-Jul-02 19:33
JennyP29-Jul-02 19:33 
GeneralRe: how to access C..Doc var. from any class ? Pin
Fred D.30-Jul-02 5:01
Fred D.30-Jul-02 5:01 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 5:54
JennyP30-Jul-02 5:54 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 17:01
JennyP30-Jul-02 17:01 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 18:05
JennyP30-Jul-02 18:05 
GeneralRe: how to access C..Doc var. from any class ? Pin
Fred D.31-Jul-02 3:28
Fred D.31-Jul-02 3:28 
GeneralRe: how to access C..Doc var. from any class ? Pin
Hydralisk30-Jul-02 19:07
Hydralisk30-Jul-02 19:07 
GeneralCapture Maximize/Minimize Pin
Tony Fontenot29-Jul-02 9:50
Tony Fontenot29-Jul-02 9:50 
GeneralRe: Capture Maximize/Minimize Pin
Joaquín M López Muñoz29-Jul-02 9:58
Joaquín M López Muñoz29-Jul-02 9:58 
GeneralAlt + F4 Pin
Anonymous29-Jul-02 9:46
Anonymous29-Jul-02 9:46 
GeneralRe: Alt + F4 Pin
Anonymous29-Jul-02 10:04
Anonymous29-Jul-02 10:04 
GeneralRe: Alt + F4 Pin
Roman Nurik29-Jul-02 18:19
Roman Nurik29-Jul-02 18:19 
GeneralRe: Alt + F4 Pin
Alexandru Savescu29-Jul-02 20:38
Alexandru Savescu29-Jul-02 20:38 
GeneralVariable Passing again... Pin
NickOne29-Jul-02 9:38
NickOne29-Jul-02 9:38 

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.