Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstatic text boxes and using the wizard to initialize a variable Pin
AndrewG12313-Oct-12 11:46
AndrewG12313-Oct-12 11:46 
AnswerRe: static text boxes and using the wizard to initialize a variable Pin
Mohibur Rashid3-Oct-12 18:51
professionalMohibur Rashid3-Oct-12 18:51 
AnswerRe: static text boxes and using the wizard to initialize a variable Pin
«_Superman_»3-Oct-12 19:04
professional«_Superman_»3-Oct-12 19:04 
AnswerRe: static text boxes and using the wizard to initialize a variable Pin
Marius Bancila4-Oct-12 0:41
professionalMarius Bancila4-Oct-12 0:41 
Questionneed help with client server Pin
aajibade3-Oct-12 6:45
aajibade3-Oct-12 6:45 
AnswerRe: need help with client server Pin
David Crow3-Oct-12 6:53
David Crow3-Oct-12 6:53 
QuestionHow to create C++/CLI Interface to access .net API from C++ code? Pin
litu kumar3-Oct-12 2:14
litu kumar3-Oct-12 2:14 
AnswerCrosspost Pin
Peter_in_27803-Oct-12 2:24
professionalPeter_in_27803-Oct-12 2:24 
GeneralRe: Crosspost Pin
litu kumar3-Oct-12 2:30
litu kumar3-Oct-12 2:30 
GeneralRe: Crosspost Pin
Richard MacCutchan3-Oct-12 2:32
mveRichard MacCutchan3-Oct-12 2:32 
GeneralRe: Crosspost Pin
Peter_in_27803-Oct-12 2:48
professionalPeter_in_27803-Oct-12 2:48 
GeneralRe: Crosspost Pin
David Crow3-Oct-12 3:19
David Crow3-Oct-12 3:19 
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 

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.