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

C / C++ / MFC

 
GeneralRe: The Best Conditional statement .. Pin
Eytukan30-Jan-06 20:16
Eytukan30-Jan-06 20:16 
QuestionUsing a non static member in a overloaded static member function Pin
arunaas30-Jan-06 5:16
arunaas30-Jan-06 5:16 
AnswerRe: Using a non static member in a overloaded static member function Pin
Michael Dunn30-Jan-06 7:26
sitebuilderMichael Dunn30-Jan-06 7:26 
QuestionRe: Using a non static member in a overloaded static member function Pin
arunaas30-Jan-06 14:15
arunaas30-Jan-06 14:15 
Questionwhich function can covert a hex string to value? Pin
includeh1030-Jan-06 4:50
includeh1030-Jan-06 4:50 
AnswerRe: which function can covert a hex string to value? Pin
David Crow30-Jan-06 4:53
David Crow30-Jan-06 4:53 
AnswerRe: which function can covert a hex string to value? Pin
Dominik Reichl30-Jan-06 4:56
Dominik Reichl30-Jan-06 4:56 
QuestionThe swapping section in a puzzle game Pin
eivanlo30-Jan-06 4:38
eivanlo30-Jan-06 4:38 
AnswerRe: The swapping section in a puzzle game Pin
Rage30-Jan-06 4:54
professionalRage30-Jan-06 4:54 
Questionmanaging serial port interrupt Pin
misturas30-Jan-06 4:32
misturas30-Jan-06 4:32 
AnswerRe: managing serial port interrupt Pin
Rage30-Jan-06 4:59
professionalRage30-Jan-06 4:59 
GeneralRe: managing serial port interrupt Pin
Cedric Moonen30-Jan-06 6:24
Cedric Moonen30-Jan-06 6:24 
GeneralRe: managing serial port interrupt Pin
Rage30-Jan-06 6:43
professionalRage30-Jan-06 6:43 
AnswerRe: managing serial port interrupt Pin
Rage30-Jan-06 5:00
professionalRage30-Jan-06 5:00 
GeneralRe: managing serial port interrupt Pin
misturas30-Jan-06 5:06
misturas30-Jan-06 5:06 
GeneralRe: managing serial port interrupt Pin
Rage30-Jan-06 5:16
professionalRage30-Jan-06 5:16 
AnswerRe: managing serial port interrupt Pin
Cedric Moonen30-Jan-06 6:28
Cedric Moonen30-Jan-06 6:28 
AnswerRe: managing serial port interrupt Pin
Iain Clarke, Warrior Programmer30-Jan-06 8:35
Iain Clarke, Warrior Programmer30-Jan-06 8:35 
GeneralRe: managing serial port interrupt Pin
misturas30-Jan-06 9:13
misturas30-Jan-06 9:13 
Questiongetting the hwnds of opened windows Pin
Alex Cutovoi30-Jan-06 4:13
Alex Cutovoi30-Jan-06 4:13 
AnswerRe: getting the hwnds of opened windows Pin
Rage30-Jan-06 4:50
professionalRage30-Jan-06 4:50 
void OpenedWindows(HWND hwnd)
{
   HWND childWindow;
   //is child of the desktop window???
   if((childWindow = GetWindow(hwnd, GW_CHILD)) != NULL)
   {
      if (childWindow != NULL)
      {
         MessageBox(NULL, itoa(((int)childWindow), cVal, 10), "Is Child", MB_OK);
         OpenedWindows(childWindow);
      }
      else
      {
         MessageBox(NULL, "No window child!!", "No Child", MB_OK);
      }
   }
   else //Catch the next's window
   {
      childWindow = GetNextWindow(GetParent(hwnd), GW_HWNDNEXT);
      if(childWindow != NULL)
      {
         MessageBox(NULL, itoa(((int)childWindow), cVal, 10), "Do Else", MB_OK);
         OpenedWindows(childWindow);
      }
      else MessageBox(NULL, "Is NULL", "", MB_OK);
   }
}


Why Getparent and not simply hwnd.

But anyway, I would not use clumsy recursion on the Z-order, but use GetDesktopWindow followed by EnumChildWindows, much more reliable IMO.

~RaGE();
QuestionRetreiving attributs of a node Pin
kandukuri30-Jan-06 3:05
kandukuri30-Jan-06 3:05 
AnswerRe: Retreiving attributs of a node Pin
David Crow30-Jan-06 3:31
David Crow30-Jan-06 3:31 
GeneralRe: Retreiving attributs of a node Pin
kandukuri30-Jan-06 3:35
kandukuri30-Jan-06 3:35 
GeneralRe: Retreiving attributs of a node Pin
Rage30-Jan-06 3:42
professionalRage30-Jan-06 3:42 

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.