I'm having a hard time to get the following to work.

I have a CListCtrl where I want the user to be able to click on
a column so that a properies dialog pops up.

It works, but it looks as if the focus stays with the list
control. So the user has to click on the popped up
dialog in order to force the focus onto it.

void CViewProp::OnColumnclickMatlist(NMHDR* pNMHDR, LRESULT* pResult)
{
...bla blah...

// !!! Running this dialog does not give it the focus
// initially!!!???
CCurvePropDlg CurvePropDlg ;
CurvePropDlg.DoModal () ;
}

Any pointers or help would be welcome


Unique and easy to use graphics programs
http://www.ransen.com