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

C / C++ / MFC

 
Questionproblem in adding node in registry Pin
sonali996024-Feb-09 18:42
sonali996024-Feb-09 18:42 
AnswerRe: problem in adding node in registry Pin
Cedric Moonen24-Feb-09 20:52
Cedric Moonen24-Feb-09 20:52 
GeneralRe: problem in adding node in registry Pin
sonali996026-Feb-09 19:44
sonali996026-Feb-09 19:44 
QuestionHow do you refresh/update a parent dialog when Modal child dialog is active Pin
JJeffrey24-Feb-09 16:34
JJeffrey24-Feb-09 16:34 
AnswerRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
ashtwin24-Feb-09 16:57
ashtwin24-Feb-09 16:57 
GeneralRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
JJeffrey24-Feb-09 21:41
JJeffrey24-Feb-09 21:41 
AnswerRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
«_Superman_»24-Feb-09 17:41
professional«_Superman_»24-Feb-09 17:41 
QuestionProblem in displaying tooltip Pin
ashtwin24-Feb-09 16:04
ashtwin24-Feb-09 16:04 
Hi,
I want to display a tooltip over a propertysheet whenever user will put the mouse cusor on its left or right border.
I am using the following
code
LRESULT MySubCard::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
	LRESULT result = 0;

	try
	{
		switch (message)
		{
			case WM_LBUTTONDOWN:
			case WM_RBUTTONDOWN:
			case WM_MBUTTONDOWN:
			case WM_LBUTTONUP:
			case WM_RBUTTONUP:
			case WM_MBUTTONUP:
			case WM_MOUSEMOVE:
			{
				// Mouse messages must be relayed to tooltip control
				if (::IsWindow(mLeftToolTip.GetSafeHwnd()))
				{
					MSG msg;
					msg.hwnd = m_hWnd;
					msg.message = message;
					msg.wParam = wParam;
					msg.lParam = lParam;

					if(Within left or rigth border)
					{
					   mLeftToolTip.Activate(TRUE);
					   mLeftToolTip.RelayEvent(&msg);
					}
				}
			}

			default:
			{
				break;
			}
		}
		result = CWnd::WindowProc(message, wParam, lParam);
	}
	catch (...) 
	{
	}    

	return result;
}


I am setting the tool using the following code
mLeftToolTip.AddTool(this, szToolTip, borderarea, ID_SPLITTER_TOOLTIP);


Though in windowproc RelayEvent is getting called for mouse movements but the tooltip is not getting displayed.

Thanks
AnswerRe: Problem in displaying tooltip Pin
Code-o-mat24-Feb-09 21:40
Code-o-mat24-Feb-09 21:40 
QuestionRe: Problem in displaying tooltip Pin
ashtwin25-Feb-09 1:02
ashtwin25-Feb-09 1:02 
AnswerRe: Problem in displaying tooltip [modified] Pin
Code-o-mat25-Feb-09 1:20
Code-o-mat25-Feb-09 1:20 
GeneralRe: Problem in displaying tooltip Pin
ashtwin25-Feb-09 21:23
ashtwin25-Feb-09 21:23 
QuestionBest Location for DB Files Pin
Bram van Kampen24-Feb-09 14:38
Bram van Kampen24-Feb-09 14:38 
QuestionHow to get the fullpath from argument of my application (VS C++ 2005)? Pin
nhatvhm24-Feb-09 14:05
nhatvhm24-Feb-09 14:05 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
W. Kleinschmit24-Feb-09 14:45
W. Kleinschmit24-Feb-09 14:45 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
ky_rerun24-Feb-09 14:47
ky_rerun24-Feb-09 14:47 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
«_Superman_»24-Feb-09 17:51
professional«_Superman_»24-Feb-09 17:51 
QuestionAll pipes intances are busy Pin
Arif Liminto24-Feb-09 14:04
professionalArif Liminto24-Feb-09 14:04 
QuestionCan someone check this in VC++ 2008 Pin
cmk24-Feb-09 13:39
cmk24-Feb-09 13:39 
AnswerRe: Can someone check this in VC++ 2008 Pin
Stuart Dootson25-Feb-09 8:14
professionalStuart Dootson25-Feb-09 8:14 
GeneralRe: Can someone check this in VC++ 2008 Pin
cmk25-Feb-09 9:29
cmk25-Feb-09 9:29 
QuestionMy Javascript gone as far as it can, I need some C++ starting points Pin
skieeterno24-Feb-09 12:12
skieeterno24-Feb-09 12:12 
QuestionAccess array data Pin
necy3624-Feb-09 9:56
necy3624-Feb-09 9:56 
AnswerRe: Access array data Pin
Larry J. Siddens24-Feb-09 10:08
Larry J. Siddens24-Feb-09 10:08 
GeneralRe: Access array data Pin
necy3625-Feb-09 3:34
necy3625-Feb-09 3:34 

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.