Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFind control on dialog Pin
Giorgi Dalakishvili21-May-08 10:50
mentorGiorgi Dalakishvili21-May-08 10:50 
QuestionRe: Find control on dialog Pin
David Crow21-May-08 11:06
David Crow21-May-08 11:06 
AnswerRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:18
mentorGiorgi Dalakishvili21-May-08 11:18 
AnswerRe: Find control on dialog Pin
Force Code21-May-08 11:21
Force Code21-May-08 11:21 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:25
mentorGiorgi Dalakishvili21-May-08 11:25 
GeneralRe: Find control on dialog Pin
Force Code21-May-08 11:37
Force Code21-May-08 11:37 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:50
mentorGiorgi Dalakishvili21-May-08 11:50 
GeneralRe: Find control on dialog Pin
Force Code21-May-08 12:14
Force Code21-May-08 12:14 
Giorgi Dalakishvili wrote:
Yes, I'm trying to locate a specific control but I won't know its id in advance, I'll only know its class name.


You can get the control ID with Spy++, or I imagine lots of other utilities as well. If you know enough about the application, then I guess the classname would suffice (also a unique control ID is just convention, and not something that's enforced.)

Giorgi Dalakishvili wrote:
I just forgot about EnumChildWindows. Should I prefer it to GetNextWindow? Is there any significant difference between them?


You mentioned it three days ago in the C# thread, and even supplied the msdn link. AS far as differences, to me its just more compact than calling GetWindow or GetNextWindow in a loop. Also, the documentation says,

"[EnumChildWindows] is more reliable than calling the GetWindow function in a loop. An application that calls GetWindow to perform this task risks being caught in an infinite loop or referencing a handle to a window that has been destroyed. "

EnumChildWindows does actually return all descendants of a given window and not just immediate children.
GeneralRe: Find control on dialog Pin
Rajesh R Subramanian21-May-08 20:21
professionalRajesh R Subramanian21-May-08 20:21 
AnswerRe: Find control on dialog Pin
Rajesh R Subramanian21-May-08 19:51
professionalRajesh R Subramanian21-May-08 19:51 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 19:58
mentorGiorgi Dalakishvili21-May-08 19:58 
Questionmodifying an REOBJECT Pin
Force Code21-May-08 10:00
Force Code21-May-08 10:00 
QuestionINCONSISTENCY IN VC++ Pin
edu.net21-May-08 9:35
edu.net21-May-08 9:35 
GeneralRe: INCONSISTENCY IN VC++ Pin
JudyL_MD21-May-08 10:02
JudyL_MD21-May-08 10:02 
GeneralRe: INCONSISTENCY IN VC++ Pin
edu.net21-May-08 10:40
edu.net21-May-08 10:40 
QuestionRe: INCONSISTENCY IN VC++ Pin
CPallini21-May-08 10:48
mveCPallini21-May-08 10:48 
QuestionHow to view .lib contents Pin
Jesse Evans21-May-08 7:57
Jesse Evans21-May-08 7:57 
AnswerRe: How to view .lib contents Pin
CPallini21-May-08 8:13
mveCPallini21-May-08 8:13 
GeneralRe: How to view .lib contents Pin
Jesse Evans21-May-08 8:23
Jesse Evans21-May-08 8:23 
GeneralYou're welcome. PinPopular
CPallini21-May-08 9:39
mveCPallini21-May-08 9:39 
GeneralRe: You're welcome. Pin
Hamid_RT21-May-08 17:56
Hamid_RT21-May-08 17:56 
GeneralRe: You're welcome. Pin
CPallini21-May-08 21:41
mveCPallini21-May-08 21:41 
GeneralRe: You're welcome. Pin
Hamid_RT21-May-08 23:27
Hamid_RT21-May-08 23:27 
GeneralRe: You're welcome. Pin
ThatsAlok16-Jul-09 20:37
ThatsAlok16-Jul-09 20:37 
JokeRe: You're welcome. Pin
Rajesh R Subramanian21-May-08 20:18
professionalRajesh R Subramanian21-May-08 20:18 

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.