| 902 | protected: |
| 903 | |
| 904 | void InitializeTooltips(void) |
| 905 | { |
| 906 | ATLASSERT(!m_tooltip.IsWindow()); |
| 907 | if(!m_tooltip.IsWindow()) |
| 908 | { |
| 909 | // Be sure InitCommonControlsEx is called before this, |
| 910 | // with one of the flags that includes the tooltip control |
| 911 | m_tooltip.Create(m_hWnd, NULL, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP /* | TTS_BALLOON */, WS_EX_TOOLWINDOW); |
| 912 | if(m_tooltip.IsWindow()) |
| 913 | { |
| 914 | m_tooltip.SetWindowPos(HWND_TOPMOST, 0, 0, 0, 0, |
| 915 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); |
| 916 | |
| 917 | m_tooltip.SetDelayTime(TTDT_INITIAL, ::GetDoubleClickTime()); |
| 918 | m_tooltip.SetDelayTime(TTDT_AUTOPOP, ::GetDoubleClickTime() * 20); |
| 919 | m_tooltip.SetDelayTime(TTDT_RESHOW, ::GetDoubleClickTime() / 5); |
| 920 | } |
| 921 | } |
| 922 | } |
| 923 | |
| 924 | void ActivateTooltips(BOOL bActivate = TRUE) |
| 925 | { |