Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhooks Pin
EliaGregorio18-Oct-02 8:36
EliaGregorio18-Oct-02 8:36 
GeneralRe: hooks Pin
alex.barylski18-Oct-02 8:50
alex.barylski18-Oct-02 8:50 
GeneralRe: hooks Pin
Nick Hodapp18-Oct-02 9:05
sitebuilderNick Hodapp18-Oct-02 9:05 
GeneralDeleting toolbar icon. Pin
WREY18-Oct-02 8:12
WREY18-Oct-02 8:12 
GeneralRe: Deleting toolbar icon. Pin
Shog918-Oct-02 8:15
sitebuilderShog918-Oct-02 8:15 
GeneralRe: Deleting toolbar icon. Pin
WREY18-Oct-02 13:16
WREY18-Oct-02 13:16 
GeneralMS Access Bulk Insert Pin
perlmunger18-Oct-02 8:01
perlmunger18-Oct-02 8:01 
GeneralCan't get tooltips in win32 API to work. Pin
jwarns1318-Oct-02 7:38
jwarns1318-Oct-02 7:38 
I am trying to get a tooltip to show up for an entire window, not just a control. I know I am creating the window correctly, so I think it must be the values I am putting into the Toolinfo structure. If any one has any insight to what might be causeing the AddTool call to be failing I would appreciate it!

Here is my exact code of how I am doing it:

HWND hwndTT; // handle to the ToolTip control
TOOLINFO ti;// struct specifying info about tool in ToolTip control
WCHAR wszTTtext[]= L"This is your ToolTip string.";

/* INITIALIZE MEMBERS OF THE TOOLINFO STRUCTURE */
ti.cbSize = sizeof(TOOLINFO);
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ti.hwnd = hwnd;
ti.hinst = _Module.GetModuleInstance();
ti.uId = (UINT_PTR)hwnd;
ti.lpszText = (LPTSTR)wszTTtext;
// ToolTip control will cover the whole window
ti.rect.left = rect.left;
ti.rect.top = rect.top;
ti.rect.right = rect.right;
ti.rect.bottom = rect.bottom;

if(!SendMessage(hwndTT,TTM_ACTIVATE,(WPARAM)TRUE,0)){
WriteLog(_T(" > Could not Activate TooltipControl\r\n"));
}

/* SEND AN ADDTOOL MESSAGE TO THE TOOLTIP CONTROL WINDOW */
if(!SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti)){
WriteLog(_T(" > Did not Create TooltipControl\r\n"));
}
GeneralPleas help me correct a strange bug. Pin
Redeemer-dk18-Oct-02 7:12
Redeemer-dk18-Oct-02 7:12 
GeneralRe: Pleas help me correct a strange bug. Pin
User 988518-Oct-02 8:46
User 988518-Oct-02 8:46 
GeneralRe: Pleas help me correct a strange bug. Pin
valikac18-Oct-02 10:16
valikac18-Oct-02 10:16 
GeneralSelect the all lines on a CListCtrl Pin
Walote18-Oct-02 7:11
Walote18-Oct-02 7:11 
GeneralRe: Select the all lines on a CListCtrl Pin
Shog918-Oct-02 8:25
sitebuilderShog918-Oct-02 8:25 
GeneralRe: Select the all lines on a CListCtrl Pin
Walote18-Oct-02 10:25
Walote18-Oct-02 10:25 
GeneralRe: Select the all lines on a CListCtrl Pin
Ravi Bhavnani18-Oct-02 10:48
professionalRavi Bhavnani18-Oct-02 10:48 
GeneralRe: Select the all lines on a CListCtrl Pin
Shog918-Oct-02 11:08
sitebuilderShog918-Oct-02 11:08 
QuestionCan we insert an icon into menu bar? Pin
Nguyen Huynh Hung18-Oct-02 5:57
Nguyen Huynh Hung18-Oct-02 5:57 
AnswerRe: Can we insert an icon into menu bar? Pin
alex.barylski18-Oct-02 8:54
alex.barylski18-Oct-02 8:54 
QuestionHow to change date format? Pin
Nguyen Huynh Hung18-Oct-02 5:44
Nguyen Huynh Hung18-Oct-02 5:44 
AnswerRe: How to change date format? Pin
Daniel Turini18-Oct-02 5:55
Daniel Turini18-Oct-02 5:55 
QuestionIs this standard? Pin
Jawache18-Oct-02 5:39
Jawache18-Oct-02 5:39 
AnswerRe: Is this standard? Pin
dabs18-Oct-02 5:52
dabs18-Oct-02 5:52 
AnswerRe: Is this standard? Pin
Pavel Klocek18-Oct-02 5:54
Pavel Klocek18-Oct-02 5:54 
GeneralRe: Is this standard? Pin
Jawache18-Oct-02 6:01
Jawache18-Oct-02 6:01 
AnswerRe: Is this standard? Pin
Jim A. Johnson18-Oct-02 6:39
Jim A. Johnson18-Oct-02 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.