How to Hide Caption Bar using SetWindowLong()
-
Dear Friends, Could any one tell me. How to hide the Caption Bar in the dialog box using SetWindowLong() without removing the title bar in the properties of the dialog.
Thanks and Regards. SANTHOSH V
-
Dear Friends, Could any one tell me. How to hide the Caption Bar in the dialog box using SetWindowLong() without removing the title bar in the properties of the dialog.
Thanks and Regards. SANTHOSH V
Are you interested in changing the WS_CAPTION style dynamically? If so you can use
ModifyStyle( WS_CAPTION, 0 ); (using MFC)
ORSetWindowLong( hWnd, GWL_STYLE, GetWindowLong( hWnd, GWL_STYLE ) & ~WS_CAPTION );
- NS - [ODBaseBtn]
-
Dear Friends, Could any one tell me. How to hide the Caption Bar in the dialog box using SetWindowLong() without removing the title bar in the properties of the dialog.
Thanks and Regards. SANTHOSH V
DWORD dwStyle = wnd.GetStyle(); ::SetWindowLong(wnd, GWL_STYLE, (dwStyle & ~ WS_CAPTION)); Regards, Paresh.