new window

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

If this is for a school project, you really need to do some reading. Anyhow, I’ll help you out.

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

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).]