Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the function of "#pragma once"? Pin
BigMouth8-Dec-01 18:52
BigMouth8-Dec-01 18:52 
GeneralRe: What is the function of "#pragma once"? Pin
Rick York8-Dec-01 19:17
mveRick York8-Dec-01 19:17 
GeneralRe: What is the function of "#pragma once"? Pin
BigMouth8-Dec-01 20:15
BigMouth8-Dec-01 20:15 
GeneralRe: What is the function of "#pragma once"? Pin
Rick York8-Dec-01 20:35
mveRick York8-Dec-01 20:35 
GeneralRe: What is the function of "#pragma once"? Pin
BigMouth8-Dec-01 20:45
BigMouth8-Dec-01 20:45 
GeneralRe: What is the function of "#pragma once"? Pin
Rick York8-Dec-01 22:16
mveRick York8-Dec-01 22:16 
GeneralIntravenous caffeine and illegitimate grandchildren Pin
David Wulff8-Dec-01 14:37
David Wulff8-Dec-01 14:37 
GeneralRe: Intravenous caffeine and illegitimate grandchildren Pin
PJ Arends8-Dec-01 15:05
professionalPJ Arends8-Dec-01 15:05 
Hi David,

This reminds me of when I learned to recursivly traverse tree data structures

I have not tried this, but could you not use EnumChildWindows().
When the child is accessed, check if it has the focus,
If it does, send it's HWND to it's parent (say "It's me"),
If it does not, Enumerate it's own children.
If it does not get an "It's me" message from one child, go to the next,
If it does get the "It's me" message, forward it to it's immediate parent.

Do this for all levels of children until all windows are exhausted (no focus) or the "It's me" message is recieved by the top window.

Here is basic view of what I mean. (The numbers are the order windows are checked)
                        1Parent
        +-------------------+--------------------+
      2Wnd                7Wnd                10Wnd
  +-----+-----+----+        +-----+       +------+------+
3Wnd  4Wnd  5Wnd  6Wnd    8Wnd  9Wnd   11Wnd     Wnd    Wnd
                                          \
                                        Focus
The focus is held by the 11th window checked, so the rest of the windows are not checked.
HTH

---
It may be that your sole purpose in life is simply to serve as a warning to others.
GeneralRe: Intravenous caffeine and illegitimate grandchildren Pin
Michael Dunn8-Dec-01 15:26
sitebuilderMichael Dunn8-Dec-01 15:26 
GeneralRe: Intravenous caffeine [edited] Pin
David Wulff8-Dec-01 15:39
David Wulff8-Dec-01 15:39 
GeneralRe: Intravenous caffeine [edited] Pin
Chris Maunder8-Dec-01 15:46
cofounderChris Maunder8-Dec-01 15:46 
GeneralRe: Intravenous caffeine [edited] Pin
David Wulff8-Dec-01 15:54
David Wulff8-Dec-01 15:54 
GeneralRe: Intravenous caffeine [edited] Pin
Michael Dunn8-Dec-01 15:55
sitebuilderMichael Dunn8-Dec-01 15:55 
GeneralRe: Intravenous caffeine [edited] Pin
David Wulff8-Dec-01 16:00
David Wulff8-Dec-01 16:00 
GeneralRe: Intravenous caffeine [edited] Pin
PJ Arends8-Dec-01 15:56
professionalPJ Arends8-Dec-01 15:56 
GeneralProblem fixed! Pin
David Wulff8-Dec-01 16:21
David Wulff8-Dec-01 16:21 
GeneralProblem with template Pin
8-Dec-01 13:26
suss8-Dec-01 13:26 
GeneralRe: Problem with template Pin
Michael Dunn8-Dec-01 15:27
sitebuilderMichael Dunn8-Dec-01 15:27 
GeneralRe: Problem with template Pin
9-Dec-01 12:16
suss9-Dec-01 12:16 
GeneralRe: Problem with template Pin
Alvaro Mendez11-Dec-01 6:08
Alvaro Mendez11-Dec-01 6:08 
GeneralOpening a Dialog Box through a Menu Pin
8-Dec-01 13:11
suss8-Dec-01 13:11 
GeneralWeb site Search Using MS Access 2000 Pin
8-Dec-01 11:21
suss8-Dec-01 11:21 
GeneralRe: Web site Search Using MS Access 2000 Pin
Jon Sagara8-Dec-01 11:43
Jon Sagara8-Dec-01 11:43 
Generalget user defined message box font continued Pin
Henry Jacobs8-Dec-01 10:27
Henry Jacobs8-Dec-01 10:27 
GeneralRe: get user defined message box font continued Pin
Daniel Ferguson8-Dec-01 18:23
Daniel Ferguson8-Dec-01 18:23 

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.