Customizing the Nonclient Area of Windows (Windows CE 5.0)
You can customize the nonclient area of windows when you create a skin. To customize the nonclient area of windows, you modify the implementation of the methods of the NonClientView_t class. The code that implements these methods is contained in the %_WINCEROOT%\Public\Common\Oak\Drivers\Skinnableui\Gwe\Nclient\Nclientview.cpp file.
The following table shows the methods of the NonClientView_t class that you can modify.
Method | Description |
---|---|
NonClientView_t::BoundingRect | Retrieves the coordinates of the bounding rectangle. The bounding rectangle is the client area of the parent window of the specified window, expressed in screen coordinates. If the specified window is a top-level window, the bounding rectangle is the screen rectangle. |
NonClientView_t::BoundPoint | Confines the touch coordinate to a rectangular area on the screen. If the touch coordinate lies outside the rectangle, NonClientView_t::BoundPoint automatically adjusts the touch coordinate to keep it inside the rectangular area. |
NonClientView_t::CalcClientRectWithHorzScrollBars | Determines the size of the client rectangle for a window with a horizontal scroll bar, given the size of the client rectangle for the window without a horizontal scroll bar. |
NonClientView_t::CalcClientRectWithNoScrollBars | Determines the size of the client rectangle for a window that does not have a scroll bar. |
NonClientView_t::CalcClientRectWithVertScrollBars | Determines the size of the client rectangle for a window with a vertical scroll bar, given the size of the client rectangle for the window without scroll bars. |
NonClientView_t::DoesHorzScrollBarFit | Determines whether a horizontal scroll bar can fit in a window. |
NonClientView_t::DoesVertScrollBarFit | Determines whether a vertical scroll bar can fit in a window. |
NonClientView_t::DoHitTest | Determines whether a hit occurred in the nonclient area and the location of the hit. |
NonClientView_t::DoPaint | Draws the nonclient area. |
NonClientView_t::DrawBorder | Allows a group box to draw its border. |
NonClientView_t::DrawFrameControl | Draws a frame control of the specified type and style. |
NonClientView_t::ExposedDrawFrameControl | Draws a frame control of the specified type and style. |
NonClientView_t::WidgetRect | Calculates the size of a button in the nonclient area. |
See Also
Send Feedback on this topic to the authors