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

C / C++ / MFC

 
QuestionOpenFile Pin
nitin330-Jul-07 19:12
nitin330-Jul-07 19:12 
AnswerRe: OpenFile Pin
prasad_som30-Jul-07 19:21
prasad_som30-Jul-07 19:21 
QuestionRe: OpenFile Pin
nitin330-Jul-07 19:57
nitin330-Jul-07 19:57 
AnswerRe: OpenFile Pin
Hamid_RT31-Jul-07 21:17
Hamid_RT31-Jul-07 21:17 
QuestionHow to change the size of the default scrollbar Pin
Nishad S30-Jul-07 18:39
Nishad S30-Jul-07 18:39 
AnswerRe: How to change the size of the default scrollbar Pin
Hans Dietrich30-Jul-07 20:07
mentorHans Dietrich30-Jul-07 20:07 
GeneralRe: How to change the size of the default scrollbar Pin
Nishad S30-Jul-07 20:15
Nishad S30-Jul-07 20:15 
QuestionReading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Hirakawa30-Jul-07 17:54
Hirakawa30-Jul-07 17:54 
Dear All,

Good day. I have problem with the code below (which I used to get the directory path in the address bar of explorer.exe):

<small>

TCHAR lpString[1024] = _T("");

if ((strcmp(c, "ExploreWClass") == 0) || strcmp(c, "CabinetWClass") == 0) {
   HWND hWorker, hReBar32, hCombo32, hCombo, hEdit;

   hWorker = FindWindowEx(hwnd, 0, "WorkerW", NULL);
   
   if (hWorker) {
      hReBar32 = FindWindowEx(hWorker, 0, "ReBarWindow32", NULL);

      if (hReBar32) {
         hCombo32 = FindWindowEx(hReBar32, 0, "ComboBoxEx32", NULL);

         if (hCombo32) {
            hCombo = FindWindowEx(hCombo32, 0, "ComboBox", NULL);

            if (hCombo) {
               hEdit = FindWindowEx(hCombo, 0, "Edit", NULL);

               if (hEdit) {
                  SendMessage(hEdit, WM_GETTEXT, 1024, (LPARAM)(void*)lpString);
               }
            }
         }
      }
   }
}
</small>


I believed due to Vista Architecture different from 2K and XP, this code doesn't work anymore and it always fail at FindWindowEx(hReBar32, 0, "ComboBoxEx32", NULL); in Vista. Anybody can give me some instructions on how to make this work with Vista?
QuestionRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
prasad_som30-Jul-07 19:23
prasad_som30-Jul-07 19:23 
AnswerRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Hirakawa30-Jul-07 22:30
Hirakawa30-Jul-07 22:30 
GeneralRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
prasad_som30-Jul-07 22:55
prasad_som30-Jul-07 22:55 
GeneralRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Hirakawa31-Jul-07 1:02
Hirakawa31-Jul-07 1:02 
GeneralRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
prasad_som31-Jul-07 2:48
prasad_som31-Jul-07 2:48 
AnswerRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Naveen30-Jul-07 21:13
Naveen30-Jul-07 21:13 
GeneralRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Hirakawa31-Jul-07 0:55
Hirakawa31-Jul-07 0:55 
QuestionRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
David Crow31-Jul-07 2:59
David Crow31-Jul-07 2:59 
AnswerRe: Reading Explorer.exe Address Bar work with 2K/XP but not Vista Pin
Hirakawa31-Jul-07 6:38
Hirakawa31-Jul-07 6:38 
QuestionFinding and comparing an image! Pin
ksjetski30-Jul-07 17:47
ksjetski30-Jul-07 17:47 
AnswerRe: Finding and comparing an image! Pin
Abdellatif_El_Khlifi13-Aug-07 15:59
Abdellatif_El_Khlifi13-Aug-07 15:59 
QuestionDisable and grey out menu item Pin
Johpoke30-Jul-07 11:28
Johpoke30-Jul-07 11:28 
AnswerRe: Disable and grey out menu item Pin
Michael Dunn30-Jul-07 12:10
sitebuilderMichael Dunn30-Jul-07 12:10 
AnswerRe: Disable and grey out menu item Pin
led mike30-Jul-07 12:42
led mike30-Jul-07 12:42 
AnswerRe: Disable and grey out menu item Pin
Mark Salsbery30-Jul-07 13:58
Mark Salsbery30-Jul-07 13:58 
QuestionRe: Disable and grey out menu item Pin
Johpoke30-Jul-07 21:54
Johpoke30-Jul-07 21:54 
Questionunexistent MailSlots doesn't return error. Pin
r3dqu33n30-Jul-07 10:13
r3dqu33n30-Jul-07 10:13 

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.