I have a CExtResizableDialog based dialog where I am trying to draw somthing into the boundaries of a group control.
In order to paint I am using the following code snipped as found on your page:
//---------------------------------------------------------------------------
LRESULT CLithoGroupEditDlg::WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
{
switch( message )
{
case WM_PAINT:
{
CPaintDC dc( this );
DisplayGroupBitmap(&dc);
return 0;
}
}
return CExtResizableDialog::WindowProc( message, wParam, lParam );
}
All works fine as long as I am not calling the SubclassChildControls in OnInitDialog.
CExtResizableDialog::OnInitDialog();
ShowSizeGrip(FALSE);
SubclassChildControls();
If I do this I cannot see my drawing within the group control anymore. I suggest that the group control somehow overlaps my painting because it may be drawn after my drawing.
Do you have any suggestion how I could solve this issue.
Thanks