Click here to Skip to main content
15,915,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WNetConnectionDialog Pin
David Crow20-Jun-05 2:40
David Crow20-Jun-05 2:40 
GeneralRe: WNetConnectionDialog Pin
Still learning how to code20-Jun-05 7:44
Still learning how to code20-Jun-05 7:44 
GeneralRe: WNetConnectionDialog Pin
David Crow20-Jun-05 7:47
David Crow20-Jun-05 7:47 
GeneralRe: WNetConnectionDialog Pin
Still learning how to code20-Jun-05 20:24
Still learning how to code20-Jun-05 20:24 
GeneralRe: WNetConnectionDialog Pin
David Crow21-Jun-05 2:55
David Crow21-Jun-05 2:55 
GeneralRe: WNetConnectionDialog Pin
Still learning how to code21-Jun-05 6:53
Still learning how to code21-Jun-05 6:53 
QuestionHow to display tool tips... Pin
ugur_basak19-Jun-05 22:17
ugur_basak19-Jun-05 22:17 
AnswerRe: How to display tool tips... Pin
narendra_ b19-Jun-05 23:17
narendra_ b19-Jun-05 23:17 
i)declare CToolTipCtrl in ur class
like CToolTipCtrl m_ToolTipCtrl ;
ii) add the following code in constructor
TOOLINFO ti;
DWORD dwStyle = TTS_BALLOON;

m_ToolTipCtrl .Create(this, dwStyle);
m_ToolTipCtrl .FillInToolInfo(ti, this, 0);
ti.uFlags |= (TTF_TRACK |TTF_ABSOLUTE );
ti.lpszText = (LPTSTR)_T("Enter Valid Phone number");

m_ToolTipCtrl .SendMessage (TTM_ADDTOOL, 0,reinterpret_cast<lparam> (&ti));

iii) add the following code, where u want to show the tooltip

LPTSTR lpszMessage = _T("Enter Tooltip text here");
m_ToolTipCtrl.Activate(TRUE) ;
CToolInfo ti;
m_ToolTipCtrl.GetToolInfo(ti, this, 0);
ti.lpszText = lpszMessage;
m_ToolTipCtrl .SetToolInfo(&ti);

m_ToolTipCtrl .SendMessage (TTM_TRACKPOSITION, 0, MAKELPARAM(rect.right - 20, rect.CenterPoint().y));
m_ToolTipCtrl .SendMessage (TTM_TRACKACTIVATE, TRUE,reinterpret_cast<lparam>(&ti));

this code i got from some post
for more info follow this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/tooltip/usingtooltips.asp

naren


VC++ programmer
GeneralRe: How to display tool tips... Pin
ugur_basak20-Jun-05 3:54
ugur_basak20-Jun-05 3:54 
GeneralUsing Context Free Grammers Pin
fordge19-Jun-05 22:05
fordge19-Jun-05 22:05 
GeneralRe: Using Context Free Grammers Pin
Rage19-Jun-05 22:34
professionalRage19-Jun-05 22:34 
GeneralRe: Using Context Free Grammers Pin
Bob Stanneveld19-Jun-05 23:13
Bob Stanneveld19-Jun-05 23:13 
GeneralRe: Using Context Free Grammers Pin
John R. Shaw20-Jun-05 4:32
John R. Shaw20-Jun-05 4:32 
GeneralIs there anyway of looking at the code that initialises a DLL Pin
D_code_writer19-Jun-05 22:02
D_code_writer19-Jun-05 22:02 
GeneralRe: Is there anyway of looking at the code that initialises a DLL Pin
Rage19-Jun-05 22:07
professionalRage19-Jun-05 22:07 
GeneralRe: Is there anyway of looking at the code that initialises a DLL Pin
D_code_writer20-Jun-05 20:57
D_code_writer20-Jun-05 20:57 
QuestionHow to create disk image? Pin
jahfer19-Jun-05 21:10
jahfer19-Jun-05 21:10 
AnswerRe: How to create disk image? Pin
David Crow20-Jun-05 2:44
David Crow20-Jun-05 2:44 
GeneralRe: How to create disk image? Pin
Toby Opferman20-Jun-05 18:55
Toby Opferman20-Jun-05 18:55 
AnswerRe: How to create disk image? Pin
Alexander M.,20-Jun-05 3:27
Alexander M.,20-Jun-05 3:27 
AnswerRe: How to create disk image? Pin
John M. Drescher20-Jun-05 3:55
John M. Drescher20-Jun-05 3:55 
GeneralRe: How to create disk image? Pin
Bob Stanneveld20-Jun-05 20:48
Bob Stanneveld20-Jun-05 20:48 
GeneralRe: How to create disk image? Pin
John M. Drescher21-Jun-05 4:10
John M. Drescher21-Jun-05 4:10 
GeneralRe: How to create disk image? Pin
Bob Stanneveld21-Jun-05 20:31
Bob Stanneveld21-Jun-05 20:31 
GeneralUsing WTL in Win32 Pin
daydremer19-Jun-05 21:02
daydremer19-Jun-05 21:02 

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.