Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crosspost Pin
Richard MacCutchan3-Oct-12 4:35
mveRichard MacCutchan3-Oct-12 4:35 
AnswerRe: How to create C++/CLI Interface to access .net API from C++ code? Pin
jschell3-Oct-12 10:26
jschell3-Oct-12 10:26 
Questioncan you help me Pin
emanalshboul2-Oct-12 11:23
emanalshboul2-Oct-12 11:23 
AnswerRe: can you help me Pin
Richard Andrew x642-Oct-12 11:42
professionalRichard Andrew x642-Oct-12 11:42 
AnswerRe: can you help me Pin
Joan M2-Oct-12 23:18
professionalJoan M2-Oct-12 23:18 
QuestionRe: can you help me Pin
David Crow3-Oct-12 2:28
David Crow3-Oct-12 2:28 
QuestionGet all substrings from an application Pin
Brandon-X120001-Oct-12 3:43
Brandon-X120001-Oct-12 3:43 
AnswerRe: Get all substrings from an application Pin
pasztorpisti1-Oct-12 4:18
pasztorpisti1-Oct-12 4:18 
You can't do that universally for controls that are owner drawn. However with standard controls you could periodically enumerate (every second or every 5 seconds) all HWNDs and child HWNDs and check some of their parameters for example their window class and you can then do some control-type specific checks.

Window enumeration:
EnumWindows()[^]
EnumChildWindows()[^]

Getting the window class: GetClassName()[^]

In general you can use GetWindowText()[^] to get the titlebar, or button text, editbox text, and so on, but depending on the result of GetClassName() you can do control specific checks.

Conclusion: If you want to handle a lot of controls then you have to check the api of every controls and you will still be unable to handle owner draw controls in some cases.
GeneralRe: Get all substrings from an application Pin
Brandon-X120003-Oct-12 8:34
Brandon-X120003-Oct-12 8:34 
GeneralRe: Get all substrings from an application Pin
pasztorpisti3-Oct-12 10:26
pasztorpisti3-Oct-12 10:26 
QuestionRe: Get all substrings from an application [OT] Pin
David Crow1-Oct-12 6:27
David Crow1-Oct-12 6:27 
GeneralRe: Get all substrings from an application [OT] Pin
pasztorpisti1-Oct-12 8:52
pasztorpisti1-Oct-12 8:52 
AnswerRe: Get all substrings from an application [OT] Pin
Brandon-X120003-Oct-12 8:38
Brandon-X120003-Oct-12 8:38 
AnswerRe: Get all substrings from an application Pin
CPallini1-Oct-12 10:33
mveCPallini1-Oct-12 10:33 
JokeRe: Get all substrings from an application Pin
Chris Meech1-Oct-12 13:11
Chris Meech1-Oct-12 13:11 
JokeRe: Get all substrings from an application Pin
CPallini1-Oct-12 21:10
mveCPallini1-Oct-12 21:10 
JokeRe: Get all substrings from an application Pin
Joan M2-Oct-12 23:22
professionalJoan M2-Oct-12 23:22 
GeneralRe: Get all substrings from an application Pin
CPallini2-Oct-12 23:25
mveCPallini2-Oct-12 23:25 
QuestionHow to get a C++ console application run in a terminal/powershell type of environment? Pin
infectedprof30-Sep-12 13:53
infectedprof30-Sep-12 13:53 
AnswerRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
Rajesh R Subramanian30-Sep-12 21:39
professionalRajesh R Subramanian30-Sep-12 21:39 
AnswerRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
jschell1-Oct-12 8:59
jschell1-Oct-12 8:59 
GeneralRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
infectedprof1-Oct-12 16:16
infectedprof1-Oct-12 16:16 
GeneralRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
jschell2-Oct-12 8:38
jschell2-Oct-12 8:38 
AnswerRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
Richard MacCutchan1-Oct-12 21:25
mveRichard MacCutchan1-Oct-12 21:25 
GeneralRe: How to get a C++ console application run in a terminal/powershell type of environment? Pin
infectedprof1-Oct-12 21:48
infectedprof1-Oct-12 21:48 

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.