Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
AlexO21-Feb-03 2:55
AlexO21-Feb-03 2:55 
GeneralRe: passing in an STL set pointer in SEndMessage Pin
ns21-Feb-03 3:04
ns21-Feb-03 3:04 
GeneralMemory leak Pin
Willem B21-Feb-03 1:58
Willem B21-Feb-03 1:58 
GeneralRe: Memory leak Pin
Willem B21-Feb-03 2:25
Willem B21-Feb-03 2:25 
GeneralBeginning Socket Programming Pin
lumpyandsuspicious21-Feb-03 1:25
lumpyandsuspicious21-Feb-03 1:25 
GeneralRe: Beginning Socket Programming Pin
valikac21-Feb-03 6:43
valikac21-Feb-03 6:43 
GeneralTool Tip in CFormView Pin
sikrip21-Feb-03 1:23
sikrip21-Feb-03 1:23 
GeneralRe: Tool Tip in CFormView Pin
Roger Allen21-Feb-03 1:43
Roger Allen21-Feb-03 1:43 
Call EnableToolTips(TRUE) in the OnIntiialUpdate()

// in header file
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT * pResult);

// add this to your message map
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)

// add the tooltip text for each IDC of a cntrol on your form. Note that all CStatic objects must have the SS_NOTIFY style set in the resources to get a tooltip for them.

BOOL CYourFormView::OnToolTipNotify(UINT /*id*/, NMHDR *pNMHDR, LRESULT * /*pResult*/)
{
    TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
	
    if (pTTT->uFlags & TTF_IDISHWND)
    {
		CRect	rctTemp;
		CPoint	pntMouse;
		
		GetCursorPos(&pntMouse);
		
        // idFrom is actually the HWND of the tool
        UINT nID = ::GetDlgCtrlID((HWND)pNMHDR->idFrom);
		
		pTTT->lpszText = NULL;
		
		switch (nID)
		{
		case IDC_TITLE :
			pTTT->lpszText = "Tray setup title";
			break;
			
		case IDC_NEW_ASSAY :
			pTTT->lpszText = "Create new assay in selected position";
			break;
		}
		
		if (pTTT->lpszText != NULL)
		{
			return(TRUE);
		}
	}
	
	return(FALSE);
}



Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralRe: Tool Tip in CFormView Pin
Aaron Schaefer21-Feb-03 6:18
Aaron Schaefer21-Feb-03 6:18 
Questiontab like control? Pin
Jon Hulatt21-Feb-03 1:22
Jon Hulatt21-Feb-03 1:22 
AnswerRe: tab like control? Pin
AlexO21-Feb-03 2:58
AlexO21-Feb-03 2:58 
GeneralMDI Menu Pin
albuemil21-Feb-03 0:43
albuemil21-Feb-03 0:43 
GeneralRe: MDI Menu Pin
Roger Allen21-Feb-03 1:47
Roger Allen21-Feb-03 1:47 
GeneralRe: MDI Menu Pin
albuemil21-Feb-03 2:30
albuemil21-Feb-03 2:30 
GeneralMoveWindow() Pin
ROK_RShadow20-Feb-03 23:53
ROK_RShadow20-Feb-03 23:53 
GeneralRe: MoveWindow() Pin
Chintan21-Feb-03 0:28
Chintan21-Feb-03 0:28 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:35
ROK_RShadow21-Feb-03 0:35 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:29
vikramlinux21-Feb-03 0:29 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:33
ROK_RShadow21-Feb-03 0:33 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:35
vikramlinux21-Feb-03 0:35 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:39
ROK_RShadow21-Feb-03 0:39 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:43
vikramlinux21-Feb-03 0:43 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:48
ROK_RShadow21-Feb-03 0:48 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:51
vikramlinux21-Feb-03 0:51 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:55
ROK_RShadow21-Feb-03 0:55 

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.