Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Prevent skinned application from being restored
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Prevent skinned application from being restored

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Prevent skinned application from being restored
    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? =)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.