Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set fontsize?? Pin
jhwurmbach6-Sep-07 0:58
jhwurmbach6-Sep-07 0:58 
QuestionRe: How to set fontsize?? Pin
Hamid_RT6-Sep-07 7:52
Hamid_RT6-Sep-07 7:52 
AnswerRe: How to set fontsize?? Pin
Chris Losinger6-Sep-07 10:36
professionalChris Losinger6-Sep-07 10:36 
QuestionCommand ID Pin
baerten6-Sep-07 0:09
baerten6-Sep-07 0:09 
AnswerRe: Command ID Pin
Nishad S6-Sep-07 1:22
Nishad S6-Sep-07 1:22 
AnswerRe: Command ID Pin
Cedric Moonen6-Sep-07 1:36
Cedric Moonen6-Sep-07 1:36 
GeneralRe: Command ID Pin
baerten6-Sep-07 4:40
baerten6-Sep-07 4:40 
QuestionHow to put the Tool tip On Button. [modified] Pin
GauranG Shah5-Sep-07 23:53
GauranG Shah5-Sep-07 23:53 
Can Anybody tell me how tp Put the tool tip on Button

I am Using Win32 Application.

I find some thing from MSDN Regarding this. I am using Followind code but it gives error.
It is NotGetting the Handle of ToolTipWnd;
ToolTipWnd = CreateWindow(TOOLTIPS_CLASS,NULL, WS_POPUP, 0,0,0,0, hWndDlg, NULL,hInst, 0);<br />
<br />
				if ( ToolTipWnd == NULL )<br />
				 {<br />
					 DWORD Error;<br />
					 Error = GetLastError();<br />
					MessageBox(NULL,L"Error",L"",0);<br />
				}<br />
<br />
					SendMessage(ToolTipWnd, TTM_ACTIVATE, TRUE, 0); // Send this message to Activate ToolTips for the window<br />
						// Pass a FALSE when you wish to deactivate the tool tip.<br />
<br />
						//To assign a tool tip to a control do the following:<br />
						TOOLINFO toolinfo; // Tool Tip Info structure<br />
<br />
						memset(&toolinfo, 0, sizeof(TOOLINFO));<br />
<br />
						toolinfo.cbSize = sizeof(TOOLINFO);<br />
						toolinfo.hwnd = hWndDlg;<br />
						toolinfo.uFlags = TTF_SUBCLASS | TTF_IDISHWND;<br />
						toolinfo.uId = IDC_BUTTON1;/*ID_OF_CONTROL;*/<br />
						toolinfo.hinst = NULL;<br />
						toolinfo.lpszText =L"Hi ,,,,,,,,,,"; // Text you wish displayed when the mouse is over the control<br />
                         DWORD error;<br />
						if(!SendMessage ( hWndDlg, TTM_ADDTOOL, 0, (LPARAM)&toolinfo ))<br />
						{<br />
							error = GetLastError();<br />
							MessageBox(NULL,L"Error",L"",0);<br />
						}



-- modified at 7:36 Thursday 6th September, 2007
AnswerRe: How to put the Tool tip On Button. Pin
Nishad S6-Sep-07 1:30
Nishad S6-Sep-07 1:30 
GeneralRe: How to put the Tool tip On Button. Pin
GauranG Shah6-Sep-07 1:55
GauranG Shah6-Sep-07 1:55 
GeneralRe: How to put the Tool tip On Button. Pin
Nishad S6-Sep-07 2:05
Nishad S6-Sep-07 2:05 
GeneralRe: How to put the Tool tip On Button. Pin
GauranG Shah6-Sep-07 3:47
GauranG Shah6-Sep-07 3:47 
QuestionWhat does this do ?? Pin
Programm3r5-Sep-07 23:44
Programm3r5-Sep-07 23:44 
AnswerRe: What does this do ?? Pin
Cedric Moonen5-Sep-07 23:50
Cedric Moonen5-Sep-07 23:50 
GeneralRe: What does this do ?? Pin
Programm3r5-Sep-07 23:51
Programm3r5-Sep-07 23:51 
Questionsleep function Pin
p_5-Sep-07 23:38
p_5-Sep-07 23:38 
AnswerRe: sleep function Pin
Cedric Moonen5-Sep-07 23:43
Cedric Moonen5-Sep-07 23:43 
GeneralRe: sleep function Pin
p_5-Sep-07 23:53
p_5-Sep-07 23:53 
JokeRe: sleep function Pin
BadKarma6-Sep-07 2:19
BadKarma6-Sep-07 2:19 
QuestionRead bits from a binary file. Pin
CodingLover5-Sep-07 23:27
CodingLover5-Sep-07 23:27 
AnswerRe: Read bits from a binary file. Pin
Programm3r5-Sep-07 23:48
Programm3r5-Sep-07 23:48 
GeneralRe: Read bits from a binary file. Pin
CodingLover5-Sep-07 23:54
CodingLover5-Sep-07 23:54 
QuestionHow to check whether cts pin is on or off using vc++ Pin
yaminisridaran5-Sep-07 23:13
yaminisridaran5-Sep-07 23:13 
AnswerRe: How to check whether cts pin is on or off using vc++ Pin
Cedric Moonen5-Sep-07 23:20
Cedric Moonen5-Sep-07 23:20 
GeneralRe: How to check whether cts pin is on or off using vc++ Pin
yaminisridaran5-Sep-07 23:25
yaminisridaran5-Sep-07 23:25 

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.