Annotate wxAppBar::MaximiseFromEdge() properly

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-04 11:38:08 +01:00
parent d115b5bd9f
commit 1a6899ed39

View File

@ -209,14 +209,14 @@ public:
/// ///
/// \param[in] rect The desired coordinates of the restored window. If NULL internally saved coordinates are used. /// \param[in] rect The desired coordinates of the restored window. If NULL internally saved coordinates are used.
/// ///
void MaximiseFromEdge(const RECT* rect = NULL); void MaximiseFromEdge(_In_opt_ const RECT* rect = NULL);
/// ///
/// Restore application bar from the edge of the desktop. /// Restore application bar from the edge of the desktop.
/// ///
/// \param[in] wnd When the undocked and docked window is different, this parameter denotes the undocked version. /// \param[in] wnd When the undocked and docked window is different, this parameter denotes the undocked version.
/// ///
void MaximiseFromEdge(wxWindow *wnd); void MaximiseFromEdge(_In_ wxWindow *wnd);
/// ///
/// Shows or hides auto-hide application bar. /// Shows or hides auto-hide application bar.
@ -834,7 +834,7 @@ void wxAppBar<W>::MinimiseToEdge(wxAppBarState edge, wxWindow *wnd)
template <class W> template <class W>
void wxAppBar<W>::MaximiseFromEdge(const RECT* rect) void wxAppBar<W>::MaximiseFromEdge(_In_opt_ const RECT* rect)
{ {
wxASSERT(::IsWindowVisible(m_hWnd)); wxASSERT(::IsWindowVisible(m_hWnd));
@ -877,7 +877,7 @@ void wxAppBar<W>::MaximiseFromEdge(const RECT* rect)
template <class W> template <class W>
void wxAppBar<W>::MaximiseFromEdge(wxWindow *wnd) void wxAppBar<W>::MaximiseFromEdge(_In_ wxWindow *wnd)
{ {
wxASSERT(wnd); wxASSERT(wnd);
wxASSERT(::IsWindowVisible(m_hWnd)); wxASSERT(::IsWindowVisible(m_hWnd));