Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Minimize button not recognized Pin
sigasi17-Mar-03 22:24
sigasi17-Mar-03 22:24 
GeneralRe: Minimize button not recognized Pin
Bob Eastman18-Mar-03 0:43
Bob Eastman18-Mar-03 0:43 
GeneralRe: Minimize button not recognized Pin
Bob Eastman18-Mar-03 12:04
Bob Eastman18-Mar-03 12:04 
Generalbrute force Pin
el davo16-Mar-03 13:46
el davo16-Mar-03 13:46 
GeneralRe: brute force Pin
Dave Bryant16-Mar-03 13:56
Dave Bryant16-Mar-03 13:56 
GeneralRe: brute force Pin
el davo16-Mar-03 14:00
el davo16-Mar-03 14:00 
GeneralRe: brute force Pin
Chris Richardson17-Mar-03 8:12
Chris Richardson17-Mar-03 8:12 
GeneralRe: brute force Pin
Chris Richardson17-Mar-03 8:36
Chris Richardson17-Mar-03 8:36 
Scratch my last reply. Here's a function I wrote that will simulate a double click on a point in the tray. I'm sure it can be adapted to simulate a single click. Note that I only ran this on XP, the identifiers I pass to GetDlgItem might be different on other systems.

[edit]Oops, I forgot the pre tags[/edit]

void DoubleClickTheTray( int p_iX, int p_iY )
{
   HWND a_hTray = FindWindow( _T("Shell_TrayWnd"), NULL );
   if( a_hTray )
   {
      HWND a_hNotifyWnd = GetDlgItem( a_hTray, 0x12F );
      if( a_hNotifyWnd )
      {
         HWND a_hPager = GetDlgItem( a_hNotifyWnd, 0x00 );
         if( a_hPager )
         {
            HWND a_hNotificationArea = GetWindow( a_hPager, GW_CHILD );
            
            if( a_hNotificationArea )
            {
               LONG a_lPoint = MAKELONG( p_iX, p_iY );
               PostMessage( a_hNotificationArea, WM_LBUTTONDOWN, 0, a_lPoint );
               PostMessage( a_hNotificationArea, WM_LBUTTONUP, 0, a_lPoint );
               PostMessage( a_hNotificationArea, WM_LBUTTONDOWN, 0, a_lPoint );
               PostMessage( a_hNotificationArea, WM_LBUTTONDBLCLK, 0, a_lPoint );
               PostMessage( a_hNotificationArea, WM_LBUTTONUP, 0, a_lPoint );
            }
         }
      }
   }
}


Chris Richardson

You can stash and you can seize
In dreams begin, responsibilities

U2 - Acrobat[^]


Stop being PC and accounting for everyone and his momma's timeframe. Just enjoy your Beer | [beer] - Rohit Sinha in the content-challenged thread
GeneralRe: brute force Pin
el davo17-Mar-03 12:32
el davo17-Mar-03 12:32 
GeneralRe: brute force Pin
Chris Richardson17-Mar-03 13:09
Chris Richardson17-Mar-03 13:09 
GeneralRe: brute force Pin
el davo17-Mar-03 16:08
el davo17-Mar-03 16:08 
QuestionHow to make an app that runs on Windows 95, 98, ME, NT, 2000 and XP Pin
cdsmith16-Mar-03 13:28
cdsmith16-Mar-03 13:28 
AnswerRe: How to make an app that runs on Windows 95, 98, ME, NT, 2000 and XP Pin
georgiek5016-Mar-03 13:37
georgiek5016-Mar-03 13:37 
GeneralRe: How to make an app that runs on Windows 95, 98, ME, NT, 2000 and XP Pin
Dave Bryant16-Mar-03 13:53
Dave Bryant16-Mar-03 13:53 
AnswerRe: How to make an app that runs on Windows 95, 98, ME, NT, 2000 and XP Pin
Joan M16-Mar-03 21:58
professionalJoan M16-Mar-03 21:58 
GeneralTransparent background for a Tree Ctrl Pin
Florin Ochiana16-Mar-03 12:04
Florin Ochiana16-Mar-03 12:04 
GeneralUrgent Checkbox help required Pin
phaedrus16-Mar-03 11:23
phaedrus16-Mar-03 11:23 
GeneralRe: Urgent Checkbox help required Pin
Florin Ochiana16-Mar-03 12:02
Florin Ochiana16-Mar-03 12:02 
GeneralRe: Urgent Checkbox help required Pin
Michael Dunn16-Mar-03 12:35
sitebuilderMichael Dunn16-Mar-03 12:35 
GeneralRe: Urgent Checkbox help required Pin
phaedrus16-Mar-03 15:30
phaedrus16-Mar-03 15:30 
GeneralAccelerator manager Pin
yooyo3d16-Mar-03 11:07
yooyo3d16-Mar-03 11:07 
GeneralDrag & Drop with IDragSourceHelper Pin
Hiusing16-Mar-03 10:02
Hiusing16-Mar-03 10:02 
GeneralTranslate VB -> C++ Pin
mduarte16-Mar-03 9:29
mduarte16-Mar-03 9:29 
GeneralRe: Translate VB -> C++ Pin
Christian Graus16-Mar-03 9:40
protectorChristian Graus16-Mar-03 9:40 
QuestionFind a substring in strings of COMBO? Pin
_skidrow_vn_16-Mar-03 9:22
_skidrow_vn_16-Mar-03 9:22 

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.