Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to do bluetooth programming on the computer side? Pin
shpid3r30-Aug-07 5:31
shpid3r30-Aug-07 5:31 
QuestionImplicit constructors Pin
tom groezer29-Jun-07 22:47
tom groezer29-Jun-07 22:47 
AnswerRe: Implicit constructors Pin
Sameerkumar Namdeo29-Jun-07 23:46
Sameerkumar Namdeo29-Jun-07 23:46 
AnswerRe: Implicit constructors Pin
fefe.wyx29-Jun-07 23:53
fefe.wyx29-Jun-07 23:53 
QuestionGet all controls on a form Pin
braune29-Jun-07 21:57
braune29-Jun-07 21:57 
QuestionRe: Get all controls on a form Pin
Hamid_RT30-Jun-07 0:42
Hamid_RT30-Jun-07 0:42 
AnswerRe: Get all controls on a form Pin
braune30-Jun-07 10:45
braune30-Jun-07 10:45 
AnswerRe: Get all controls on a form Pin
Mark Salsbery1-Jul-07 10:40
Mark Salsbery1-Jul-07 10:40 
I suppose you can enumerate the child windows looking for edit controls, something like this
(I'm assuming you're using MFC, based on the code you posted):
BOOL CALLBACK MyDialogEnumChildProc(HWND hwnd, LPARAM lParam)
{
   TCHAR szClassName[32];
   if (::GetClassName(hwnd, szClassName, 32))
   {
      if (!_tcsicmp(szClassName, _T("EDIT")))
      {
         CMyDialog *pMyDialog = (CMyDialog *)lParam;
 
         // Edit control found - do something here
      }
   }

   return TRUE;
}
 
...
 
void CMyDialog::SomeFunc()
{
   ::EnumChildWindows(*this, MyDialogEnumChildProc, (LPARAM)this);
}

Mark

Mark Salsbery
Microsoft MVP - Visual C++

QuestionRe: Get all controls on a form Pin
David Crow2-Jul-07 5:08
David Crow2-Jul-07 5:08 
AnswerRe: Get all controls on a form Pin
braune2-Jul-07 21:39
braune2-Jul-07 21:39 
GeneralRe: Get all controls on a form Pin
David Crow3-Jul-07 2:04
David Crow3-Jul-07 2:04 
GeneralRe: Get all controls on a form Pin
braune3-Jul-07 7:11
braune3-Jul-07 7:11 
GeneralRe: Get all controls on a form Pin
braune3-Jul-07 7:18
braune3-Jul-07 7:18 
QuestionCopy Constuctor Pin
tom groezer29-Jun-07 21:42
tom groezer29-Jun-07 21:42 
AnswerRe: Copy Constuctor Pin
fefe.wyx30-Jun-07 0:02
fefe.wyx30-Jun-07 0:02 
AnswerRe: Copy Constuctor Pin
bob1697230-Jun-07 7:24
bob1697230-Jun-07 7:24 
QuestionRe: Copy Constuctor Pin
David Crow2-Jul-07 5:09
David Crow2-Jul-07 5:09 
QuestionApplication Error The Exception BreakPoint Pin
shivditya29-Jun-07 20:07
shivditya29-Jun-07 20:07 
QuestionRe: Application Error The Exception BreakPoint Pin
David Crow2-Jul-07 5:12
David Crow2-Jul-07 5:12 
AnswerRe: Application Error The Exception BreakPoint Pin
shivditya8-Jul-07 1:05
shivditya8-Jul-07 1:05 
QuestionMakefile.def not found Pin
MANOJ BATRA29-Jun-07 20:00
MANOJ BATRA29-Jun-07 20:00 
Questionsetting checks on checkbox , setcheck not working Pin
awah29-Jun-07 19:18
awah29-Jun-07 19:18 
AnswerRe: setting checks on checkbox , setcheck not working Pin
Hamid_RT30-Jun-07 0:35
Hamid_RT30-Jun-07 0:35 
QuestionRe: setting checks on checkbox , setcheck not working Pin
David Crow2-Jul-07 5:13
David Crow2-Jul-07 5:13 
QuestionGreek character in ascii? Pin
acerunner31629-Jun-07 12:00
acerunner31629-Jun-07 12:00 

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.