Is there any way to determine a minimization of a Dialog from within a control which is on the dialog?
I'm using the window message ON_WM_SIZE
which should be called with the Type SIZE_MINIMIZED
when the dialog gets minimized.
BEGIN_MESSAGE_MAP(CEditT, CEdit)
ON_WM_SIZE()
END_MESSAGE_MAP()
void CEditT::OnSize(UINT nType, int cx, int cy)
{
CEdit::OnSize(nType, cx, cy);
switch(nType)
{
case SIZE_MINIMIZED:
m_backgroundRedraw = TRUE;
}
}
However this method never gets called, when the Dialog is being minimized. I need to track that minimization in order to correctly redraw my control with transparencies when it's being restored again.