Skip to content

DisableOffice2007FrameHandle Method

Description

Removes the Office 2007 style frame from a specified window if applicable.

Syntax

Public Sub DisableOffice2007FrameHandle( _
    ByVal hWnd As Integer _
)

Parameters

  • hWnd: Handle to the window to remove the Office 2007 frame from.

Remarks

Use DisableOffice2007FrameHandle to remove the Office 2007 style frame from a window. Do this before switching to a theme other than Ribbon or Office 2007.

EnableOffice2007FrameHandle will apply an Office 2007 style frame to a window. This is particularly useful when creating an MDI application using the Ribbon bar or Office 2007 theme, which allows you to theme the child window frames to Office 2007 as well.

Note: You must be either using the RibbonBar or have the CommandBars set to Office 2007 or Ribbon theme to use EnableOffice2007FrameHandle.

Enable Office 2007 Frame

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.