modeless window

is this the right way to call modeless window from the main window?

void CGCTPDlg::OnBnClickedAlignment()
{
// TODO: Add your control notification handler code here
Alignmentwindow one;
one.Create(IDD_ALIGNMENT,this);
one.ShowWindow(SW_SHOW);
}
Topic archived. No new replies allowed.