시스템 메뉴를 없애려면

Category:
Author: zemna
Date: April 17, 2021
Share this:

시스템 메뉴를 없애려면

타이틀바에 있는 시스템 메뉴를 없애려면 CFrameWnd 클래스에서 상속받은

CMainFrame에 있는 PreCreateWindow()에 다음과 같이 한 줄을 추가하면

간단히 제거할 수 있습니다.

cs.style &= ~WS_SYSMENU;

보통 윈도우 스타일인 WS_OVERLAPPEDWINDOW에는 시스템 메뉴와 여러

윈도우 스타일이 정의돼 있기 때문에 기본값에서 시스템 메뉴를 없애면 되는

거죠.

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram