ToolTip not working
-
Hi All, I have a class derived from CFormView. I have to show ToolTip for some buttons for the view drived from CFormView. I have done the below steps but, the tool tip is not showing... Say m_ToolTip is an object for CToolTipCtrl, In OnInitialUpdate()
m_ToolTip.Create(this);
m_ToolTip.Activate(TRUE);
CRECT rect(1, 1, 1, 1);
m_ToolTip.AddTool(this, "My Tool Tip", &rect, BTN_ID);In OnSize()
m_ToolTip.SetToolRect(this, BTN_ID, &newRect);
In PreTranslateMessage()
if (pMSg->Message == /*Mouse Messages*/)
m_ToolTip.RelayEvent(pMSG);Is there any thing to do more.. or i'm wrong in some where...
Do your Duty and Don't expect the Result
-
Hi All, I have a class derived from CFormView. I have to show ToolTip for some buttons for the view drived from CFormView. I have done the below steps but, the tool tip is not showing... Say m_ToolTip is an object for CToolTipCtrl, In OnInitialUpdate()
m_ToolTip.Create(this);
m_ToolTip.Activate(TRUE);
CRECT rect(1, 1, 1, 1);
m_ToolTip.AddTool(this, "My Tool Tip", &rect, BTN_ID);In OnSize()
m_ToolTip.SetToolRect(this, BTN_ID, &newRect);
In PreTranslateMessage()
if (pMSg->Message == /*Mouse Messages*/)
m_ToolTip.RelayEvent(pMSG);Is there any thing to do more.. or i'm wrong in some where...
Do your Duty and Don't expect the Result