Click here to Skip to main content
16,008,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: %CPU and Memory footprint question Pin
ben214-Jun-04 11:49
ben214-Jun-04 11:49 
GeneralRe: %CPU and Memory footprint question Pin
ben214-Jun-04 14:11
ben214-Jun-04 14:11 
GeneralCDateTimeCtrl Pin
sschilachi14-Jun-04 10:29
sschilachi14-Jun-04 10:29 
GeneralRe: CDateTimeCtrl Pin
palbano14-Jun-04 11:15
palbano14-Jun-04 11:15 
General(Nt)Zw Registry calls Pin
Dan Madden14-Jun-04 9:26
Dan Madden14-Jun-04 9:26 
AnswerRe: How do i know when the mouse leaves an area? Pin
Maximilien14-Jun-04 8:53
Maximilien14-Jun-04 8:53 
GeneralRe: How do i know when the mouse leaves an area? Pin
kfaday14-Jun-04 9:27
kfaday14-Jun-04 9:27 
GeneralRe: How do i know when the mouse leaves an area? Pin
Maximilien14-Jun-04 9:45
Maximilien14-Jun-04 9:45 
you can use it with MFC with no problem; the _TrackMouseEvent will generate a WM_MOUSELEAVE event/notification

ON_MESSAGE(WM_MOUSELEAVE, OnMouseLeave)
/// for example I use it on a CView ... 
void CView::OnMouseMove( UINT nFlags, CPoint point ) 
{
 if ( ! ( nFlags & MK_LBUTTON ) )
 {
  if (!m_bTracking)
  {
   TRACKMOUSEEVENT tme;
   tme.cbSize = sizeof(tme);
   tme.hwndTrack = m_hWnd;
   tme.dwFlags = TME_LEAVE;
   m_bTracking =  (_TrackMouseEvent(&tme) == 1 )? true: false;
  }
 }
}

LRESULT CView::OnMouseLeave(WPARAM wparam, LPARAM lparam)
{
 m_bTracking = false;
 return 0;
}



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: How do i know when the mouse leaves an area? Pin
kfaday14-Jun-04 10:32
kfaday14-Jun-04 10:32 
AnswerRe: How do i know when the mouse leaves an area? Pin
Johan Rosengren14-Jun-04 9:10
Johan Rosengren14-Jun-04 9:10 
AnswerRe: How do i know when the mouse leaves an area? Pin
toxcct14-Jun-04 11:23
toxcct14-Jun-04 11:23 
GeneralRe: How do i know when the mouse leaves an area? Pin
kfaday14-Jun-04 11:59
kfaday14-Jun-04 11:59 
GeneralRe: How do i know when the mouse leaves an area? Pin
toxcct14-Jun-04 20:46
toxcct14-Jun-04 20:46 
GeneralRe: How do i know when the mouse leaves an area? Pin
kfaday15-Jun-04 8:12
kfaday15-Jun-04 8:12 
GeneralRe: How do i know when the mouse leaves an area? Pin
kfaday15-Jun-04 9:19
kfaday15-Jun-04 9:19 
GeneralRe: How do i know when the mouse leaves an area? Pin
toxcct15-Jun-04 9:20
toxcct15-Jun-04 9:20 
QuestionHow do i know when the mouse leaves an area? Pin
kfaday14-Jun-04 8:46
kfaday14-Jun-04 8:46 
GeneralCreateCompatibleBitmap and mem allocation Pin
IGeorgeI14-Jun-04 8:46
IGeorgeI14-Jun-04 8:46 
GeneralRe: CreateCompatibleBitmap and mem allocation Pin
Johan Rosengren14-Jun-04 9:14
Johan Rosengren14-Jun-04 9:14 
GeneralRe: CreateCompatibleBitmap and mem allocation Pin
Vadim Tabakman14-Jun-04 16:59
Vadim Tabakman14-Jun-04 16:59 
GeneralSending small strings through sockets (lag problem) Pin
kfaday14-Jun-04 7:44
kfaday14-Jun-04 7:44 
GeneralRe: Sending small strings through sockets (lag problem) Pin
Ravi Bhavnani14-Jun-04 8:58
professionalRavi Bhavnani14-Jun-04 8:58 
GeneralRe: Sending small strings through sockets (lag problem) Pin
gamitech14-Jun-04 9:10
gamitech14-Jun-04 9:10 
GeneralRe: Sending small strings through sockets (lag problem) Pin
kfaday14-Jun-04 9:32
kfaday14-Jun-04 9:32 
QuestionHow to capture "network cable unplugged" event Pin
bikram singh14-Jun-04 7:43
bikram singh14-Jun-04 7:43 

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.