Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: win32 DLL programming Pin
Laxman Auti10-Apr-06 1:28
Laxman Auti10-Apr-06 1:28 
QuestionTool tip never comes after time out Pin
amitgpatil@gmail.com10-Apr-06 1:11
amitgpatil@gmail.com10-Apr-06 1:11 
AnswerRe: Tool tip never comes after time out Pin
Ganesh_T10-Apr-06 1:28
Ganesh_T10-Apr-06 1:28 
AnswerRe: Tool tip never comes after time out Pin
Laxman Auti10-Apr-06 1:40
Laxman Auti10-Apr-06 1:40 
GeneralRe: Tool tip never comes after time out Pin
amitgpatil@gmail.com10-Apr-06 23:12
amitgpatil@gmail.com10-Apr-06 23:12 
GeneralRe: Tool tip never comes after time out Pin
amitgpatil@gmail.com11-Apr-06 0:03
amitgpatil@gmail.com11-Apr-06 0:03 
QuestionRe: Tool tip never comes after time out Pin
amitgpatil@gmail.com11-Apr-06 0:05
amitgpatil@gmail.com11-Apr-06 0:05 
GeneralRe: Tool tip never comes after time out Pin
amitgpatil@gmail.com11-Apr-06 0:44
amitgpatil@gmail.com11-Apr-06 0:44 
Hi all,
I am sending you the code snippet i have written.
Hope you will get better idea with this.

Given below are the steps for enabling the tool tip for the CBitmapButton
1. The class CTipBitmapButton is derived from CButton. This has teh owner's draw property set to TRUE.
2. An object of CToolTipCtrl m_ToolTipCtrl is created.
3. m_ToolTipCtrl is initialised in the constructor
4. The tool tip is initialised by using following code:
m_ToolTipCtrl = new CToolTipCtrl;
m_ToolTipCtrl->Create(this);
m_ToolTipCtrl->Activate(TRUE);
m_ToolTipCtrl->SetFont(GetFont(), FALSE);
5. New function DisplayToolTip is called in the DrawItem function of the class CTipBitmapButton
6. The function DisplayToolTip has the following code
a. Delete the tool tip if it exists
b. Set the tool tip using SetToolTipText function
c. Set the delay time to TTDT-INITIAL
7. The function SetToolTipText has the following code
a. Initialise the tool tip
b. If the tooltip tool count is 0, then m_ToolTipCtrl->AddTool(this,
rect, 1)
c. m_ToolTipCtrl->UpdateTipText(tooltext,this,1)
d. m_ToolTipCtrl->Activate(TRUE);
8. In PreTranslateMessage
m_ToolTipCtrl->RelayEvent(pMsg);


With this code, the tool tip does not come after the time out. Please suggest.




amit
AnswerRe: Tool tip never comes after time out Pin
James R. Twine10-Apr-06 2:43
James R. Twine10-Apr-06 2:43 
AnswerRe: Tool tip never comes after time out Pin
Hamid_RT10-Apr-06 3:46
Hamid_RT10-Apr-06 3:46 
Questionmonitoring registry Pin
kiranin10-Apr-06 0:33
kiranin10-Apr-06 0:33 
AnswerRe: monitoring registry Pin
Naveen10-Apr-06 0:36
Naveen10-Apr-06 0:36 
AnswerRe: monitoring registry Pin
Ganesh_T10-Apr-06 0:39
Ganesh_T10-Apr-06 0:39 
AnswerRe: monitoring registry Pin
David Crow10-Apr-06 2:29
David Crow10-Apr-06 2:29 
GeneralRe: monitoring registry Pin
kiranin13-Apr-06 0:19
kiranin13-Apr-06 0:19 
GeneralRe: monitoring registry Pin
David Crow13-Apr-06 2:27
David Crow13-Apr-06 2:27 
QuestionRe: howto insert a control inside of a groupbox Pin
David Crow10-Apr-06 2:30
David Crow10-Apr-06 2:30 
Questionhow come this happen? thank you Pin
ewighell10-Apr-06 0:31
ewighell10-Apr-06 0:31 
AnswerRe: how come this happen? thank you Pin
Stephen Hewitt10-Apr-06 13:44
Stephen Hewitt10-Apr-06 13:44 
Questionhow come this happen? thank you very much Pin
ewighell10-Apr-06 0:25
ewighell10-Apr-06 0:25 
AnswerRe: how come this happen? thank you very much Pin
Naveen10-Apr-06 0:33
Naveen10-Apr-06 0:33 
GeneralRe: how come this happen? thank you very much Pin
ewighell10-Apr-06 1:08
ewighell10-Apr-06 1:08 
GeneralRe: how come this happen? thank you very much Pin
Naveen10-Apr-06 1:22
Naveen10-Apr-06 1:22 
AnswerRe: how come this happen? thank you very much Pin
Nibu babu thomas10-Apr-06 18:12
Nibu babu thomas10-Apr-06 18:12 
QuestionBackup Utility Pin
aaaan10-Apr-06 0:16
aaaan10-Apr-06 0:16 

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.