PDA

View Full Version : new window



newbieGL
07-23-2002, 07:26 AM
Hi all!
I'm working on my first assignment which requires popup a new window whenever I click on the main screen. This new window will display the spot I select from the main screen. I've no idea how to start because I need to add my code to existing project. Please help.

Thanks in advance.
nb

vatoloco
07-23-2002, 12:56 PM
If this is for a school project, you really need to do some reading. Anyhow, I'll help you out. http://www.opengl.org/discussion_boards/ubb/wink.gif

If you just need to popup a message box you can do this by:




MessageBox(NULL,"Clicked window","ERROR",MB_OK|MB_ICONEXCLAMATION);


>"This new window will display the spot I select from the main screen"

I don't understand what you mean.

-vatoloco

jubei_GL
07-23-2002, 05:51 PM
this is MFC project righ ?

What he means , when he clicks with the mouse on the screen a NEW Dialog box will pop out, with the info about where he clicked on the Main screen, X Y values ..

[This message has been edited by jubei_GL (edited 07-23-2002).]

[This message has been edited by jubei_GL (edited 07-23-2002).]