Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need Help With CHtmlView !! Pin
Stephane Rodriguez.2-Sep-02 2:14
Stephane Rodriguez.2-Sep-02 2:14 
GeneralRe: Need Help With CHtmlView !! Pin
onkarp3-Sep-02 1:11
onkarp3-Sep-02 1:11 
GeneralCComboBox Edit Mode Pin
Jawache2-Sep-02 1:11
Jawache2-Sep-02 1:11 
GeneralRe: CComboBox Edit Mode Pin
Jon Hulatt2-Sep-02 1:22
Jon Hulatt2-Sep-02 1:22 
GeneralRe: CComboBox Edit Mode Pin
Jawache2-Sep-02 1:39
Jawache2-Sep-02 1:39 
QuestionHow to add tooltip to picture control Pin
Prateeti2-Sep-02 1:10
Prateeti2-Sep-02 1:10 
AnswerRe: How to add tooltip to picture control Pin
Joaquín M López Muñoz2-Sep-02 2:28
Joaquín M López Muñoz2-Sep-02 2:28 
AnswerRe: How to add tooltip to picture control Pin
Roger Allen2-Sep-02 2:29
Roger Allen2-Sep-02 2:29 
Set the notify style of the picture control. You can then add a tool tip for the control by doing th following:

call EnableToolTips()

in messge map

ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)

in header file

afx_msg BOOL OnToolTipNotify(UINT id, NMHDR * pNMHDR, LRESULT * pResult);

in .cpp file

BOOL CSamplesFloat::OnToolTipNotify(UINT /*id*/, NMHDR *pNMHDR, LRESULT * /*pResult*/)
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;

if (pTTT->uFlags & TTF_IDISHWND)
{
// idFrom is actually the HWND of the tool
UINT nID = ::GetDlgCtrlID((HWND)pNMHDR->idFrom);

pTTT->lpszText = "";

switch (nID)
{
case IDC_PICTURE_CONTROL :
pTTT->lpszText = "My picture control" ;
break ;
case IDC_METHODDETAILS :
pTTT->lpszText = "The selected methods details" ;
break ;
}

if (pTTT->lpszText[0] != '\0')
{
pTTT->hinst = AfxGetResourceHandle();
return TRUE ;
}
}
return FALSE ;
}

In fact this can add a tolltip for any control in a dialog/view/floating window etc that you do this for.



Roger Allen
Sonork 100.10016

I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
QuestionHow to prevent a child window from move from its original position. Pin
daybreak2-Sep-02 0:30
daybreak2-Sep-02 0:30 
AnswerRe: How to prevent a child window from move from its original position. Pin
.dan.g.2-Sep-02 14:41
professional.dan.g.2-Sep-02 14:41 
GeneralRe: How to prevent a child window from move from its original position. Pin
daybreak2-Sep-02 23:44
daybreak2-Sep-02 23:44 
GeneralAdding menu bar to a Dialog Pin
Anonymous1-Sep-02 23:48
Anonymous1-Sep-02 23:48 
GeneralRe: Adding menu bar to a Dialog Pin
Tomasz Sowinski1-Sep-02 23:53
Tomasz Sowinski1-Sep-02 23:53 
GeneralRe: Adding menu bar to a Dialog Pin
.dan.g.2-Sep-02 15:19
professional.dan.g.2-Sep-02 15:19 
GeneralDetecting Mouse movement Pin
Shibu1-Sep-02 23:31
Shibu1-Sep-02 23:31 
GeneralRe: Detecting Mouse movement Pin
Joaquín M López Muñoz1-Sep-02 23:39
Joaquín M López Muñoz1-Sep-02 23:39 
GeneralRe: Detecting Mouse movement Pin
Hostalet Wandosell1-Sep-02 23:55
Hostalet Wandosell1-Sep-02 23:55 
QuestionInternetOpen() max threads? Pin
mmlxl1-Sep-02 23:29
mmlxl1-Sep-02 23:29 
AnswerRe: InternetOpen() max threads? Pin
Joaquín M López Muñoz1-Sep-02 23:46
Joaquín M López Muñoz1-Sep-02 23:46 
GeneralToolbar resize Pin
Hostalet Wandosell1-Sep-02 23:11
Hostalet Wandosell1-Sep-02 23:11 
GeneralRe: Toolbar resize Pin
.dan.g.2-Sep-02 14:45
professional.dan.g.2-Sep-02 14:45 
GeneralRe: Toolbar resize Pin
Hostalet Wandosell2-Sep-02 20:56
Hostalet Wandosell2-Sep-02 20:56 
GeneralFilemapping Pin
Zizilamoroso1-Sep-02 22:35
Zizilamoroso1-Sep-02 22:35 
GeneralRe: Filemapping Pin
Tomasz Sowinski1-Sep-02 23:50
Tomasz Sowinski1-Sep-02 23:50 
GeneralDisabling a NT account Pin
abhinarulkar1-Sep-02 22:08
abhinarulkar1-Sep-02 22:08 

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.