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

C / C++ / MFC

 
GeneralRe: How do you define "High level" and "Low level" abstractions? Pin
Link260023-Oct-03 11:14
Link260023-Oct-03 11:14 
GeneralWin32 toolbar problem/question Pin
Jim Crafton18-Oct-03 5:28
Jim Crafton18-Oct-03 5:28 
GeneralRe: Win32 toolbar problem/question Pin
Chris Richardson18-Oct-03 12:11
Chris Richardson18-Oct-03 12:11 
GeneralWasabi SDK Pin
_Digger_18-Oct-03 5:10
_Digger_18-Oct-03 5:10 
GeneralRe: Wasabi SDK Pin
User 665818-Oct-03 8:07
User 665818-Oct-03 8:07 
QuestionIMediaControl :: GetState() errors in DirectShow??? Pin
Saurabh_Delhi18-Oct-03 3:35
Saurabh_Delhi18-Oct-03 3:35 
AnswerRe: IMediaControl :: GetState() errors in DirectShow??? Pin
Alexander M.,18-Oct-03 12:55
Alexander M.,18-Oct-03 12:55 
GeneralStill problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 3:32
Rafael Fernández López18-Oct-03 3:32 
This is my code:

<br />
void CUltraShareDlg::pasa_el_foco(CWnd* pWnd)<br />
{<br />
	CPoint cursor;<br />
	CPoint punto;<br />
	CRect rectangulo;<br />
	CPoint punto1;<br />
	CPoint punto2;<br />
<br />
	//ScreenToClient(&cursor);<br />
<br />
	for (int i = 0; i < crear_ventana_servidores.m_servidores.GetItemCount(); i++)<br />
	{<br />
		GetCursorPos(&cursor);<br />
<br />
		crear_ventana_servidores.m_servidores.GetSubItemRect( i, 2, LVIR_LABEL, rectangulo);<br />
<br />
		if (PtInRect(rectangulo, cursor)!=0)<br />
		{<br />
                        // Here gets if the point is on the rectangle<br />
<br />
			MessageBox("I did it !!");<br />
			//crear_ventana_servidores.m_servidores.SetItemState( i, LVIS_FOCUSED | LVIS_SELECTED, LVIS_FOCUSED | LVIS_SELECTED );<br />
		}<br />
<br />
	}<br />
<br />
	pWnd->SetFocus();<br />
<br />
}<br />


The PtInRect() function is never !=0, I don't know how to know if the point is into the rectangle, I'm having lots of problems because of this... please help me...

Thanks in advance. Cry | :((


MaestroProgramador.Com

I didn't fail hundred times, I found hundred ways that didn't work.

No fallé cien veces, encontré cien maneras de que no funcionara.
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
includeh1018-Oct-03 6:11
includeh1018-Oct-03 6:11 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 12:30
Rafael Fernández López18-Oct-03 12:30 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Neville Franks18-Oct-03 12:45
Neville Franks18-Oct-03 12:45 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López19-Oct-03 2:01
Rafael Fernández López19-Oct-03 2:01 
GeneralIs this correct (modeless dialog box) Pin
Rickard Andersson2018-Oct-03 3:22
Rickard Andersson2018-Oct-03 3:22 
GeneralRe: Is this correct (modeless dialog box) Pin
includeh1018-Oct-03 6:23
includeh1018-Oct-03 6:23 
GeneralRelease build trouble Pin
Luuk Weltevreden18-Oct-03 1:50
Luuk Weltevreden18-Oct-03 1:50 
GeneralRe: Release build trouble Pin
Luuk Weltevreden18-Oct-03 2:44
Luuk Weltevreden18-Oct-03 2:44 
Questionprinter switched on or not? Pin
murali_utr18-Oct-03 0:47
murali_utr18-Oct-03 0:47 
GeneralMFC Dailog IDD Pin
cberam18-Oct-03 0:46
cberam18-Oct-03 0:46 
GeneralRe: MFC Dailog IDD Pin
murali_utr18-Oct-03 0:49
murali_utr18-Oct-03 0:49 
GeneralMicrosoft Access Driver Pin
OTVAC30517-Oct-03 23:19
OTVAC30517-Oct-03 23:19 
GeneralRe: Microsoft Access Driver Pin
Alexander M.,18-Oct-03 12:43
Alexander M.,18-Oct-03 12:43 
GeneralPoints and CRect Pin
Rafael Fernández López17-Oct-03 22:30
Rafael Fernández López17-Oct-03 22:30 
GeneralRe: Points and CRect Pin
Neville Franks17-Oct-03 23:18
Neville Franks17-Oct-03 23:18 
GeneralRe: Points and CRect Pin
Rafael Fernández López17-Oct-03 23:21
Rafael Fernández López17-Oct-03 23:21 
GeneralShallow copy Pin
bhangie17-Oct-03 21:28
bhangie17-Oct-03 21: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.