Click here to Skip to main content
15,915,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File String Sorting Pin
enhzflep21-Oct-08 20:12
enhzflep21-Oct-08 20:12 
AnswerRe: File String Sorting Pin
Cedric Moonen21-Oct-08 20:33
Cedric Moonen21-Oct-08 20:33 
GeneralRe: File String Sorting Pin
Iain Clarke, Warrior Programmer21-Oct-08 21:48
Iain Clarke, Warrior Programmer21-Oct-08 21:48 
GeneralRe: File String Sorting Pin
Cedric Moonen21-Oct-08 22:09
Cedric Moonen21-Oct-08 22:09 
GeneralRe: File String Sorting Pin
BadKarma21-Oct-08 23:47
BadKarma21-Oct-08 23:47 
QuestionSize of Structure Pin
Anu_Bala21-Oct-08 19:21
Anu_Bala21-Oct-08 19:21 
AnswerRe: Size of Structure Pin
Mark Salsbery21-Oct-08 19:39
Mark Salsbery21-Oct-08 19:39 
QuestionHow to find a child window? Pin
Mohammad Khodaea21-Oct-08 19:18
Mohammad Khodaea21-Oct-08 19:18 
Hi friends,
I have encountered a problem that I would like to ask you.
I have a Main-Dialog and a child dialog. The child dialog is
hidden and I would like to find it at run time. I use several
APIs such as FindWindow but it is not usefull to me (Since my
child dialog has no caption) and also, EnumWindows and EnumChildWindows,
but apparently these APIs can not find child dialogs.
I put my code here to clarify my solution. Thanks very much in advance.
in the code :

EnumChildWindows(m_hWnd, EnumChildProc, NULL);

/************************************************************************/
BOOL MyDlg::EnumChildProc(HWND hwnd, LPARAM lParam)
{
// Access to the ECDialog members through pThis.
CCMDDlg* pThis = (CCMDDlg*)lParam;

//GetDlgCtrlID()
if ( IDD_CHILD_DLG == FromHandle(hwnd)->GetDlgCtrlID() )
{
// Find Child Dialog
Beep(1000, 500);

return FALSE;
}

return TRUE;
}
/************************************************************************/
BOOL MyDlg::EnumWindowsProc(HWND hwnd, LPARAM lParam)
{
int i = CWnd::FromHandle(hwnd)->GetDlgCtrlID();
if ( IDC_CHILD_DLG == FromHandle(hwnd)->GetDlgCtrlID() )
{
Beep(1000, 2000);

return FALSE;
}

return TRUE;
}
/************************************************************************/
AnswerRe: How to find a child window? Pin
Naveen21-Oct-08 20:12
Naveen21-Oct-08 20:12 
QuestionUnhandled exception ? Pin
Le@rner21-Oct-08 19:02
Le@rner21-Oct-08 19:02 
AnswerRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 19:32
Mark Salsbery21-Oct-08 19:32 
GeneralRe: Unhandled exception ? Pin
Le@rner21-Oct-08 19:49
Le@rner21-Oct-08 19:49 
QuestionRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:04
Mark Salsbery21-Oct-08 20:04 
AnswerRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:14
Le@rner21-Oct-08 20:14 
GeneralRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:21
Mark Salsbery21-Oct-08 20:21 
GeneralRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:23
Le@rner21-Oct-08 20:23 
QuestionC/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 18:17
Adeel Chaudhry21-Oct-08 18:17 
AnswerRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 18:47
Naveen21-Oct-08 18:47 
GeneralRe: C/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 19:37
Adeel Chaudhry21-Oct-08 19:37 
GeneralRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 19:55
Naveen21-Oct-08 19:55 
Questionmac address libraries Pin
anilaabc21-Oct-08 17:26
anilaabc21-Oct-08 17:26 
AnswerRe: mac address libraries Pin
enhzflep21-Oct-08 18:41
enhzflep21-Oct-08 18:41 
QuestionWhat is the difference between c++ structs and c# structs..? Pin
Aslesh21-Oct-08 17:11
Aslesh21-Oct-08 17:11 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Naveen21-Oct-08 18:39
Naveen21-Oct-08 18:39 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Mark Salsbery21-Oct-08 18:58
Mark Salsbery21-Oct-08 18:58 

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.