Hello good morning ,
I'm with a project right now and i would like to know how to change font of tool tip control ? because my project display in other language. the language is not English and need to alter back it to the same
any thoughts???
Hello good morning ,
I'm with a project right now and i would like to know how to change font of tool tip control ? because my project display in other language. the language is not English and need to alter back it to the same
any thoughts???
In order to create a ToolTip control, call CreateWindowEx and specify the TOOLTIPS_CLASS window class. This class is registered when the common control DLL is loaded. to confirm DLL is loaded, include the InitCommonControlsEx function in your application. so you have to explicitly define a ToolTip control as topmost. else , it might be covered by the parent window.take a look on this code
HWND hwndTip = CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL,
WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
hwndParent, NULL, hinstMyDll,
NULL);
SetWindowPos(hwndTip, HWND_TOPMOST,0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
Dude if you have retrieved this text from database, just configure this as the text for the tooltip. If it does not list out make correction, but you must look into encoding.
I just need to know what are you using right now.i think you have to use the tooltip text either in the resource files or database and configure it from there. can you just analyze this code
SetToolTip(controlName,textfromResourceFile)
Bookmarks