Okay, I'm bored - I'll bite. (Though will point out that "plz plz" is not really considered polite) For what it's worth, as english speakers - we generally signify the end of a sentence with a full-stop (.) and use capitals for the first letter in a sentence in addition to the first character in names. Txt spk or sms tlk are generally not received very well in this particular corner of the internet. Recall and observe these guidelines and you'l likely get better, faster results to any questions.
Against my urge to say nothing until after the instructions, I will point out that these instructions are for a Win32 dialog based app, using Code::Blocks
and gcc. (MFC would require the same approach more or less with some differences in implementation)
So here's what you need to do.
1) Create dialog based app
2) Add a new static to the dialog, make sure it has a unique ID - e.g parentsStaticHwnd
3) Copy and paste the DialogProcedure with a new name e.g ChildDialogProc
4) Add resources for the extra dialog and a button or two
5) While handling WM_INITDIALOG in DialogProcedure, use GetDlgItem to get a HWND of the static control you added in step 2. - store into a global var, like hInst (since you need it for both dialogs, and not just the one invoked from your WinMain.
6) Add handler code for the button you added on the 2nd dialog. Just set the text of the window whose HWND you got in step 5 (the static on the main dialog)
7) Wire-up the 2nd dialog so that it is invoked when the button on the first form is pressed - here's my code:
DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), NULL, (DLGPROC)MainDialogProc);
There you have it, done and done. 67 lines of code, 38 lines of resource.rc