Thanks very much! This works, and I'm sure I will be ale to put it to good use. A question regarding the use of CStatic... I want to be able to access the window produced as if it were a List box. The item choosen from this list box will be applied to a second window which will bring up the properties of the item chosen from the first window. Can I do this with the CStatic window just created? Thanks in advance, Thomas
TMaxwell86
Posts
-
(79) : error C2059: syntax error : ')' -
(79) : error C2059: syntax error : ')'I must be missing something somewhere, but it isn't obvious to me with such an ambiguous error msg... I've tried every connutation of line 79 "(WindowOne ->Create(NULL,NULL,WS_CHILD,);", but none seem to help, unless I actually comment it out. Is there another section of code where I should go to make edit corrections? I've tried deleting the offending line and recompiling before retyping it back in to no avail. Any help/advice is greatly appreciated! :) The offending code........... void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,NULL,WS_CHILD,);//line 79 WindowOne ->ShowWindow(SW_SHOW); } Thomas
-
How do I call a Child window from a Dialog?Hello, This may seem rather easy for most of you, but I seem to have difficulty with what should be a very easy task. I have a Main Frame that opens with a background bmp but no Child. What I want to do is when you click "Start" from the menu, a dialog opens. After filling out a few variables in the dialog, I want to close the dialog, then open two new/different child windows (actually I would like to split the main window into 4 parts and place adifferent child into each quarter). Can anyone direct me to an online file or tutorial for something like this? I can't seem to find the right reference. Any help would be GREATLY appreciated!:-D Thomas (tntnmmd@hotmail.com)
-
MFC MDI default Child Frame creationI wish you luck, because I have the same problems... The text books I have don't take me far enough into the nuts and bolts of what I really want to do. I will keep my eye on this thread Thomas