Sign in to follow this  
andrew1b

WM_CLOSE closes all next windows

Recommended Posts

Hello, I'm making a program wich first creates a window that allows the user to choose a screen resolution, after something is chosen the window should automaticaly close and then the program creates another window (both with ordinary CreateWindow functions). The problem is, if I try to close the first window by sending the WM_CLOSE message (and then PostQuitMessage) it would close the second window just after it shows up. Any of these windows are parent or child, they should't have anything to do wich each other. Why does it happen?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this