I have following problems:

I created modalless dialog and I created a function, which bake up database and resources writes to window (e. g. by m_pArchivDlg->m_StaticTable.SetWindowText(_Table). In this window I wanna add a button (Cancel), but this button do not have a focus. I cannot click here, because all time is taken by baking up function.

How to code it?