10Tec Company
Latest articles
-
ListBoxHScroll class
by 10Tec CompanyAdding the horizontal scroll bar to a list box dynamically taking into account its font (using the IFont interface) and the vertical scroll bar visibility (by analyzing the WS_VSCROLL flag of the listbox styles)
-
Adding real Win32 tooltips for windowless controls
by 10Tec CompanyThe problem with Win32 tooltips is that you can attach it only to a control that provides the hwnd property returning the Win32 handle of the control. The following trick allows you to create real Windows tooltips for VB intrinsic controls which do not have this property.
-
Adding multiline balloon tooltips to ListView item
by 10Tec CompanyTo create tooltip for list-view items, the code checks the item under the mouse pointer in the MouseMove event of the control. It uses for this purpose the LVM_HITTEST message that returns the index of the item at the specified position. The message is sent using the SendMessage API function. The lParam parameter of the function contains the reference to the LVHITTESTINFO structure; you must fill in the pt field of this structure with the coordinates of the mouse pointer before you invoke SendMe