Link to home
Start Free TrialLog in
Avatar of Mazrim
Mazrim

asked on

Please Help Me Quick!!!! **C++ Windows Q**

I am creating a windows program using gdi.  Besides the main window I need to be able to create a second, smaller window every once in a while.  To display info and stuff...    

I want to interact with the second window in a similar way to the first one.  But I dont want them to get all tangled together and stuff....   Any simple solutions to creating this popup window and working with it?
Avatar of cookre
cookre
Flag of United States of America image

Just use the normal CreateWindow and switch between them with SetFocus(hwnd).  Don't forget that the message pump gives your WNDPROC the HWND associated with the message.

If you don't want to deal with that, perhaps you can settle for a child dialog window.
Avatar of Mazrim
Mazrim

ASKER

so how do i tell which message is from which window?
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i was just wondering...  whats the diff between a normal window and a child window?