Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending messages with ::PostMessage Pin
Vadim Tabakman14-Jun-04 16:38
Vadim Tabakman14-Jun-04 16:38 
GeneralRe: Sending messages with ::PostMessage Pin
kfaday14-Jun-04 17:19
kfaday14-Jun-04 17:19 
GeneralRe: Sending messages with ::PostMessage Pin
Vadim Tabakman14-Jun-04 17:42
Vadim Tabakman14-Jun-04 17:42 
GeneralRe: Sending messages with ::PostMessage Pin
V.14-Jun-04 21:47
professionalV.14-Jun-04 21:47 
GeneralRe: Sending messages with ::PostMessage Pin
kfaday15-Jun-04 8:13
kfaday15-Jun-04 8:13 
GeneralRe: Sending messages with ::PostMessage Pin
V.15-Jun-04 21:01
professionalV.15-Jun-04 21:01 
GeneralRe: Sending messages with ::PostMessage Pin
kfaday16-Jun-04 2:28
kfaday16-Jun-04 2:28 
GeneralChanging the Mouse cursor Pin
kfaday14-Jun-04 16:19
kfaday14-Jun-04 16:19 
Hi,
I've got this code for the OnSetcursor function:

BOOL CVentanaPizarra::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
	BOOL resultado=TRUE;
	if (this->m_MouseManoMover)
	{
		if (SetCursor(CursorManoMover))
			resultado=TRUE;
	}
	else
		resultado = CDialog::OnSetCursor(pWnd, nHitTest, message);
	return resultado;
}


the following function changes the boolean which is seen to change the cursor in the abovementioned function.

LONG CVentanaPizarra::MouseManoMoverTrue(WPARAM wParam, LPARAM lParam)
{
	this->m_MouseManoMover=true;
	return 0;
}


I call this function from a 'CWnd derived' custom control in the dialog (that i use for drawing). The message works, when i click on something on the control , the message is sent, but the OnSetCursor function doesn't get called, perhaps because i'm hovering the mouse over the custom control, and not over the dialog. But the custom control is in the dialog.

Any ideas?
thanks!!
GeneralRe: Changing the Mouse cursor Pin
Johan Rosengren14-Jun-04 20:57
Johan Rosengren14-Jun-04 20:57 
GeneralRe: Changing the Mouse cursor Pin
kfaday15-Jun-04 8:24
kfaday15-Jun-04 8:24 
GeneralVC++ MFC questions Pin
henry00114-Jun-04 15:57
henry00114-Jun-04 15:57 
GeneralRe: VC++ MFC questions Pin
myfapb14-Jun-04 20:17
myfapb14-Jun-04 20:17 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:36
henry00115-Jun-04 5:36 
GeneralRe: VC++ MFC questions Pin
toxcct14-Jun-04 22:17
toxcct14-Jun-04 22:17 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:06
henry00115-Jun-04 5:06 
GeneralRe: VC++ MFC questions Pin
toxcct15-Jun-04 5:08
toxcct15-Jun-04 5:08 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:18
henry00115-Jun-04 5:18 
GeneralRe: VC++ MFC questions Pin
toxcct15-Jun-04 5:33
toxcct15-Jun-04 5:33 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:43
henry00115-Jun-04 5:43 
GeneralRe: VC++ MFC questions Pin
toxcct15-Jun-04 5:47
toxcct15-Jun-04 5:47 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:51
henry00115-Jun-04 5:51 
GeneralRe: VC++ MFC questions Pin
toxcct15-Jun-04 5:52
toxcct15-Jun-04 5:52 
GeneralRe: VC++ MFC questions Pin
henry00115-Jun-04 5:56
henry00115-Jun-04 5:56 
QuestionHow to overload [] and = for bit assignment Pin
ICantChangeMyAcct14-Jun-04 15:48
ICantChangeMyAcct14-Jun-04 15:48 
AnswerRe: How to overload [] and = for bit assignment Pin
Michael Dunn14-Jun-04 20:28
sitebuilderMichael Dunn14-Jun-04 20:28 

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.