2.2.6.7.4 Control::SetToolTip

Description

Syntax

BOOL SetToolTip( LPCSTR lpcszTxt )

Parameters

lpcszTxt

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>

#define IDC_BUTTON_OPEN  1005
void Control_SetToolTip_ex1(Dialog& MyDlg)
{
	Control cntl = MyDlg.GetItem(IDC_BUTTON_OPEN);
	if( cntl )
	{
		BOOL bRet = cntl.SetToolTip("Open File");
	}
}

Remark

See Also

Header to Include

Control.h