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 (&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(&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
narendra_ b
Posts
-
How to display tool tips... -
Array Problemi am not clear abt ur requirement. try this #include #include const int size = 10; double A[size] = {0},B[size] = {0}, C[size],c,d; double PI = 3.141592653589793238462643383279502884197; double rah(double *C) { int i = C-::C ; A[i] = sqrt(10*i); B[i] = 2*PI*i; ::C[i] = A[i]*B[i]; return ::C[i] ; } double test()//how do i write this correctly? { d = PI * rah(&C[5]); return d ; } int main(int argc, char* argv[]) { printf("Hello World!\n %f", test()); return 0; } naren VC++ programmer
-
IMPLEMENT_DYNAMIC Erroris it linking successfully without DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC naren VC++ programmer
-
IMPLEMENT_DYNAMIC Errortry by setting the correct lib paths. Is it linking successfully if u omit the DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC?? naren VC++ programmer
-
IMPLEMENT_DYNAMIC Errorcheck with the definition of IMPLEMENT_DYNAMIC. ultimately it will call the CRuntimeClass(base_class). Thats why u need to implement dynamic creattion inevery class in up heirarchy naren VC++ programmer
-
Can Visual C++ .Net genarate SSE codetry this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/vcrefstreamingsimdextensions.asp naren VC++ programmer
-
Can Visual C++ .Net genarate SSE codei think based on compilation flags like /arch:SSE, /arch:SSE2, compiler will generate the optimised code naren VC++ programmer
-
IMPLEMENT_DYNAMIC Erroradd DECLARE_DYNAMIC in base class also. In ur code add DECLARE_DYNAMIC(COptionTree) in class COptionTree, and add IMPLEMENT_DYNAMIC(COptionTree,CWnd)in the cpp file Naren VC++ programmer
-
Modifying MFCMFC is well tested code, and to the most extent reliable( ignore some of the bugs, because everyone ll do some mistakes). obviously MS encourages you to add extra functionality to the MFC classes by deriving the classes and overriding the classes. It provides the only basic framework. With the standard classes that it provides, its almost impossile to create the look and feel application in the crazy GUI world VC++ programmer
-
C++ with ms.access databasego through the ADO library. It is COM component implemented some easy to use interfaces. If u dont know how to use the com components, first learn that. becasue, most of the library is coming with the com technology. VC++ programmer
-
Bitmap inserted to dialogU got the solution in MSDN forum. right??:-D VC++ programmer