How to enable tooltips on CWnd or CStatic derived class that is created by a regular MFC dll
-
hi, i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked) so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move and DLL creates control on main app's dialog and manages control as main app needs my problem is: with this method , tooltips , TAB , CTRL + combinations do not work could you help me to solve this problem, Please thanks in anvance
-
hi, i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked) so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move and DLL creates control on main app's dialog and manages control as main app needs my problem is: with this method , tooltips , TAB , CTRL + combinations do not work could you help me to solve this problem, Please thanks in anvance
Do let me know the exact purpose for using static control. Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want. CButton already has Tab and tooltip enabled. Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control. See the following URL to show tool tip on static control: http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/
-
Do let me know the exact purpose for using static control. Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want. CButton already has Tab and tooltip enabled. Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control. See the following URL to show tool tip on static control: http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/
thank you for your reply but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this this is a relevant link and this was not work also http://support.microsoft.com/kb/187988/en-us[^] thanks