Prevent skinned application from being restored |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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? =)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |