Click here to Skip to main content
16,020,811 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have a window which is derived from CFrameView class. I need to hide it for some purpose but i will be using button handlers which is in that window.

I need to close this window after some process but i dont know how to close it.

Please help me.
Posted
Updated 3-Oct-11 2:33am
v2

1 solution

To close the window, post a WM_CLOSE using PostMessage function.

To hide the window, use ShowWindow function with SW_HIDE parameter.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900