qwinwidget.cpp
//Tell the parent native window to maximize or restore as appropriate
Tell the parent native window to maximize or restore as appropriate
Tell the parent native window to maximize or restore as appropriate
void QWinWidget::onMaximizeButtonClicked()
{
    if (p_Widget->maximizeButton->isChecked())
    {
        SendMessage(m_ParentNativeWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0);
    }
    else
    {
        SendMessage(m_ParentNativeWindowHandle, WM_SYSCOMMAND, SC_RESTORE, 0);
    }
}
void QWinWidget :: onMaximizeButtonClicked ( ) { if ( p_Widget -> maximizeButton -> isChecked ( ) ) { SendMessage ( m_ParentNativeWindowHandle , WM_SYSCOMMAND , SC_MAXIMIZE , 0 ) ; } else { SendMessage ( m_ParentNativeWindowHandle , WM_SYSCOMMAND , SC_RESTORE , 0 ) ; } }
Tell the parent native window to maximize or restore as appropriate
Tell the parent native window to maximize or restore as appropriate