Print Page | Close Window

Prevent skinned application from being restored

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5095
Printed Date: 14 May 2024 at 4:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Prevent skinned application from being restored
Posted By: znakeeye
Subject: Prevent skinned application from being restored
Date Posted: 19 September 2006 at 5:25pm
I want my application to be maximized at all times. I have the removed the WS_MAXIMIZEBOX and WS_SIZEBOX styles of my main frame, but it is still possible to restore the window by double-clicking in the caption bar.
 
Traditionally, you solve this by handling WM_NCLBUTTONDBLCLK:
 
void CMainFrame::OnNcLButtonDblClk(UINT nHitTest, CPoint point)
{
    if (nHitTest != HTCAPTION)
        CFrameWnd::OnNcLButtonDblClk(nHitTest, point);
}
 
However, this does not work when using skins. So, my question is:
How do I prevent my application from being restored when using skins? =)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net